Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp101641lqh; Fri, 3 May 2024 14:58:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGgMzcSmpo5AnOntVUqDqKD00zeuTicrCiVpCP6by9u0EUG0LCklnATl5Inv1IvUL3YuUv1PLCmMg5ikF2Yp6Bc9sYGa3qMSfoXPw1+Q== X-Google-Smtp-Source: AGHT+IHpoSua1uPg7++6Z9LJe1T4F37BW1CXOSfM/UAesZoLtGcDVYBpLfapduWslMOF2DmK42DN X-Received: by 2002:a17:90a:c7c1:b0:2a2:dd53:828b with SMTP id gf1-20020a17090ac7c100b002a2dd53828bmr4042648pjb.43.1714773523576; Fri, 03 May 2024 14:58:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714773523; cv=pass; d=google.com; s=arc-20160816; b=k+RbNS3ovHU/FgHUZd9vVm6PLqlHi3HZQWB9qsG9caWHSHxNbGpypWjhRNiXvNrTiH b3p0JujPR52rfVSDh9DPGnhixZM0Bi99pQdDOwLzSpKoQlk0pFsUuayyDX0GzcF7LDqb g5Viuf6rG0OzaM1M7PizsSZlLL3AXBbFwn0efo8BGqT/0TwhfiMmECOB0W2zVdtlC6MT QKdVkApt2Vh/ewLTs9fhfXlXWF/sQ87yeu9Odht9syVoq8wb4NjqzISkn1IwKEcNfIIY rFQG02skhdKABh+tlqozd623fVqkE4l1qCYSsLhUkw71HiqzXvVY3SbJrwTpwgsAd0BH i/XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xmnOhTLenfwPbkZ+9fOpNpevbnj0AgHZgHCpxDLbWgM=; fh=w3Q2xWJh/J1rjf24JsOGThwtj2m4NT0c5zHi59DAayo=; b=LhXtcm2bMhqfjx0AkDAaJj3Xi2WFJ9+BXLHO8ivhFPFoZAkJxu7BltUvz3e/mDWi+X xgqqMX9L09oWZ8cqyAXcVW9/Sd3Rtq4ckSmoY8AVPbX8/w88AEdYZe2y46qtTP5/Azr2 ZTTMXIscFPl4xf2YngAuz+qduK8JjB5RGsWK6vFB35RDye1CRDmn3PSDLMT5WxyZAKl5 +vcYdbum+o27H9l/VgLabhb8Tz0uW9Z/C6LlOaZP2ap1wHJUP0rRbtXOf65DdnK26s7y 3qYXan67H5eRBUbBGJTwGwNMqRP7MYLLbS7ShaaqTWIpKSKeCQItlderxBeyFk8raaIk nfjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NPr1KpgS; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bv19-20020a17090af19300b002af13976e7csi674844pjb.162.2024.05.03.14.58.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NPr1KpgS; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 93855B256B6 for ; Fri, 3 May 2024 21:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8C4F137777; Fri, 3 May 2024 21:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NPr1KpgS" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75ADB13775F for ; Fri, 3 May 2024 21:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772291; cv=none; b=eyxzaReKdmW0pa5qRf9ZChXZ2zY3mV9ogT/6mzHMerhMwXqqE+6jHrlFxGqHKKoFn67xQSmJ1FoHswmllyzjf/alV9h28/cXvg/O3La2KYsyLKyDZlxvUxe/xQlDWLz9nWqTgPTK4z7/OngSKPQssPryZvubQLdnnR+9FWp6io4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772291; c=relaxed/simple; bh=mdz7Fil6G5HtVsThsciyp8mFKe8053PCBwsR0ckmCe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pHBHWWetPSiifb0Cw6d160Ed1zJHi+u408P6V07XOcnuHJlLG+jKOO+68jH3V+7lZSEtfJ6RdX06rJjoXXyXbtfqBPD9ASW6hy7TITPWVwDVSzkuTky7VQjPL7gKyAmvpB/l5JMAFtbbB8HqLAtT7KrFWG/Yp0KEE01Uqhx0N+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=NPr1KpgS; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1e9ffd3f96eso791345ad.3 for ; Fri, 03 May 2024 14:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714772290; x=1715377090; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xmnOhTLenfwPbkZ+9fOpNpevbnj0AgHZgHCpxDLbWgM=; b=NPr1KpgSXZk5gKHbyx0ZceKqrUITAdaA32k4r1g9A6aMu3BW9XKr8kBsKVQyw2CWL3 dUtdGRb4ohTG8IpHXhIHKybsy/FWBw6TMAua46EOUA5kNS8eHLFH5cPs/c6vQZY0aTWx akdO+qllMGtLIGV3Opv29qLFUVSLgO5XjLVbg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714772290; x=1715377090; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xmnOhTLenfwPbkZ+9fOpNpevbnj0AgHZgHCpxDLbWgM=; b=FEEXWAbdOgWf8O+1OLcMiSnoZdWoeylcecj8dfLqJayDLq7PuKzfuGT0y0+xgK2DTG lbJnVV7a5dSQV8EyyijdEyM+o95kxI/BAW1kDt6elM4obJkD7KTBb7E6M2xOmnV2TsFB LA67tRYK2Oq++0womuWT0axiFXTbFn55bjy9wSJv7mKvEd1Zl5zwnAfZMCqfiNeiTRFs vDYVQGFEVROTVhpRqLslIpHaZbQB5hrnm1LMtHxcXUXVY/H8Vj85pWjxjKPX7k9mqZDz +9iHZIlJEdEDUKwA3gEhOgL4CfIjq9Glx5w23LLbrd1a6C87/dJjImwnfXqYo46g8mv5 +0Pg== X-Forwarded-Encrypted: i=1; AJvYcCXxqSTH/HSC6KpeO2s9Hpkp51T/8QRDriUKfxVWRl4cdfiapLcrmm9q4MPQWgt2yJv7c9oOHYW12xDzNKN5YG0Hfn6jewJ8gwmjPMxi X-Gm-Message-State: AOJu0Yy/ASgm7+vrX+2JhN72zK9Ul/BB4o52QATGnShXc/f3buQ9Cxyc /bqr1nS+5ku5ddtrAul5WH3kTXPUiSKRFGudFrR8aKM88QPSrRG2vQkd0EXVLA== X-Received: by 2002:a17:903:234b:b0:1e2:b13f:bd64 with SMTP id c11-20020a170903234b00b001e2b13fbd64mr5192227plh.0.1714772289909; Fri, 03 May 2024 14:38:09 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:fb6a:b54b:7580:64f3]) by smtp.gmail.com with ESMTPSA id j12-20020a170903024c00b001eb51a46f5bsm3729134plh.43.2024.05.03.14.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:38:09 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Chris Morgan , Yuran Pereira , Neil Armstrong , Douglas Anderson , Robert Chiras , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: [RFT PATCH v2 45/48] drm/panel: raydium-rm67191: Don't call unprepare+disable at shutdown Date: Fri, 3 May 2024 14:33:26 -0700 Message-ID: <20240503143327.RFT.v2.45.Id14188f1a8af7d524751c27c343a5b583ff5361f@changeid> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog In-Reply-To: <20240503213441.177109-1-dianders@chromium.org> References: <20240503213441.177109-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It's the responsibility of a correctly written DRM modeset driver to call drm_atomic_helper_shutdown() at shutdown time and that should be disabling / unpreparing the panel if needed. Panel drivers shouldn't be calling these functions themselves. A recent effort was made to fix as many DRM modeset drivers as possible [1] [2] [3] and most drivers are fixed now. A grep through mainline for compatible strings used by this driver indicates that it is used by IMX boards. The IMX driver appears to be correctly calling drm_atomic_helper_shutdown() so we can remove the calls. [1] https://lore.kernel.org/r/20230901234015.566018-1-dianders@chromium.org [2] https://lore.kernel.org/r/20230901234202.566951-1-dianders@chromium.org [3] https://lore.kernel.org/r/20230921192749.1542462-1-dianders@chromium.org Cc: Robert Chiras Signed-off-by: Douglas Anderson --- Changes in v2: - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-raydium-rm67191.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drivers/gpu/drm/panel/panel-raydium-rm67191.c index fa9bf89d3bb5..b2029e035635 100644 --- a/drivers/gpu/drm/panel/panel-raydium-rm67191.c +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -612,14 +612,6 @@ static void rad_panel_remove(struct mipi_dsi_device *dsi) drm_panel_remove(&rad->panel); } -static void rad_panel_shutdown(struct mipi_dsi_device *dsi) -{ - struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); - - drm_panel_disable(&rad->panel); - drm_panel_unprepare(&rad->panel); -} - static const struct of_device_id rad_of_match[] = { { .compatible = "raydium,rm67191", }, { /* sentinel */ } @@ -633,7 +625,6 @@ static struct mipi_dsi_driver rad_panel_driver = { }, .probe = rad_panel_probe, .remove = rad_panel_remove, - .shutdown = rad_panel_shutdown, }; module_mipi_dsi_driver(rad_panel_driver); -- 2.45.0.rc1.225.g2a3ae87e7f-goog