Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp576889pxu; Fri, 11 Dec 2020 09:07:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuHYVg5XItTPxn4omwsJJhs1+OjkoMDSROyInWuJYhSkfFmYVTI+phQGtgSIeqPzl74bZ0 X-Received: by 2002:a17:906:304c:: with SMTP id d12mr12173016ejd.84.1607706426227; Fri, 11 Dec 2020 09:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607706426; cv=none; d=google.com; s=arc-20160816; b=r21twm+plpcH1br/kJNkdgnalBE/3smQSbmAfhW9KNcukGLNwMlC9R4l1V0KHYlGAE hdbMwQy1/tjPetEMN7qGtuKQ70y6BkJKWD05h+og9dKc3BFWKmVM7MO8uS3ivGVIHni9 0pHb8Yi/+9jKAQoPR4llpwKe5qIv3bsyn7IukhKUiT6R6KIA2EJkpRDGz8YnSr98xItx sHbBX0M46bzdKgtiI5LC9KY0NkvsY8wsMBSaCjeRerOS+5kBUwEV/Qjl2MKOt0OUqrE/ E4PZr1c0o7gEi1Dj8WDmEis6VI/jDsn3kLrPOi+lj/Wg/zIQ4d3SRfp3850FbdlMU9Mf zHvQ== 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=rjksohFpwKL7LSF1XtV3q53ZSvULqqgBysz2YzMBQoY=; b=qGz9L6/qREQkK7bGvUf6nDJnZQz/LZ0b5UPI1lR57i7uoUnx4helscxbSpsC6U0IWt go6PCyaquFB9jTvE6ZA8UDo7gpeg7p+7+lDslkIPYhWh6i6lTIDhkxDkGqwDN0bIpm+u DhoZjTdfDLivIqrxeHl+9zKQxzeFlAxxvUErnGj8d75TER8amsif9V3yqoxF53/dR0z3 KczKxxAAFNYfrdD5IEoEAdktVSkxZYIJ6i6kQcLKluUyQncwllox5E4ty26C6NxK2adi 8bOW50twu7qHr5dWQwvR9hLhD6TwsUo8DxrOoVgT5GVkPKJJaJUh/3OWQqTXFzLSobHG 24/A== 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 x72si5288208ede.132.2020.12.11.09.06.43; Fri, 11 Dec 2020 09:07:06 -0800 (PST) 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 S2390616AbgLKKgQ (ORCPT + 99 others); Fri, 11 Dec 2020 05:36:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390796AbgLKKfj (ORCPT ); Fri, 11 Dec 2020 05:35:39 -0500 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 0C1ACC0613D3 for ; Fri, 11 Dec 2020 02:34:59 -0800 (PST) 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 1knflI-00062R-6r; Fri, 11 Dec 2020 11:34:56 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1knflH-0003Py-3Z; Fri, 11 Dec 2020 11:34:55 +0100 Date: Fri, 11 Dec 2020 11:34:54 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Thierry Reding Cc: Sven Van Asbroeck , Clemens Gruber , linux-pwm@vger.kernel.org, Lee Jones , Linux Kernel Mailing List , Mika Westerberg , David Jander Subject: Re: [PATCH v4 1/4] pwm: pca9685: Switch to atomic API Message-ID: <20201211103454.tqcfzy3ayn2gz7k4@pengutronix.de> References: <20201208182637.hm5uzuw5ueelo26k@pengutronix.de> <20201210090124.rfswkrcttsg5gszp@pengutronix.de> <20201210203926.ouzrq3ff5k6zhlvt@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l2dlprvcn2mrcqzr" Content-Disposition: inline In-Reply-To: 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 --l2dlprvcn2mrcqzr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Thierry, On Fri, Dec 11, 2020 at 09:33:55AM +0100, Thierry Reding wrote: > On Thu, Dec 10, 2020 at 09:39:26PM +0100, Uwe Kleine-K=F6nig wrote: > > On Thu, Dec 10, 2020 at 06:10:45PM +0100, Thierry Reding wrote: > > > Like I said, that's not what I was saying. I was merely saying that if > > > there aren't any use-cases that current users rely on that would be > > > broken by using this simpler implementation, then I'm okay with it, e= ven > > > if it's less flexible than a more complicated implementation. It shou= ld > > > be possible to determine what the current users are by inspecting dev= ice > > > trees present in the kernel. Anything outside the kernel isn't someth= ing > > > we need to consider, as usual. > >=20 > > If "users in mainline" is the criteria that's a word. >=20 > I didn't say "users in mainline", I said "use-cases". What I don't want > to happen is for this change under discussion to break any existing use- > cases of any existing users in the kernel. I said that we can determine > what the existing users are by looking at which device trees use the > compatible strings that the driver matches on. >=20 > > So you agree we remove the following drivers?: > >=20 > > - pwm-hibvt.c > > Last driver specific change in Feb 2019, no mainline user > > - pwm-sprd.c > > Last driver specific change in Aug 2019, no mainline user >=20 > No, that's an extrapolation of what I was saying above. Drivers with no > apparent users are a separate topic, so don't conflate it with the issue > at hand. I cannot follow (and I think that's the problem between us and why those conflicts happen between us). For me it's a logic consequence of "Anything outside the kernel isn't something we need to consider, as usual." that drivers that are untouched for some period and have no mainline users can/should go away. (Is "extrapolation" as strong as "implication", or has it subjective interpretation added? My dictionary isn't accurate enough for that question.) But it seems there is something with my logic or you not saying exactly what you actually mean. (Did I miss any option? If yes it might be covered by a problem in my logic.) Having said that, even in the question at hand (i.e. what is the better compromise for mapping the inter-channel hardware limitations to software policy in the pac9685 driver) the idea "let's inspecting device trees present in the kernel" doesn't work, because for this driver there are none, too. (It might be used by a mainline machine via ACPI, but this is even less possible to consider for our judgements than a device tree with such a device and no user but the sysfs PWM interface.) > While it's certainly unfortunate that these don't seem to be used, I see > no reason why we should remove them. They don't create much of a > maintenance burden, so I'm fine with keeping them in the hopes that > users may still show up at some point. The problem I have with them is that I expect your voice of dissent when I find the time to improve the rounding behaviour of these drivers. My ultimate goal is to make the PWM framework a system where consumers can rely on a consistent behaviour of the API and a way to actually order what they need and get it. I'm not entirely sure we agree that we're not there yet. > > Most PWMs are added to cpu.dtsi files with status =3D "disabled", I won= der > > if it makes sense to check the machine.dts files if some of the PMWs are > > completely unused. Do you consider status =3D "okay" a use that we have= to > > retain even if the node has no phandle? >=20 > A PWM controller may be in use via sysfs even if it has no phandle. Yeah, I expected you will say that. (And I agree.) Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --l2dlprvcn2mrcqzr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl/TS0sACgkQwfwUeK3K 7Ali8gf/Tnv62+6avDdh/1OSBXb4uU6N4giVgTORDd5Ueamuznw5f9JlyaVOqjee yelQRPkK58KF1KTurfD6uAcBfwbfZs+VCFnCP3PAbJP/w4ZqfBdIbmHKSnkqEYB0 6hMzlGS9bKNppHWUHzjx05+SyJ+VmF1IP6vUsXYfpHj5QCj8kiTGv2yeZ6MgbFfl n3Qj47+CimLMUYutrDtUKVk8tJIKfn1Trb21V0uu3ozIE9xU7e1tOVDYw5u/Sii0 a/CbP7c5X4Ll9kBvrqFh9b4il7YUac7Ui5QuaZbuPuWV+AtZ4xVj8XksT0/H/6mO 5Fj2SnWWzPdOmD+7SZqJXrcMXe3PCQ== =LgIB -----END PGP SIGNATURE----- --l2dlprvcn2mrcqzr--