Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp172631pxy; Tue, 4 May 2021 22:24:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQTdje9Hj+eWIciXWnCK44hv5/SQ+FEt1ugwvKhQI3Hn2vN9xsvM7Rl3n28MwxaVtWvyym X-Received: by 2002:a17:90b:1b0d:: with SMTP id nu13mr9478180pjb.149.1620192269182; Tue, 04 May 2021 22:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620192269; cv=none; d=google.com; s=arc-20160816; b=n2BfK+Nntay94tcOoy3Gt+wQv1vhJmjkDUHrp3Ih+vsLa30sBfLPr5YB7PFvlaofGo soH4KzHlpeUbgQ0ssEIINkb1gCJBYokIkkc5VfYtDenrzK4DQilE4wXjQF5FYO8R6TEX lhuuj/VPlsmS2u2c5jIbh8IZRh/rIcc/HF18Pmupy/X0CQ1P0n9VbbexHUnbqMmC2LUk 7ctSOhrU/6vU72vxN8TwgAqyABqgBcJ5O7u51nUXUz7bUGX4V2sIo5I8S5DVVHeiI2Kp A5JNnnH7+/qTaYkk/nfBe7oEP4FJgUv1bMEd0FiajqbEnoFqqc3zn7h2D+9THoPUFmjU 016w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=M4mc7l8hpo+pZTlALIZUI0FlVCMe9Fphk24ruXcsXrE=; b=mV0sCyeZ4IRFVF9qwCqkKbjDTdPSl7F5P/Khm6nslrhy3L4Fe8vW9jFl1bFGUivD80 7KbDrRJW5CQjjg09BQQXxYHENLi0TZ8hByKNTGgvEV3LmYVo48PQarNKl2Q8BycyHrdK EPBBjkvXNRRAQmJL/sMxcxPT0TQGqPrHh4tAG3ToqsVbDSCJt54vAQvUBW3udbOy6XNE hOVmH0nB0DslL1TDTDOyVU7gDNl16O0iL7SD7KGH6pdAenlRqmZ6IT6e6H4pAeJX1eEt FxaQ4WcXih6IWgGhmmAsTJULIVVDfvVL3TZSWI4egR45diXy56moLzEFO0daNeooev+j oETw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si6189917pgp.181.2021.05.04.22.24.16; Tue, 04 May 2021 22:24:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231621AbhEEFW5 (ORCPT + 99 others); Wed, 5 May 2021 01:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbhEEFW4 (ORCPT ); Wed, 5 May 2021 01:22:56 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D68C061574 for ; Tue, 4 May 2021 22:22:00 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1le9ys-0005HJ-1e; Wed, 05 May 2021 07:21:54 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1le9yr-00047w-6W; Wed, 05 May 2021 07:21:53 +0200 Date: Wed, 5 May 2021 07:21:53 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Bjorn Andersson Cc: Pavel Machek , Thierry Reding , Lee Jones , Dan Murphy , Rob Herring , Andy Gross , Martin Botka , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH v6 2/4] leds: Add driver for Qualcomm LPG Message-ID: <20210505052153.syhptme4pfrbw73v@pengutronix.de> References: <20201021201224.3430546-1-bjorn.andersson@linaro.org> <20201021201224.3430546-3-bjorn.andersson@linaro.org> <20201029181357.GE26053@duo.ucw.cz> <20210429211223.GA5480@amd> <20210429212920.GB2484@yoga> <20210504161327.GF2484@yoga> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="twdyeagubu6upt4z" Content-Disposition: inline In-Reply-To: <20210504161327.GF2484@yoga> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --twdyeagubu6upt4z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Tue, May 04, 2021 at 11:13:27AM -0500, Bjorn Andersson wrote: > On Tue 04 May 10:43 CDT 2021, Pavel Machek wrote: > > > So downstream they have (last time I looked at the code) an addition = in > > > the PWM API where the LED driver can inform the PWM driver part about > > > the indices to use. Naturally I don't think that's a good idea. > >=20 > > Dunno. Is it bad idea? > >=20 > > pattern support for other PWMs (vibration?) seems useful, too. Yes, it > > means more discussion and extending PWMs properly.. > >=20 >=20 > @Thierry, @Lee, @Uwe, are you interested in extending the PWM api with > some sort of support for specifying an array of "duty_cycle" and some > property for how fast the hardware should cycle through those duty > cycles? (And I need a bit/bool to indicate if the pattern should run > once of be repeated) >=20 > The (current) use case relates to being able to alter the duty cycle > over time to create "effects" such as pulsing an LED. My personal opinion here is that this is too special to be worth the generalisation. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --twdyeagubu6upt4z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmCSK20ACgkQwfwUeK3K 7AnbuQf9FCB0PpgSA/lR/qkTwcyn5aszc/HWkQpesYZyNI/WCfvWF9/stR+usSRk +nGaH75A/vzYqc91kOyGIxxBdAXF/6nwuaVlf7bqAnv7ik7fsBDNxdB8TGRlxaMe BqEn9OGkicUoKce8jEdXnvtWHNEydIyIwnddviu9XXuuuzyeoW4rLqViWDRfTxSc 3lpyxoTyylKO+giIoB3LIdfAu7N+zs61WBpwaUgH/hdDJ0ZAI5Nyluqkui4gcsht 02x0bxWbl/wbpXPWTz/Sx3BW9zrZk3k/uKZSFPYNxm3rZmOF4I+HhbMA5/FrkSub LBDp5Vds0xUF2QtsuDfPv3JWexGoJQ== =v6gl -----END PGP SIGNATURE----- --twdyeagubu6upt4z--