Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2620954ybb; Mon, 30 Mar 2020 09:37:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvkOTZssg/hWHmLefOjKjcc59BMQ1J3Q5+lPGYgi7af4nyLOGzMxz/WCZ89i7cLVl7zu9Ng X-Received: by 2002:aca:5109:: with SMTP id f9mr153036oib.14.1585586254697; Mon, 30 Mar 2020 09:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585586254; cv=none; d=google.com; s=arc-20160816; b=VLAXfMDASG0LMLoaRmKgiI2dGMxWJj43D/g/5L2C9DudpRTz2a/5vr8oa52dXB00At NmaavURpYVA99xoUzQRqm8isQ2aNgdH/KBGktLNMYsJ105362+6KCgl8tOmYOeSN0Lzz nJsNhg364ncGDMBnLBWeAiUS3H6wB4DBEUN90Yr3Cneum0+OTETzB60U0uya9uPSUamA obE7NtHEHqFTxkCHSffs+q74js+dyu6Buf7br7lXurSj4jqO75k8BEiCGQG1lBqb4MT3 8F3SwWtha+O+/vI2LY5abDDk2yHj67EOgQbw573vnfp1hlOMM+Zfs+xsI4cLjtKzRFm/ O9zg== 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:dkim-signature; bh=GwvOQi3YTvADuUqUpE6sEtcVdY9dzJGkEB/CIKtqmA4=; b=gyQZh8uodu3uKkjNdRaYa0GjqxBXn4TCR1e5DidVWLWUAE6TgTLwVGKUx1aOA7DWXI uOMvcN4qzuUAmCNDuvTC2YPLVw56h1y+tjYl8YYNTPzNzI1WaB2AujrT4b80Mt035O8m IMRdDY4eXQIPMHa0zPoeCNLB/xBggMZFI00we8IahDw0IXpHw3kCywJS5tzbB2FeWL2Y j+oNKFqOOFrIz3nR6/fs6PYEgPy2VXckaZan1nasTtwofRHcjxniFoKAgECxtCCqqOV8 6m9yuP3pRs3OOznEl9gUfHDfJlygCZ5AV/yMk+Zvgu4pvBU+otDz26gqTfRNUbgpwXOB A/Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jpZotQYh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 192si5837786oii.36.2020.03.30.09.37.21; Mon, 30 Mar 2020 09:37:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jpZotQYh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729513AbgC3QCo (ORCPT + 99 others); Mon, 30 Mar 2020 12:02:44 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40391 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbgC3QCo (ORCPT ); Mon, 30 Mar 2020 12:02:44 -0400 Received: by mail-wr1-f67.google.com with SMTP id u10so22334361wro.7; Mon, 30 Mar 2020 09:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GwvOQi3YTvADuUqUpE6sEtcVdY9dzJGkEB/CIKtqmA4=; b=jpZotQYhHVGZLascqr5rN7cZOEcG2woAzRbmngpI7m0naZVImgfgw6JNYYCF9gs8GJ 1z0d6KstIJ+YXpt88iAKkEDPqpx+xUoRTM8TaeM8Gi3930RflocvE9LTjJaGpi5wZM7T yDOs2Wejla7PJDSp6/rI0ws7ZGdsM93s20kkNmf65NsWqX9PWswK68urXvzz34pWHTy1 0Op9d8V1013LtxOO6XAsg/MCRabf8u6viKnnvZe6EzD2L+tD6+LCCi/JYDCxcN3fffmG l+1Oy0c+J5AYQ12A1E9RVhfusFVYh1nJlgWRZ3HUWycoN/3AFx8+h3SQoPdh0IxZgp2o 8Smg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GwvOQi3YTvADuUqUpE6sEtcVdY9dzJGkEB/CIKtqmA4=; b=k4aZpy+mvZnr5l33jzn5p2Xf627MLmJL/uz8EGo9/kaWFT8fGwcs2Dd79de5Y3NoRe rCpfeuGvBHScTP2HNgYt9gzVlKzy4mImFWWJ4CGbFz8/60DAF6G0KzyCKELVc/5NllM0 b5QYsfPIvLhHKFq4dncTMYvU3l5XwQ7sk+TdMeH04LomlIaKI9QKq5jDqpapEe6l9nSy z3N0LIoTbMiY5b4rTjPktHoDsSmQEyW9oxKBCD8zfWG842UlNH0mC9vuDf6D/OudWyYQ oJILHSv8CViTbtP0/5Dos4SZEHKfgH35RMs0OwKQKj25J1wKGNK5tmVbWgvkKJ7oFEVE T0PQ== X-Gm-Message-State: ANhLgQ03rYlv61XILo0A82oswFhUN+denbXhrYcXv4/Zos5iC23eDbUI 8h0SdxSbQ9aO+vEU1MJE4tA= X-Received: by 2002:adf:8b1b:: with SMTP id n27mr15386998wra.349.1585584160485; Mon, 30 Mar 2020 09:02:40 -0700 (PDT) Received: from localhost (pD9E51CDC.dip0.t-ipconnect.de. [217.229.28.220]) by smtp.gmail.com with ESMTPSA id o16sm22537656wrs.44.2020.03.30.09.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 09:02:39 -0700 (PDT) Date: Mon, 30 Mar 2020 18:02:38 +0200 From: Thierry Reding To: Andy Shevchenko , Clemens Gruber Cc: Matthias Schiffer , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-pwm@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH 1/4] pwm: pca9685: remove unused duty_cycle struct element Message-ID: <20200330160238.GD2817345@ulmo> References: <20200226135229.24929-1-matthias.schiffer@ew.tq-group.com> <20200330130743.GB2431644@ulmo> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/unnNtmY43mpUSKx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.13.1 (2019-12-14) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/unnNtmY43mpUSKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 30, 2020 at 04:18:22PM +0300, Andy Shevchenko wrote: > On Mon, Mar 30, 2020 at 4:09 PM Thierry Reding = wrote: > > > > On Wed, Feb 26, 2020 at 02:52:26PM +0100, Matthias Schiffer wrote: > > > duty_cycle was only set, never read. > > > > > > Signed-off-by: Matthias Schiffer > > > --- > > > drivers/pwm/pwm-pca9685.c | 4 ---- > > > 1 file changed, 4 deletions(-) > > > > Applied, thanks. >=20 > I'm not sure this patch is correct. What makes you say that? If you look at the code, the driver sets this field to either 0 or some duty cycle value but ends up never using it. Why would it be wrong to remove that code? > We already have broken GPIO in this driver. Do we need more breakage? My understanding is that nobody was able to pinpoint exactly when this regressed, or if this only worked by accident to begin with. It sounds like Clemens has a way of testing this driver, so perhaps we can solve that GPIO issue while we're at it. The last discussion on this seems to have been around the time when you posted a fix for it: https://patchwork.ozlabs.org/patch/1156012/ But then Sven had concerns that that also wasn't guaranteed to work: https://lkml.org/lkml/2019/6/2/73 So I think we could either apply your patch to restore the old behaviour which I assume you tested, so at least it seems to work in practice, even if there's still a potential race that Sven pointed out in the above link. I'd prefer something alternative because it's obviously confusing and completely undocumented. Mika had already proposed something that's a little bit better, though still somewhat confusing. Oh... actually reading further through those threads there seems to be a patch from Sven that was reviewed by Mika but then nothing happened: https://lkml.org/lkml/2019/6/4/1039 with the corresponding patchwork URL: https://patchwork.ozlabs.org/patch/1110083/ Andy, Clemens, do you have a way of testing the GPIO functionality of this driver? If so, it'd be great if you could check the above patch =66rom Sven to fix PWM/GPIO interop. Thierry --/unnNtmY43mpUSKx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl6CGBsACgkQ3SOs138+ s6HsHg/+Pi6XaLknGm/+8Ptmf1d/2GeTnb0tvZJ8PkG8OR6UCJPn6xsw0duDorYv Idj+Wy+V4lWH2UKY+tYjEGuf4lONZpBA2gTjdGkfp63AoO934itx9z9hvcNzCL+0 +WIJlgdMJ4j03/VLJ/y8iuOD09tuta6ardRHIcP/xKDzIjj9GG9UmGjaMgqq4uSh m70l+QfvAeQPx6qoVm5unb6OrXHJzv0bii21JdWCrzlIdhUH6zjTXklMRe8dy6/U oyZ8VHJEZtPr7sHk9HZjVqUyhGz+yJZfIxbW1jx1kVKvq4UgLvgMFgmygzn7pMXv vLxsAZzKoo6nDJZG6n//bNJfU1NtSOrQNlrR8JUmD19/8JUDuGZaBdtHXgmuy790 0iR/yjxJWvHZaGkhzg4vXVhJpQ5ceNLFQNCP0H6W1oEK2BPSP+UKaiVVRuJQVeZ/ NQEW2sze4DHwZMxRpgyMT1c4OJ9nk8J/kaCT7z+WgnRLiVcnj7LqIW5Q8iXFcmhX akkhUyxj3G/nIfJXbOd9Z+uCQVJ9DQNmROloKZBrb04MpRdOoRbdsv8TlkX7jeBM AE6yiYNlvMxS2aySFYvWQfmDOJanr4G7T9a11FXODTElgwuy+jTxIgLV6Vds3P2Y LXzPlPfuZxw1OYfzT3b+q6VYa7Sbw4ajN7sv0QXEnEhqqXG1zlA= =i5xF -----END PGP SIGNATURE----- --/unnNtmY43mpUSKx--