From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AD30C77B7E for ; Mon, 29 May 2023 15:32:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjE2Pcb (ORCPT ); Mon, 29 May 2023 11:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjE2Pca (ORCPT ); Mon, 29 May 2023 11:32:30 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B38569C; Mon, 29 May 2023 08:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=m08sdZiiSWYdCbM5OkMaV4gXe9Pwbr7hRmDqovZeq34=; b=AAQ3c9f+7ncbOmYiPq/Sc2pNDq 4ObJATKcP3kAMmJF7ns5gALpCxPCGdccpgQ0DhhUKJEpTc4nqNxvFqcJLVdp2fVwIQnEOWBI39Lgc se/d8u+TtiVPHpD+zHIJLu7gOatGth1D00qj7yIghcb47TROcS9u1VpiFDNQb8H4YZTw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q3er7-00EExO-HE; Mon, 29 May 2023 17:32:21 +0200 Date: Mon, 29 May 2023 17:32:21 +0200 From: Andrew Lunn To: Christian Marangi Cc: Pavel Machek , Lee Jones , Jonathan Corbet , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-leds@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v3 05/13] leds: trigger: netdev: introduce check for possible hw control Message-ID: <6ce434f5-dfa7-4ef5-800f-7bb328ec5070@lunn.ch> References: <20230527112854.2366-1-ansuelsmth@gmail.com> <20230527112854.2366-6-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230527112854.2366-6-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org On Sat, May 27, 2023 at 01:28:46PM +0200, Christian Marangi wrote: > Introduce function to check if the requested mode can use hw control in > preparation for hw control support. Currently everything is handled in > software so can_hw_control will always return false. > > Add knob with the new value hw_control in trigger_data struct to > set hw control possible. Useful for future implementation to implement > in set_baseline_state() the required function to set the requested mode > using LEDs hw control ops and in other function to reject set if hw > control is currently active. > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew