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 CAE1BC77B7E for ; Mon, 29 May 2023 15:31:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbjE2Pbp (ORCPT ); Mon, 29 May 2023 11:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjE2Pbm (ORCPT ); Mon, 29 May 2023 11:31:42 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF4199C; Mon, 29 May 2023 08:31:40 -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=bA2tpPYatFg58tl/7MGTXP6PhZ1WH2HGNdCrTzfkpX0=; b=swMMbp1PG3lSUb2lLvJru9B2gg Jq7YnDtcGZ2BaoXIZ0TGNjTTTz4Ti/y/6/pZSThiZ1OkKl7RD7HsNgsI2e/xBXA/R/v9xJiIP/BlZ HCq9TOqKB6wXblxSrfoZC4ZTHyULbRzMX+7aSsDS7/aKPvv/JoPlP1SScOwG07prwKmc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q3eqK-00EEwU-U5; Mon, 29 May 2023 17:31:32 +0200 Date: Mon, 29 May 2023 17:31:32 +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 01/13] leds: add APIs for LEDs hw control Message-ID: References: <20230527112854.2366-1-ansuelsmth@gmail.com> <20230527112854.2366-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230527112854.2366-2-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 27, 2023 at 01:28:42PM +0200, Christian Marangi wrote: > Add an option to permit LED driver to declare support for a specific > trigger to use hw control and setup the LED to blink based on specific > provided modes. > > Add APIs for LEDs hw control. These functions will be used to activate > hardware control where a LED will use the provided flags, from an > unique defined supported trigger, to setup the LED to be driven by > hardware. > > Add hw_control_is_supported() to ask the LED driver if the requested > mode by the trigger are supported and the LED can be setup to follow > the requested modes. > > Deactivate hardware blink control by setting brightness to LED_OFF via > the brightness_set() callback. > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew