Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7089494rdb; Wed, 3 Jan 2024 04:28:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVVNmPkGCPCzDQIyepvI8kTVS0fZvAgk5nu1F5Q9VWybSwosTpC+klqN0BPxDe5Ro99oVK X-Received: by 2002:a17:90b:4017:b0:28c:a7cf:665c with SMTP id ie23-20020a17090b401700b0028ca7cf665cmr3151399pjb.37.1704284921921; Wed, 03 Jan 2024 04:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704284921; cv=none; d=google.com; s=arc-20160816; b=dc8UqgGrcwi5T4IpRzCdnxDco49qk8YojQlFUy0JsdpBpzSO4tepNiHlGtFyDKNHNi vM5RL9y2umiWU88KUzF1swg8pf2ZYMOnWOoRLuICCxbsC9con7E+fjfC252oR7TKiMaB mEE2DbuDZ9RZxWCivNDfSNDtu6/toeQNC5o2OPQeMxVZZagVB/7Vobhm7Uj6uBUs1ttx nj+smkmUkJM3MPrA6RhKrnzj/BwU5iNIp4SYRQ4qI5TpQGBX0J5L/7lArRjoLrx6Sv2t 7S+8n3KzFBtE8IGTaYx7cgzrzkUYnONPwEf8CJJA8A3R+1V8GNqnV2Y8NLAfazScaO67 zBeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=zi+j1XmkmyvXiLm1v8gydbt+d2gqoM/LJPLqe1OfqLk=; fh=hzJqqzZKIfGSZi3N+jTeHcMOSg8xKVdv0Ui4gRhqOvA=; b=ElzioTYCqSQbxwnn7dj9bZW8nHQTmvYbjWraUVlT6nv8u6ytSnWcDhRJiS3Aek71SP hfiUP85NAjvKALFw8FrnobV5UeScSq8HEozJsa2eNouxSsCdR3YrpV6UWy9IpNR8wukO vm7r3URbsgo/zhZw/RcoIZBEOauVzbrkeoGsXwjX1uhzKj1ATmgP8EPTqMU8nxMSU3jR COfv7gIQttBpTQ+peXPj4Ea9BJ9PXmxm8iSOXOroO8/3fbZTYF7c6qUll/bqsUJQsnTW v/AITtoj42z6LjM6Nj/DH4coGO9RKR4BsiTawjbY7uvhMFRpcOJc9g4NxzwC0s8OkHN6 kj+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15516-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15516-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a7-20020a17090abe0700b0028bd8637b5bsi1147459pjs.87.2024.01.03.04.28.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 04:28:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15516-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15516-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15516-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 961DC2859BE for ; Wed, 3 Jan 2024 12:28:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C73C919451; Wed, 3 Jan 2024 12:28:35 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0804619442 for ; Wed, 3 Jan 2024 12:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rL0MF-0005Mi-3Y; Wed, 03 Jan 2024 13:28:27 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rL0ME-00074u-0N; Wed, 03 Jan 2024 13:28:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rL0MD-003LfH-2x; Wed, 03 Jan 2024 13:28:25 +0100 Date: Wed, 3 Jan 2024 13:28:25 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Thierry Reding Cc: Sean Young , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , linux-pwm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pwm: bcm2835: Remove duplicate call to clk_rate_exclusive_put() Message-ID: References: <20231222131312.174491-1-sean@mess.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j2t4mrma5c4f7diw" Content-Disposition: inline In-Reply-To: <20231222131312.174491-1-sean@mess.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --j2t4mrma5c4f7diw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Thierry, On Fri, Dec 22, 2023 at 01:13:11PM +0000, Sean Young wrote: > devm_add_action_or_reset() already calls the action in the error case. >=20 > Reported-by: Uwe Kleine-K=F6nig > Closes: https://lore.kernel.org/linux-pwm/fuku3b5ur6y4k4refd3vmeoenzjo6mw= e3b3gtel34rhhhtvnsa@w4uktgbqsc3w/ > Fixes: fcc760729359 ("pwm: bcm2835: Allow PWM driver to be used in atomic= context") > Signed-off-by: Sean Young > Reviewed-by: Uwe Kleine-K=F6nig > --- > drivers/pwm/pwm-bcm2835.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c > index 307c0bd5f885..283cf27f25ba 100644 > --- a/drivers/pwm/pwm-bcm2835.c > +++ b/drivers/pwm/pwm-bcm2835.c > @@ -160,10 +160,8 @@ static int bcm2835_pwm_probe(struct platform_device = *pdev) > =20 > ret =3D devm_add_action_or_reset(&pdev->dev, devm_clk_rate_exclusive_pu= t, > pc->clk); > - if (ret) { > - clk_rate_exclusive_put(pc->clk); > + if (ret) > return ret; > - } > =20 > pc->rate =3D clk_get_rate(pc->clk); > if (!pc->rate) this patch should be added to your for-next branch and then your PR for the next merge window. Also "pwm: linux/pwm.h: fix Excess kernel-doc description warning" (Message-Id: 20231223050621.13994-1-rdunlap@infradead.org) should be added IMHO. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --j2t4mrma5c4f7diw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWVUugACgkQj4D7WH0S /k4FPgf+KciZuFT4wJCWNSuCGXQuJYPIGrhYmOixhFTfChRratxydUme6qGd0hRC Pvvyw9As/U4FF5tv/3CWxuFC/ZiXe75ZgekP/Hn3NF2e0mQFSVTZtL5MZtNLC3X0 gGnWSV3k33UrNvxBp6x7ib176BVTXeQ13n+w5AHdMHXy8thKsc5sIHCPfKqm0Scu otgt5pUJsVwnIVVP8eEDB4XjLD9SDZGaJB8zjpDPLh5CuKYdRmJcvi1Z/Cs1AtSt NNIRcHUZxrrfDj/RWXtmwS+T8yRS4+/LEUOWnQjwnxapskk0M90JZhiUfrNuQIk6 7r6iI9Nd7GkkUyxIsO0FIeSV0gED4A== =9tQB -----END PGP SIGNATURE----- --j2t4mrma5c4f7diw--