Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4670649rwb; Mon, 31 Jul 2023 10:15:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlELfB47EKg1P61mDF92ysZLvcE3QS/K9dvlN1a+DdPIQN4FNoI59b5czrz1XEltVzW4nRFf X-Received: by 2002:a05:6a20:6a23:b0:135:110c:c6e1 with SMTP id p35-20020a056a206a2300b00135110cc6e1mr12183194pzk.7.1690823745587; Mon, 31 Jul 2023 10:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690823745; cv=none; d=google.com; s=arc-20160816; b=HeAa/zbbjZ14yfFJz2lpemZUM0JYlcHPd3bnPE0BbM7Z0QFrrrBqrB/nFtw43HxHCx ROZ+RnKSnUF2TNbAurcYgsn2a6RZHR6Lv8AHPTGcXeZ0511z+CmarFGZ0Lueop0C6Bqp KAVr+SNLF1f88GNuvY1kP0LfAUgiKz86WmsFnrg4icbvOVmrFw4LNrHyaGQMjh94pU8Q 6sPaleHVxIX/7ZnJT39gxgRCrPxjRhkDDyIMD2N5TvYZHVByyeZ4NoMs9Bxiq/n/Mb3F fDlL9N51QeczIJs3NbbIIRV+wYPBdW4mMRMZ6r64BDagsYRVbkx59daYbcVuAxms+qNw oUrQ== 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; bh=prqbrDd1eQM/ciCHGjg5jabFwA3khIZ739HC/mJfYHA=; fh=K40EOkVPaezpJ7Ehmrw3VzKpknjqP8IW4F+T7MRmDN8=; b=BV+8saDup56V4NbaGD9uobe+GM69JSHn8NGmPgna1X4vUFPWE1zEBz1+TPQS6P1k7y oXH22v+nDHiVWtYRg2vt+PtS5BYTuIpH+oe0hbCnS16TrqeXTA37p1f58yKwPY3x0q49 rASeZewGaeVM8IVKlmlqrcDL20MAP8GH2f6e19BAg0DLBQZ+jPozIkrfw6s1C22s2PjJ 5P+gzejMnE9xLvgqeLzWpdSzmGj4ecaW3SXmeqQbYX7BRWG0HNJz9LXkQdwjxVeRRBw6 ulVFF1xN1sYRl/vFGZiMNf26HsYG8bmRFa+dHVC0NIJnsRL7nxwh9FR+X0+wMEgieq4e 1kIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eejfjuhP; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu11-20020a056a00410b00b006871a42e1e5si4329204pfb.50.2023.07.31.10.15.30; Mon, 31 Jul 2023 10:15:45 -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=@kernel.org header.s=k20201202 header.b=eejfjuhP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233594AbjGaRDg (ORCPT + 99 others); Mon, 31 Jul 2023 13:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232255AbjGaRDL (ORCPT ); Mon, 31 Jul 2023 13:03:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE23F1735; Mon, 31 Jul 2023 10:03:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8CB4461206; Mon, 31 Jul 2023 17:03:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 736B5C433C8; Mon, 31 Jul 2023 17:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690822990; bh=prqbrDd1eQM/ciCHGjg5jabFwA3khIZ739HC/mJfYHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eejfjuhP7BADOW/epFaY0YfjeuaoWC587CNl3oKWWdwOxmI0MU+TyGgtJXmHlqCu/ JhG19cnizr15/Rf1nokDUwJ7XmHWQEwam5PLQRCe9oGui4E2/VZTpOaCgWWQpiqnWh UJWmVic5qArl8bC1Ok05bwLblI5knX5lUpgBvZdxefR2zSeCrf+8tcU1arh0/IhLW0 Pw20j9T6LSKcVe/WzfNCH46TB3HgonSpus5jUudJcqIXigCb/JvutafnJcvT3n9lQI apNl4dP39mJQaYZ6zrNsF23izQHNgo/wc49RfA2NvwobOFdIowpoas69DSRIPj3jNb WUwe3W5r6g4Xw== Date: Mon, 31 Jul 2023 19:03:07 +0200 From: Maxime Ripard To: Chris Morgan Cc: Doug Anderson , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Frank Rowand , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , cros-qcom-dts-watchers@chromium.org, linux-input@vger.kernel.org, hsinyi@google.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , devicetree@vger.kernel.org, Daniel Vetter , yangcong5@huaqin.corp-partner.google.com Subject: Re: [PATCH v3 02/10] drm/panel: Check for already prepared/enabled in drm_panel Message-ID: References: <20230725203545.2260506-1-dianders@chromium.org> <20230725133443.v3.2.I59b417d4c29151cc2eff053369ec4822b606f375@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dtkqu6ml752thbrc" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 --dtkqu6ml752thbrc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Mon, Jul 31, 2023 at 11:33:22AM -0500, Chris Morgan wrote: > In my case a few different panel drivers disable the regulators in the > unprepare/disable routines. And that's totally fine. > For at least the Rockchip DSI implementations for some reason the > panel gets unprepared more than once, which triggers an unbalanced > regulator disable. "For some reason" being that DW-DSI apparently finds it ok to bypass any kind of abstraction and randomly calling panel functions by itself: https://elixir.bootlin.com/linux/v6.4.7/source/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c#L868 It looks like it's fixed it current drm-misc-next though. > Obviously though the correct course of action is to fix the reason why > the panel is disabled more than once, but that's at least the root > cause of this behavior on the few panels I've worked with. Like I said we already have a commit on the way to fix that, so it shouldn't be an issue anymore. I stand by what I was saying earlier though, I think it's mostly cargo-cult or drivers being very wrong. If anything, the DW-DSI stuff made me even more convinced that we shouldn't even entertain that idea :) Maxime --dtkqu6ml752thbrc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZMfpSwAKCRDj7w1vZxhR xSIXAQCizbGTVxHYDBO+tfnKn70WkSNp3OzkFHZtJzhXUbG9NQD9HpsTG6Ik+ohd AXiX0xz1UvP/to/HW6CpWv7tiS5uDAw= =pXP0 -----END PGP SIGNATURE----- --dtkqu6ml752thbrc--