Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp835001rwl; Thu, 10 Aug 2023 02:16:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjgXn/0aovAhFUvXFHVklaX7EFv+ErNR00xYrKlLUB13fXtm1/rqCEI4Z/FQU8Bccb3nRp X-Received: by 2002:a05:6a20:729b:b0:135:bf8d:b758 with SMTP id o27-20020a056a20729b00b00135bf8db758mr1970033pzk.16.1691659000448; Thu, 10 Aug 2023 02:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691659000; cv=none; d=google.com; s=arc-20160816; b=afyZBq8j5DxtVukFnubmgWSqW0Ka0FKh/lavBG6I33++wqulLJvfVHzMj2ljuy8/CU 4wKTthcKE86Atrc6Q+yC+21ntmA67gWMxN63n53VsKWa8znvVTZTgGZM9jh8DlAzARfc WEN3K2u5F8Iv9VQKUnFQKqOwbyCiLnRz/Dd2h1GM2O0ZGe/8SYeZy1GyZRws/aXrefiR /8P7c4Tpbsi+A9Ok02BLabYbQZVaExcdpM2u93S60c4x939WwmmqocpHuNaNaZ7VHmI9 IiFZQk1EYL41BxjyhdowbATV9oZXGsEwlaR6IcOc2CJ+z6GNzEsuoiaF7jWmOBCENKA9 U2ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0FSQOxCgo47VmIjcYi/njGt347ahAIyw5h4v3LyUWu0=; fh=kkS7ykGcKe1b8OLahFAFTe9GCLlHn2HKaEgHLtHWQoY=; b=qfyVoNiJ0hZ9Ln9qAVdbKYX1732hJ5Qfnmq4ZuKjQlDG+57dcRdWoPXLOfFAOYWtPB /xV50hBTT2Fibj0PXv6r65LlzwYT+0tiZ5287dRae8h5sOg9Q6fBnu1GSqE6vGec2u9T rBvhfJF4tdFXGejqbQpYOG6ozrmwbp787lRzhtEuzTJGU2dwcrNbuQTCDaGMVOa/NJkS Ysbv/e2LAD1yWhUx1xMmO3TJLwrPO+Ozdv0NSq6vVMMnf4dYT46TpIsSF/GJ8AMDe0fX jgRbntnUUi8e4kfqg0ES+Jkf+LSVapFR5vnOYFiqC8UCfrlad2+ojZzdklflc5IKopGP lWoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eIW4Fs5A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a6566c6000000b00530b3b98fc5si1220759pgw.417.2023.08.10.02.16.28; Thu, 10 Aug 2023 02:16:40 -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=@linaro.org header.s=google header.b=eIW4Fs5A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232369AbjHJIXe (ORCPT + 99 others); Thu, 10 Aug 2023 04:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbjHJIXd (ORCPT ); Thu, 10 Aug 2023 04:23:33 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D31ED for ; Thu, 10 Aug 2023 01:23:33 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-d44c2ca78ceso2580889276.0 for ; Thu, 10 Aug 2023 01:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691655812; x=1692260612; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0FSQOxCgo47VmIjcYi/njGt347ahAIyw5h4v3LyUWu0=; b=eIW4Fs5A42B2jvHBg7u7h7ZH53RGKE9aq6BXQT/kJuJA7pwmgm8ERy9rF371C7gjl8 HmXYa19Fo2AgBFTzm3z1ESM+b7kgLu9yVwHF9ZQx07oFflmNZzqH2KWlhXCBMm359YqE xIiZTXdBwjkcXqziCH3qy10kCKRTn2dDujpAl+nUkpZee4tgmO5VrEeUHM7Z7M5qHLMD xS1tC/uqJ+fe9i7rrZ61v9lsjdmdmbaRkJAvdm1ZWegU47VzYUAGqU5jUBfJ8EyzHaYN 2MzP2BPJWj61L9ts1B9NKbD7KPY+8Np/9Zl8oJPBsWAntVhfuV/q8NhZNF1pjRjmyWab stOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691655812; x=1692260612; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0FSQOxCgo47VmIjcYi/njGt347ahAIyw5h4v3LyUWu0=; b=asptOwHCU1K9dgBvvQnPBR8NwdPFBVscsouYcwOShOtxHhxwyJUx1ndKHzTd0S72Xy haewVBmO7PH+w6RSEgVDMiwZaqhJhJdIsAlQqgI4zmZGhto7xDYJetFYoER6Ib5g4k9V rZ2izPGfXl4Rfogc1e0ucRH+iylP6zep/btqe5JYJbMffF3Yv54+hG+g5/tGf0FMu/he 2baOPSjx7cNqqQn0sqeljjhW5xasNE17dfU/1blyRhizfXS4L+W2DsKT0z+ZCXIYITvL bolEYffouDKNJuBSrDejzFfrdMaZmye1g36UqOG++HVkMn3avQ/xk0eqcgqZLoCRkwKe dlaQ== X-Gm-Message-State: AOJu0YzAKTxBXm6nJrRuzOfl2CukbluXIETY7NMW9ynkgygvojAnOEdB f95itCNR3dfSZGXDiZgR+eYSH/4qyAPI91nCzp/Wiw== X-Received: by 2002:a25:e6d4:0:b0:d47:7448:81a with SMTP id d203-20020a25e6d4000000b00d477448081amr1662391ybh.23.1691655812036; Thu, 10 Aug 2023 01:23:32 -0700 (PDT) MIME-Version: 1.0 References: <20230804210644.1862287-1-dianders@chromium.org> In-Reply-To: <20230804210644.1862287-1-dianders@chromium.org> From: Linus Walleij Date: Thu, 10 Aug 2023 10:23:21 +0200 Message-ID: Subject: Re: [RFC PATCH 00/10] drm/panel: Remove most store/double-check of prepared/enabled state To: Douglas Anderson Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , Daniel Vetter , David Airlie , =?UTF-8?Q?Guido_G=C3=BCnther?= , Javier Martinez Canillas , Jerry Han , Jianhua Lu , Jonathan Corbet , Maarten Lankhorst , Neil Armstrong , Ondrej Jirman , Ondrej Jirman , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Stefan Mavrodiev , Sumit Semwal , Thomas Zimmermann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 On Fri, Aug 4, 2023 at 11:07=E2=80=AFPM Douglas Anderson wrote: > As talked about in commit d2aacaf07395 ("drm/panel: Check for already > prepared/enabled in drm_panel"), we want to remove needless code from > panel drivers that was storing and double-checking the > prepared/enabled state. Even if someone was relying on the > double-check before, that double-check is now in the core and not > needed in individual drivers. > > This series attempts to do just that. While the original grep, AKA: > git grep 'if.*>prepared' -- drivers/gpu/drm/panel > git grep 'if.*>enabled' -- drivers/gpu/drm/panel > ...still produces a few hits after my series, they are _mostly_ all > gone. The ones that are left are less trivial to fix. > > One of the main reasons that many panels probably needed to store and > double-check their prepared/enabled appears to have been to handle > shutdown and/or remove. Panels drivers often wanted to force the power > off for panels in these cases and this was a good reason for the > double-check. As part of this series a new helper is added that uses > the state tracking that the drm_panel core is doing so each individual > panel driver doesn't need to do it. > > This series changes a lot of drivers and obviously the author can't > test on all of them. The changes here are also not completely trivial > in all cases. Please double-check your drivers carefully to make sure > something wasn't missed. After looking at over 40 drivers I'll admit > that my eyes glazed over a little. > > I've attempted to organize these patches like to group together panels > that needed similar handling. Panels that had code that didn't seem to > match anyone else got their own patch. I made judgement calls on what > I considered "similar". > > As noted in individual patches, there are some cases here where I > expect behavior to change a little bit. I'm hoping these changes are > for the better and don't cause any problems. Fingers crossed. > > I have at least confirmed that "allmodconfig" for arm64 doesn't fall > on its face with this series. I haven't done a ton of other testing. The series: Reviewed-by: Linus Walleij Please send out a non-RFC version, this is clearly the right thing to do. Yours, Linus Walleij