Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1032395rwb; Fri, 13 Jan 2023 07:09:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6syzY7DZQQiyXHIKx3Iy8hscFZO8Ze1QKg3CdTiwztHhVct5FU6Ilqcobc29pax4zpix5 X-Received: by 2002:a17:906:5dad:b0:7c0:dfba:54d3 with SMTP id n13-20020a1709065dad00b007c0dfba54d3mr11531681ejv.20.1673622585107; Fri, 13 Jan 2023 07:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673622585; cv=none; d=google.com; s=arc-20160816; b=A4Z9OWFVj07ks36BSMhi080Ua2xwGizgpo9OGaUbMAXJf1+1JTBnSnIkE8s+vTJcIf RjY3DgXi57+22RpqXVhZlWHoafdZJrgWK89kUsDLiHB/GKFpSJjoesTymRzOpflHSiGO TPtJ3EkqoiS9PiDnwOxdEGePJkLFaauy7YGa/5KcA6S0l5teWcRrLtDG18J3NdT2IXs9 e+joQ7JljM3nvu0afJgovQqpkfEq1KGGmW0P5QEwzkRqUDFL/ICSh3PAWYiwLBXpV3jc LOg7NWL2QxrbhxQhpAQGG9as6QcRoD/8VDpdtl/wbxNgjfsyoTSe6Rp+o9HVmLVVADRp FI8w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=KwQ22b8Nr1nOkVeoMuuOuuiuzvEAnD1GlpwPb7e64as=; b=U93eDzzcN8JmsLYmydPzz8+5uS1hjua+OpCKq8vpqlGLZ7Wvyi5anNBsQf3NJOpJPZ 6rHV2+WOEr+AwLvVZDBhfjMonj6/lrFnFnzQTP9UZctarZDdl71WibXesoisZcBpv5wb TpcTYC7fGmQyHqwBYFvPV6zSCMkEUdTknMh7YSL64aea1Y92qY3QGLGZ5eUqb22W0YRZ aFtQHcZFYXVeMubzDFmi76PJPOLmYE3TT7peT49Zkw2VHSKOPhv9ccdWlfBEM5+kpcb1 7I+Mv/RhKtuTx6TIeEAigEPMn1WJLFdankQwq9xer4wHOFhEyZwFs7v4ew+4UBdLPPQx fN0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=NnbFIHNQ; 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 ho6-20020a1709070e8600b0085feab41d0asi9616800ejc.270.2023.01.13.07.09.31; Fri, 13 Jan 2023 07:09:45 -0800 (PST) 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=rsa2 header.b=NnbFIHNQ; 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 S229663AbjAMPCQ (ORCPT + 53 others); Fri, 13 Jan 2023 10:02:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjAMPBM (ORCPT ); Fri, 13 Jan 2023 10:01:12 -0500 Received: from mailrelay2-1.pub.mailoutpod2-cph3.one.com (mailrelay2-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:401::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7792463D17 for ; Fri, 13 Jan 2023 06:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=KwQ22b8Nr1nOkVeoMuuOuuiuzvEAnD1GlpwPb7e64as=; b=NnbFIHNQsE4SGlyOpADh5QOibw62s4YIpk8BfSxLHZkosThjDfZasg47Xf95DMgstg4iLLH91bCyA s0tGTA6wMUOCvS5ytmDUTq15usC/vdlh1CBYHZ7zAZDDQN5qt40GbQalL76aWwVxkhA5Ldl7F93HT1 sISdwEfCKZu4YhbeMF76SfoCYSofMnYx4j46O4NqXIu+aZN/dWMKx7WgOAFvVhXoG5y1cQwSlCu8nS AibyXw8+/MSQNMhds2N9oNgNn6mgSiSv/CS8xGWLoEO3qwQPcm76FklvC2cHQu2wejHu9eoIt1kwS7 HubLJxSep0UrRwLYmuStCShFOnvm/3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=KwQ22b8Nr1nOkVeoMuuOuuiuzvEAnD1GlpwPb7e64as=; b=jXTnJnPbpPvp28lUNFIDX6bN9rE1EJYDsoziEwow3qmbI5T60a0vGRZAw8SefUhP005zyh4s8JP9S MqfcaBdCw== X-HalOne-ID: dac2612b-9351-11ed-80f4-93f0a866dfbb Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay2 (Halon) with ESMTPSA id dac2612b-9351-11ed-80f4-93f0a866dfbb; Fri, 13 Jan 2023 14:52:11 +0000 (UTC) Date: Fri, 13 Jan 2023 15:52:09 +0100 From: Sam Ravnborg To: Stephen Boyd Cc: Thierry Reding , linux-kernel@vger.kernel.org, patches@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, yangcong , Douglas Anderson , Jitao Shi , Rob Clark , Dmitry Baryshkov Subject: Re: [PATCH] drm/panel: boe-tv101wum-nl6: Ensure DSI writes succeed during disable Message-ID: References: <20230106030108.2542081-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE 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 Tue, Jan 10, 2023 at 11:29:41AM -0800, Stephen Boyd wrote: > Quoting Sam Ravnborg (2023-01-07 12:28:41) > > > > > For this case we could ask ourself if the display needs to enter sleep > > mode right before we disable the regulator. But if the regulator is > > fixed, so the disable has no effect, this seems OK. > > What do you mean by fixed? What I tried to say here is if we have a fixed regulator - or in others words a supply voltage we cannot turn off, then entering sleep mode is important to reduce power consumption. But any sane design where power consumption is a concern will have the possibility to turn off the power anyway. > > > > > Please fix the unprepare to not jump out early, on top of or together > > with the other fix. > > After this patch the unprepare only bails out early if the bool > 'prepared' flag isn't set. OK, then everything is fine. Sam