Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1718942iol; Fri, 10 Jun 2022 13:25:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN6iqGZIxDSdzeWAPEX+nhIye0Cql8sl59W/QC+DWKo0w8zFNJnDbEP3XrtjbLXP+0f1En X-Received: by 2002:a63:de01:0:b0:3fd:9833:cdcf with SMTP id f1-20020a63de01000000b003fd9833cdcfmr26870636pgg.315.1654892752586; Fri, 10 Jun 2022 13:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654892752; cv=none; d=google.com; s=arc-20160816; b=pICWR4FSBAC1TwE1iLNaUYEaE8I/0+cj0EjrqNoFewPDtfeCyfVlXqrZcWbAjSU3QB NG6rLhyIvePjn9xSHysWHrhZnCb/7Mpr8LMUT5bBCnFrLrHlmG8UT2YlKzThsiwAmEWL Sx7WifH96gLEaCM4vZ62CPsR0tGHe8x/jsj+xykOpHhcerYMK7guNLwr0kee9WqpNPdT jdJaySbaSIllaFfJA3U6uGL7ocQ/BruyMbWEvs5EtXgpTuir+Gio9yzJtOmg0OOo8jeN XcQnlklh9RHKgQwWVaqVUH5W7To10TFW52DwaM1uYvlRZjmS+orn/XYyZYM4lWbRlL70 Sxkw== 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=P1H9ZUAPY3CI3V7i6xo1UwYAaV6to0IgY8aEv9RmEgw=; b=qODypZJ0tbMB0d6aM7jPHZMjk1I8ueMMqHYfNE3Js0xNRASjderdUZ9Wfc+MOMMkoj B5MxkE8exakA5aZmAC57vcotmAdMzXsc0l2bKCQj9x8P28CzjcfiSRetFvRjqkgeogcl 7DBGh0WJ1ACz/cFD/+VH0YvN5A83BSRWyvFTEl5qRfbTWjm+2y8GEq8BTAs2HzlaM4nt rMJYnXxaZyUGoEGPbPEH/VBGfDj2xv/c3F8AMMUErwt+IAowYUVxDK91pZmV0X2DGTbk 6kllVTiI6fME5noV6Y0gPg7KFBUPUEe3x6Jw1f36zMa5lF3aEHWx9efjRbtXkXSaA499 0ZEQ== 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 k197-20020a633dce000000b003fbdf18b722si225435pga.84.2022.06.10.13.25.40; Fri, 10 Jun 2022 13:25:52 -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 S1350469AbiFJUIc (ORCPT + 99 others); Fri, 10 Jun 2022 16:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350528AbiFJUIY (ORCPT ); Fri, 10 Jun 2022 16:08:24 -0400 X-Greylist: delayed 93714 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 10 Jun 2022 13:08:22 PDT Received: from 7.mo584.mail-out.ovh.net (7.mo584.mail-out.ovh.net [178.33.253.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13D8D23D9A2 for ; Fri, 10 Jun 2022 13:08:21 -0700 (PDT) Received: from player787.ha.ovh.net (unknown [10.110.115.3]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 6AEBD2398B for ; Fri, 10 Jun 2022 19:52:51 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player787.ha.ovh.net (Postfix) with ESMTPSA id C17712BA6FB0A; Fri, 10 Jun 2022 19:52:43 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-104R00590c0b8eb-a28d-41b2-a5b9-2a9d9c025f35, 3EA6D779A65D7DCBA15D92F127CD72011C01B2E3) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 Date: Fri, 10 Jun 2022 21:52:36 +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: <20220610215236.0d5d47b7@heffalump.sk2.org> In-Reply-To: References: <20220607182026.1121992-1-steve@sk2.org> <20220607182026.1121992-3-steve@sk2.org> <20220609215236.ojxw6l2vkf652hgu@mercury.elektranox.org> <20220610194720.485cf7be@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_/h3C.i8DgeSuOC0V+IcexQeD"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Ovh-Tracer-Id: 11606620668290696838 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudduuddgudegtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfgjfhfogggtsehgtderreertdejnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeeiheevvdeugeejffefteffvefhieegjeevhfekjeejvdelgfefkeehhfdufffhjeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejkeejrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheekge 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_/h3C.i8DgeSuOC0V+IcexQeD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: > > 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) retu= rn; > > > > =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 r= eviews 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. With this series on top of 5.19-rc1, the only remaining .fb_blank reference= 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 it as a four= th patch for drm/panel if that makes things easier! There will still be references to FB_BLANK constants since they=E2=80=99re = used for backlight_properties.power values. Would it make sense to rename those? Regards, Stephen --Sig_/h3C.i8DgeSuOC0V+IcexQeD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmKjoQQACgkQgNMC9Yht g5w1wA/+LN0+/CDVxZV49N+eebrd08Wh2wSZNW/GHE4YOp6TbzDidFX2NCp7PDG3 huw6ptYSS5zwufLv/oLE4HlshS6+5fVyvZyungOSpwfto4Ay5KR211xsCbxpdFk/ QDNRR6pn81hWzRxmdLle79HO1oWx1f2k1rVGSIYwt5LyxImdn3qS3CmNxYTR8ful H8Yu2CJ+udrhSxflQW74mpYzVTs7elnXL5MIhJ9noG1QJ9Ymn2fFth33sHNd6sWV S/SR0K1UUobBXVP37CyjldxTdxGYiu50kKrdiBEecp9RmE9fM3Gayzqep62mtBX4 0SZncfWuiR5rB/+nvXgpvrjl+4Acas1lgfr+YwyXGnXNINUWcQBhZBPXx45dcFPP dosuSR+mkegJTcWjJgDarBAHNuYZfQ+3q0IB+M33D+oAkcgFhDZrgKJSK7peVi8n 3i32dooNuMa6ljSStEkVW1N6ixNI2uhBcUydD3aB4SiDDGgfc5C1wTMTaVEFbkqT CUOZ1uTauftmBUyVIOEQ8Zij0p9+6AznP1kXfAA/qRm+xg1NDdkBo0198ToPnCDz Y5ykpmQ8wdj9IH/xlAwXNEdX1NtyuLPbx/GnpLx7m5g6m+f77DueJcXQhzz4WMDd Cy9/Jm5zVEw49ziokdLjhgYGx+qnQLm2hx+F/fzZAjF8fLDtzKg= =qbaU -----END PGP SIGNATURE----- --Sig_/h3C.i8DgeSuOC0V+IcexQeD--