Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2614693rwb; Sun, 6 Aug 2023 23:53:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaJdxwgji0KNOoTYELzC2l/cwDLayIviS2YCZtaAGQDAgxZwhCCwq1lnHTbUEIL1OtzHVg X-Received: by 2002:a17:906:3153:b0:99c:bb4d:f590 with SMTP id e19-20020a170906315300b0099cbb4df590mr4698279eje.47.1691391189505; Sun, 06 Aug 2023 23:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691391189; cv=none; d=google.com; s=arc-20160816; b=OlSRUL0Rutyb8e/Q3LHb3evh2NgklUEGY+Ik6FQrRdLuTyOIY3AXQfi486pmZm9hWe BKKzNLrnD4brRDa6xYDSxxzrkWnOaCWG9ImyatKRiHfY8nh0rQ6B4OoZK+YksusyE0MR 6349Zwco+uUjEW+uXJCLnOWLDdJBwlPIo6QhKfOLZXxYAhTjAZeMIcvrJTcRwjDPYCnn llA2wzZMDVFOOC9gdjM6isfhdkIH9Uw/wtwMVpWE0AkYsU0YGr55oLlnC4moLvF2pNJb Q1dfaVi7RYHerBtkzBckRjn7+2SlwZr+YJSQAKb2d7doRz5+SbdxxEBFZDGNeqMbl02d N++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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=shmkDixKjfxqPOOrej8a436ZyPxFgCre534PhMkTgyI=; fh=T62Tn8LIPUh9CWcNES7Ei3e3Sb5wqUu62thA7Oxo0vQ=; b=S+2sqYLfHaaY+JgSUaQJSQAoZ+i2QvSc19TynFx622To9A7PdvB5tCEW8EbHBTzpe0 NzDTBunxnBqM0l/iZSgWSmny3WUXThN4+J1JmKe59Ai+4cz3ISzqYpReMMEz2/5Bbzmz RKMypk8GSd2AwL5aoIb93psud+8oJXjP589Xg8sk+CzrCdUwobghU/T12W8gx33GD+Xf 9CzmH62U2VKW2Rsk7t8TUFWRHRTiu/YAvLfiAgfeduKnooLNWFrpA3GbXIskjBQqgf8f 2Nkhrq9BxrBwSc6W9wwtjxO3kD64MqV0e7yZo2DXDMTP3OLEBisDpOvkL2z3gnYAWJaD 9a7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FxVD8Hp1; 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 y23-20020a170906471700b0097d787c4afesi4187761ejq.398.2023.08.06.23.52.45; Sun, 06 Aug 2023 23:53:09 -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=FxVD8Hp1; 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 S229639AbjHGGlL (ORCPT + 99 others); Mon, 7 Aug 2023 02:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjHGGlK (ORCPT ); Mon, 7 Aug 2023 02:41:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4CF12A for ; Sun, 6 Aug 2023 23:41:09 -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 0C33A61554 for ; Mon, 7 Aug 2023 06:41:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CE57C433C7; Mon, 7 Aug 2023 06:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691390468; bh=shmkDixKjfxqPOOrej8a436ZyPxFgCre534PhMkTgyI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FxVD8Hp1iaXBb/k+3GfCnYUbLQrwZXepIexhr+bB3i12CvGu1/HUhgkqYVxip66NE zE3cZDqeeE9DByt2SwBSjhri8VRgVYOLRtY8jZzfjr5q5ulG0bGrsthbM8Kdfvkia7 LWsS8vz5NcRTwmgYfdd0nOzLSRxDzAZ91hE6Vv+pK/eUiy7Mubr4DwgrofwHoG/VFC owsP8W+ZY/3UhwhGyVXACMr+CQMsp1Tal3r+x6MMvASR/gd7cOmQ3XvfQSwRIK8fEQ 6XdsGUgLUsXjDzxgLG550/Raa9ALWyH/U1J/P3AZxBN+oRO+A30XLMjaG4jqOfiBCF 0NwL9USzGJCEQ== Date: Mon, 7 Aug 2023 08:41:05 +0200 From: Maxime Ripard To: Douglas Anderson Cc: dri-devel@lists.freedesktop.org, Linus Walleij , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 04/10] drm/panel_helper: Introduce drm_panel_helper Message-ID: References: <20230804210644.1862287-1-dianders@chromium.org> <20230804140605.RFC.4.I930069a32baab6faf46d6b234f89613b5cec0f14@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cxm7ekfl4brm6ey5" Content-Disposition: inline In-Reply-To: <20230804140605.RFC.4.I930069a32baab6faf46d6b234f89613b5cec0f14@changeid> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --cxm7ekfl4brm6ey5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Doug, Thanks for working on this :) On Fri, Aug 04, 2023 at 02:06:07PM -0700, Douglas Anderson wrote: > The goal of this file is to contain helper functions for panel drivers > to use. To start off with, let's add drm_panel_helper_shutdown() for > use by panels that want to make sure they're powered off at > shutdown/remove time if they happen to be powered on. >=20 > The main goal of introducting this function is so that panel drivers > don't need to track the enabled/prepared state themselves. >=20 > Signed-off-by: Douglas Anderson It shouldn't be necessary at all: drivers should call drm_atomic_helper_shutdown at removal time which will disable the connector (which in turn should unprepare/disable its panel). If either the driver is missing drm_atomic_helper_shutdown, or if the connector doesn't properly disable the panel, then I would consider that a bug. Maxime --cxm7ekfl4brm6ey5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZNCR+AAKCRDj7w1vZxhR xUuTAQCAryTeq8rxbABCSj1+5dZaS94tv1e24Y3awd+OHda54gD+MOimHLia2BN8 S9vFKOumNJpLn7fm+W9z9AHJA1tCXQw= =TfNh -----END PGP SIGNATURE----- --cxm7ekfl4brm6ey5--