Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1699495iol; Fri, 10 Jun 2022 12:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtfyuKkA73itzdG/dDMHETHTzLxGUaN7HaFXoUGqoGW3sMaOTzIOYfXxgfVdoD4gJoGfEc X-Received: by 2002:a17:906:2dd:b0:712:1293:3dd8 with SMTP id 29-20020a17090602dd00b0071212933dd8mr6898086ejk.448.1654891116175; Fri, 10 Jun 2022 12:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654891116; cv=none; d=google.com; s=arc-20160816; b=vbCBJt/cF6WkUPeVGh31KuesotxulR4ORV6RP5aQL2My89oez4lsRfquHjQ+7SmsAt lBElpJmditMpL3IaekYqXw5AaO0Jt2yQvQFMeSZKj4khKpb2pM2QBH9FRCdpLYVIZHws PzDRCip3T0Q3zkGBKYi+rDqXuVbKKLiMSFQgfMGV2F2EGWppaA1EGzkH12+modNWD+uD iFoT1aar1lfrxcxE2ibWHrx4BY7zUpD3l2XPLJRE/uxxhGcL7jym0G5umeDT09NR+NDL IKj5B01wJra+PaCam56266c0qLn5WUnMh+9EYv9wxcptIwr61oO92iNsb+VcaINw6Ojh Dv/Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=yUY/DnIxjDue7wT95qIOB79riamGBEfZ96J6K/Td21w=; b=CmnKRV7n8T1WPe57bCriBkdwlqzCn4N6jL9yecxWx07pSaNKmRj+jlQHx0zzbRZ4lx 1CDxizwgEXNqCvQUU8B5YvPr46TinXEcCFQhQT1IeFA1oj+UXtsYrmp6SgAVLwhtBEzj A35Eyl0XjiPkMmhtFC9vuxTNn+0cBkiUAT0bKVzk2PH/D9jaxEyjqtlyeNzcoIdwrx/z YzWvOglgHETR4eVZyb13u3DeZKzivxAFvkZi93FgSPttaDzar8VaoDu500yKOjlJsJsi es4cPlX93TRty3inL7urJnhSYwuneZWPOp0aXjMOFIdFcM3XMOMPGYR3oJpe97MnQnMc eTMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=WbYF3yEu; dkim=neutral (no key) header.i=@ravnborg.org; 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 y16-20020a056402441000b0042f9ff7beb1si135250eda.615.2022.06.10.12.58.11; Fri, 10 Jun 2022 12:58:36 -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; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=WbYF3yEu; dkim=neutral (no key) header.i=@ravnborg.org; 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 S1347083AbiFJT2w (ORCPT + 99 others); Fri, 10 Jun 2022 15:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350550AbiFJT2j (ORCPT ); Fri, 10 Jun 2022 15:28:39 -0400 Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com (mailrelay3-1.pub.mailoutpod1-cph3.one.com [46.30.210.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5BE1C78F9 for ; Fri, 10 Jun 2022 12:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-transfer-encoding:content-type:mime-version:references: message-id:subject:cc:to:from:date:from; bh=yUY/DnIxjDue7wT95qIOB79riamGBEfZ96J6K/Td21w=; b=WbYF3yEuHjKi421BzbyY2CD+QL/rWS7WXaQK5nlcZ3rX7m3U8DyTwQpk2Hn1OnP++6xy9XuFn0+FD 9lrwb5CXeUCBjzcAg0JP1v3IMKHFgCsRFX7pYJnvjsVgNTvvVq77Qf6/W2PXd+PAO96H1krFVBHlZX RBQI/ukV7QE0XLMoak0abtoDLSct+W4Dt9l5+hgll4cYy9D9DSclmBDJpRziJ4jPX8eIn79YjFH+Ax 5GGRUEOrXPCxSa6Eo3yA5fCx96ENO2KDERmSdvviG9R83akUVq29lXMPpQa9bMD44ah23fG+Nv/tVA bLRxmanpnfL5AT05H/t93fBtDo+EJXg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-transfer-encoding:content-type:mime-version:references: message-id:subject:cc:to:from:date:from; bh=yUY/DnIxjDue7wT95qIOB79riamGBEfZ96J6K/Td21w=; b=cp4Qer+Ca5vbaOZQ2RKoX1pcPPkX4ULqp1SNlb/2ByHWnkr93naQB1aJUJWVov1t5gilzSpvlUC9W BbJJXzEAg== X-HalOne-Cookie: 37fa42ebdd97f57a6e422a39d60d3a92bdb63160 X-HalOne-ID: 84985802-e8f3-11ec-be77-d0431ea8bb03 Received: from mailproxy4.cst.dirpod4-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 84985802-e8f3-11ec-be77-d0431ea8bb03; Fri, 10 Jun 2022 19:28:34 +0000 (UTC) Date: Fri, 10 Jun 2022 21:28:32 +0200 From: Sam Ravnborg To: Stephen Kitt 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: References: <20220607182026.1121992-1-steve@sk2.org> <20220607182026.1121992-3-steve@sk2.org> <20220609215236.ojxw6l2vkf652hgu@mercury.elektranox.org> <20220610194720.485cf7be@heffalump.sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220610194720.485cf7be@heffalump.sk2.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Stephen. On Fri, Jun 10, 2022 at 07:47:20PM +0200, Stephen Kitt wrote: > Hi Sebastian, > > On Thu, 9 Jun 2022 23:52:36 +0200, Sebastian Reichel > wrote: > > On Tue, Jun 07, 2022 at 08:20:25PM +0200, Stephen Kitt wrote: > > > 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; > > > > > > if (enable) { > > > - backlight->props.fb_blank = FB_BLANK_UNBLANK; > > > - backlight->props.state = ~(BL_CORE_FBBLANK | > > > BL_CORE_SUSPENDED); > > > - backlight->props.power = FB_BLANK_UNBLANK; > > > + backlight_enable(backlight); > > > } else { > > > - backlight->props.fb_blank = FB_BLANK_NORMAL; > > > - backlight->props.power = FB_BLANK_POWERDOWN; > > > - backlight->props.state |= BL_CORE_FBBLANK | > > > BL_CORE_SUSPENDED; > > > + backlight_disable(backlight); > > > } > > > > The brackets can be removed now. Otherwise: > > > > > Reviewed-by: Sebastian Reichel > > Thanks, I’ll wait a little more to see if there are any other reviews of the > patches and then push a v2 with that fix. 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. The three you posted is already a nice step forward, and there may be more panel drivers I have missed. Sam