Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1761793iol; Fri, 10 Jun 2022 14:32:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5E9ow/DNnAKm5L6wUzdcNEF2eG3rrI/eufXoSGKFamV2XEf3dCvVeAzn+eUtSoWyhLjXb X-Received: by 2002:a62:7b94:0:b0:51b:c723:5724 with SMTP id w142-20020a627b94000000b0051bc7235724mr46009477pfc.8.1654896744515; Fri, 10 Jun 2022 14:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654896744; cv=none; d=google.com; s=arc-20160816; b=srChfOSGUphwei6KEyr+/aUMhtPVcL8991mpHSJIuYEfrnJTS/yiAfIIbOcvRoJ4QH TugIL5oHXJrC7on5lKt3dpYZgkJ+f1drhPRceqtL531dWaqnj6V06ohUnEFK3rOs3ASR Sgtc0O+c7VHhuiFGPqb7CKqxpEAiKnu8t7D2nsIDGV5v10GyQySnQYg5B217jRYDNhD1 1qpGOsEywovCMDOZWWXCIeDuwkWBRP4cQ5Sjnv2xrsjf+wnTdX8rCQZ50c6BfqIKvHO1 IGBsjbbKb1cdhHuGhiTyzwmy/6go8koov0qyj/s1YdBC7KwQgAdudbHoqi6CD8UxrN0D k9Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date; bh=ArqcDgNCLB3pVLlUZfoKa6z3yFJKK07heIYwT2HStD0=; b=DjTas50KWikd/Wnuz+Y5An0v7cp9uH2wB/WFADAPxMr5LLZZTglWtSFwqpvb94GuIi 68KR9nmS/O1+3ilTcSTV2uK12iu9ln4rokupHuEbr1E9kmpVUUf3ecqIc+D18Z+Hp8gm YlEoaOxc3mIFZRnXfcBaCmM3mv5xxLhxAgPyZGIFGUO3GRcuDRoJv9NkbZL0UcWeRYPa FunUiIXwPgwnNkoasTdTElcwKzvgwgxP3fqTsxO1xT0W5V3lF7B/HlECDcVrLUYM/IN9 VFQ5sPJ+UUG1Ak7zYAw57jOZ8YG9z+fWeTJDuNFB1Nl5yawQssVeQV6NeKz72dKremp7 qqEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn12-20020a056a00340c00b0051c4c9292e5si10240pfb.308.2022.06.10.14.32.11; Fri, 10 Jun 2022 14:32:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243284AbiFJUdb (ORCPT + 99 others); Fri, 10 Jun 2022 16:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350756AbiFJUd2 (ORCPT ); Fri, 10 Jun 2022 16:33:28 -0400 X-Greylist: delayed 1797 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 10 Jun 2022 13:33:26 PDT Received: from 11.mo582.mail-out.ovh.net (11.mo582.mail-out.ovh.net [188.165.38.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370511CB730 for ; Fri, 10 Jun 2022 13:33:25 -0700 (PDT) Received: from player770.ha.ovh.net (unknown [10.110.115.195]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 691B123BC9 for ; Fri, 10 Jun 2022 19:56:14 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player770.ha.ovh.net (Postfix) with ESMTPSA id BC5042B7B8404; Fri, 10 Jun 2022 19:56:07 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R002ead98320-4cb9-4ad4-8b0a-e84dbc580c18, 4E496447C43E4C7632BA90A0B7747719B130BEDF) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 Date: Fri, 10 Jun 2022 21:56:06 +0200 From: Stephen Kitt To: Sam Ravnborg Cc: Sebastian Reichel , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding Subject: Re: [PATCH 2/3] drm/panel: panel-dsi-cm: Use backlight helpers Message-ID: <20220610215606.5c7a97b9@heffalump.sk2.org> In-Reply-To: <20220610215236.0d5d47b7@heffalump.sk2.org> References: <20220607182026.1121992-1-steve@sk2.org> <20220607182026.1121992-3-steve@sk2.org> <20220609215236.ojxw6l2vkf652hgu@mercury.elektranox.org> <20220610194720.485cf7be@heffalump.sk2.org> <20220610215236.0d5d47b7@heffalump.sk2.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/80XS4+CdZ9JSPRbvT9=p+Py"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Ovh-Tracer-Id: 11663760088923145862 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudduuddgudegudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfgjfhfogggtsehgtderreertdejnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeeiheevvdeugeejffefteffvefhieegjeevhfekjeejvdelgfefkeehhfdufffhjeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejjedtrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheekvd X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/80XS4+CdZ9JSPRbvT9=p+Py Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 10 Jun 2022 21:52:36 +0200, Stephen Kitt wrote: > On Fri, 10 Jun 2022 21:28:32 +0200, Sam Ravnborg wrote: > > Hi Stephen. > > On Fri, Jun 10, 2022 at 07:47:20PM +0200, Stephen Kitt wrote: =20 > > > Hi Sebastian, > > >=20 > > > On Thu, 9 Jun 2022 23:52:36 +0200, Sebastian Reichel > > > wrote: =20 > > > > On Tue, Jun 07, 2022 at 08:20:25PM +0200, Stephen Kitt wrote: =20 > > > > > diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.c > > > > > b/drivers/gpu/drm/panel/panel-dsi-cm.c index > > > > > b58cb064975f..aa36dc6cedd3 100644 --- > > > > > a/drivers/gpu/drm/panel/panel-dsi-cm.c +++ > > > > > b/drivers/gpu/drm/panel/panel-dsi-cm.c @@ -86,16 +86,10 @@ static > > > > > void dsicm_bl_power(struct panel_drv_data *ddata, bool enable) > > > > > return;=20 > > > > > if (enable) { > > > > > - backlight->props.fb_blank =3D FB_BLANK_UNBLANK; > > > > > - backlight->props.state =3D ~(BL_CORE_FBBLANK | > > > > > BL_CORE_SUSPENDED); > > > > > - backlight->props.power =3D FB_BLANK_UNBLANK; > > > > > + backlight_enable(backlight); > > > > > } else { > > > > > - backlight->props.fb_blank =3D FB_BLANK_NORMAL; > > > > > - backlight->props.power =3D FB_BLANK_POWERDOWN; > > > > > - backlight->props.state |=3D BL_CORE_FBBLANK | > > > > > BL_CORE_SUSPENDED; > > > > > + backlight_disable(backlight); > > > > > } =20 > > > >=20 > > > > The brackets can be removed now. Otherwise: =20 > > > =20 > > > >=20 > > > > Reviewed-by: Sebastian Reichel = =20 > > >=20 > > > Thanks, I=E2=80=99ll wait a little more to see if there are any other= reviews of > > > the patches and then push a v2 with that fix. =20 > > It would be very nice if you could kill all uses of FB_BLANK in the > > drivers/gpu/drm/panel/* drivers, and post them as one series. > > This is long overdue to introduce the backlight helpers. > >=20 > > The three you posted is already a nice step forward, and there may be > > more panel drivers I have missed. =20 >=20 > With this series on top of 5.19-rc1, the only remaining .fb_blank referen= ce > is in acx565akm_backlight_init() in panel-sony-acx565akm.c; I was planning > on nuking that along with the other .fb_blank initialisers in a series > removing .fb_blank entirely from backlight_properties. I=E2=80=99ll add i= t as a > fourth patch for drm/panel if that makes things easier! That=E2=80=99s in drivers/gpu/drm/panel of course, there are a few others e= lsewhere (I=E2=80=99ve got patches in flight for most of them, I=E2=80=99ve got the = rest ready for submission). > There will still be references to FB_BLANK constants since they=E2=80=99r= e used for > backlight_properties.power values. Would it make sense to rename those? Just to make sure =E2=80=94 I=E2=80=99m cleaning up backlight_properties.fb= _blank, not fb_ops.fb_blank. I wasn=E2=80=99t planning on touching the latter... Regards, Stephen --Sig_/80XS4+CdZ9JSPRbvT9=p+Py Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmKjodYACgkQgNMC9Yht g5zgdg/+IdFMt3CSBicFd90HvGT0WoTKYAJFPFnHEWkMP5NNbOshaTX7eHnYfuB6 gDkYhXuGC6OZJ1N839HXyXWPkmL4iZX/+Ba1hCFqOx+2znIY+zRRlf19+EdvyuGU jarSv7VZScgVjrFtpVtt1DRRlFqG86ppemyH3og1S+7gQ1gss7maNILXyRg/40lj VhmluONX1E+pIW9Dh50iGKEd3Gn/Im4B0UwV383fLlOMgtOyjGJ5BfMKJ/E+A3vo XedrZPJ3xFFSo9l5kNKnGChwXBkUfBKg74fc1q1QmpFVb/dTAVHWy0bL7bCpSoPs s/XfpgIFEQqWdrKTB9yR2O67OLHL0AnMUDYJcIemBcyEmVL6WlEpKp1I7czEP8Fq m79YxTTzO12Sath7Yh6ntGYBgMLBO57Vl+CSqDNpuXQAWD7u5HQLpHiYE8vaAfPG D+WHSu4ZUVOrpAe8TonrzKgXTsHwZzR0JZ2EmSSJsyPmmSk+0Ro8PR64grw7n4Di FUqVotIKtY7uDfXsRiTNhPlIpde1Sm4MDQPhITEcVdSRCXkTdsq3jZFhvKW8l8Wx bQxICmVk1WQGubs++s8ArUxJhO4KnAzsB3yiv/obcMT4lgWKbUmUmyjSlYngLVnq jaP+Hb4auLOEWvoWOReySy7ovgrkhhZ9zuqGvDYB3IToa2uoULs= =HpMT -----END PGP SIGNATURE----- --Sig_/80XS4+CdZ9JSPRbvT9=p+Py--