Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp965423ybh; Wed, 11 Mar 2020 14:34:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAj7WpYh7+F+7CspYLXrHEVXKAAYYs7zSElatZ32aiwsliDtL6iOtalKxyEoggyCvSLS6q X-Received: by 2002:aca:b1d5:: with SMTP id a204mr480784oif.82.1583962453330; Wed, 11 Mar 2020 14:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583962453; cv=none; d=google.com; s=arc-20160816; b=Y7Rt/yarawl/pvuYiFc3h+4dDl2rSsBKJVtlGs39+qKXj9iqvHPaUMarLpJjm1cB4f UdxOVDhWMOmwdNZeXNHYqlebFJVyn+Ok50QG5Z5Vfb0NbcbSiB/a7gT2dLNjThIsCNFI 9ziVF3WYpxqp7VWQSDHOMsSTE1QBhTz1KU0HHvCuGjOgByZQy9zWdRha6r8LLxVdRkIJ Reui+nJaBQMIHI0GTJImCwGQ0EocAV0SzkwEPUNQBnN5J5AHrRi+syzpqhwKa7ZUeSmz 3aq5qa7Fb7SiWDpJbARcfgycmcseuaV6J/coOteOd+jYw++4ACmydvvsVsBN/ACyuMT2 XxUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BungKNiT0To+7C6cV5hXl6v8L7WhQIh75M4VPRzxB/k=; b=P5VgWxkIBP6q49BylclBZkDqZtynGRa1FGVjyN5h7Dql5+Qs8rcHBxyHiDJOTAdNgC ThJOilBZdCVkpGg45Q5hMPFIMSxkEHwUQaigwP/43g0u3bHJ3/gC+RiWw/UTgiw64h5F OgFfLrRXU5ZYYHusKhEaTEzGB2Gx9HKvVRMHXIioVYQAf+ZXR1rxejun4IKHulftwEGy efS9SmRWCcLzhiOz5DIogy7hYlrscdkWGwZysvEJjZRAwxQz8DWbyPXaTQQ4mC/YZlT2 SJ4SzEQ3oguQbhgwMiU2heS7WmiT7LjnyGNTCBLmfqEcyJ5jWw65PzTXH+FAE+MxG+FX i61A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si1741809otn.221.2020.03.11.14.33.59; Wed, 11 Mar 2020 14:34:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729437AbgCKVd0 (ORCPT + 99 others); Wed, 11 Mar 2020 17:33:26 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:33440 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbgCKVd0 (ORCPT ); Wed, 11 Mar 2020 17:33:26 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id AD6761C031E; Wed, 11 Mar 2020 22:33:24 +0100 (CET) Date: Wed, 11 Mar 2020 22:33:09 +0100 From: Pavel Machek To: "20200309082218.13263-1-Denis.Osterland@diehl.com" <20200309082218.13263-1-Denis.Osterland@diehl.com> Cc: "dmurphy@ti.com" , "mark.rutland@arm.com" , "jacek.anaszewski@gmail.com" , "robh+dt@kernel.org" , "linux-kernel@vger.kernel.org" , Denis Osterland-Heim , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH v2] leds: pwm: add support for default-state device property Message-ID: <20200311213309.GB18398@amd> References: <20200310123126.4709-1-Denis.Osterland@diehl.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <20200310123126.4709-1-Denis.Osterland@diehl.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > This patch adds support for "default-state" devicetree property, which > allows to defer pwm init to first use of led. >=20 > This allows to configure the PWM early in bootloader to let the LED > blink until an application in Linux userspace set something different. "sets". > Signed-off-by: Denis Osterland-Heim Looks good, I'll probably just apply it. > index 6c6583c35f2f..d0f489680594 100644 > --- a/Documentation/devicetree/bindings/leds/leds-pwm.txt > +++ b/Documentation/devicetree/bindings/leds/leds-pwm.txt > @@ -19,6 +19,8 @@ LED sub-node properties: > see Documentation/devicetree/bindings/leds/common.txt > - linux,default-trigger : (optional) > see Documentation/devicetree/bindings/leds/common.txt > +- default-state : (optional) > + see Documentation/devicetree/bindings/leds/common.yaml > =20 Should other references be updated to common.yaml (as a separate patch)? > diff --git a/include/linux/leds_pwm.h b/include/linux/leds_pwm.h > index 93d101d28943..c9ef9012913d 100644 > --- a/include/linux/leds_pwm.h > +++ b/include/linux/leds_pwm.h > @@ -10,6 +10,7 @@ struct led_pwm { > const char *default_trigger; > unsigned pwm_id __deprecated; > u8 active_low; > + u8 default_state; > unsigned max_brightness; > unsigned pwm_period_ns; > }; leds-pwm.c but leds_pwm.h. Hmm. This really should be leds-pwm.h. Actually, leds-pwm.c is only user of leds_pwm.h, so that one should just disappear... Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl5pWRUACgkQMOfwapXb+vI0+QCglTSi3ENYbjGmsEnPVLDoLNJh FooAoKaNKkuhzlCYfQuerN+1NMx7aBry =Fb0M -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o--