Received: by 2002:a89:d84:0:b0:1fb:9c95:a417 with SMTP id eb4csp21757lqb; Tue, 4 Jun 2024 17:29:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAIZX8lkPH0HJPyQnqDO4C2tQrNSJ3T8HRb9QbZAzhJEMN9TbuWLJ/MisUvUg6clFcQ9WDL6aNQVe/KmNCYLyHmbEND1OlNJ0HXq/4AA== X-Google-Smtp-Source: AGHT+IHZD/AChAZHj7twwvUMHpJ5bWKve1wTnfLoAuNbNn2yiOJQS7fLY6kz4ZuMfwkUpkE3Fcqj X-Received: by 2002:a2e:8217:0:b0:2e9:8632:61d7 with SMTP id 38308e7fff4ca-2eac79f0beamr3945441fa.30.1717547382081; Tue, 04 Jun 2024 17:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717547382; cv=pass; d=google.com; s=arc-20160816; b=smRuu9QypDzAmzoA3Bd9/TB7dvA65i1vAp+gv/0w/YAmcORvYR9uGQP7Q9yvtlMrza q7gg/8y+tPXqGp517FK5bD4RlfFMwMqgKypZR3FlBSpBuytZ1qbqUyKm4pi7+l9OeEdI L6nWeG6oJkC1xIZfjdlDteNMU8mUnmveeSzsxJ4efs9fQVL3xUjmd4rYH8uX62HvYjwz cQCx17U7+6MD87Ixk6xtUvt/xkwLjkjKzI0h5QmRrv9TWgn+0p/CBg0I9a4OQ5wSUsQx 52ZtG+2uWGJInYcydXPJ1+vRCUa3x0IXLe+2bkNPIL7YwGANg2hyOWNW+G/HClmyoLvy njcQ== 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=WueavCuqsC++tgdW3b4kChJiO3Z5diw3u/WttA4fZGU=; fh=zKx/aEEj7oKrtLmnhPedX21OZFUiCbc9+i6LLazxym8=; b=nUky+28iAQ0qwiZBd/9NNYj8HKobYYgEWn7W/MQ3P3z2Oyc5d4wfW62gPO7VVWhY8B Z3s1YC94RxoPSIzvgXzlrnZ5fvDg3+zQSqAdk33sWuBzqVW/DIBnlOCTOdpYNcCZR6Zf tcvqBPr8h9yjnJJUCG4y9FBITe2fl+Lw/7xP5Df1hPQl3nuJe4xYvirBbthsNJzkHpXk 4lO1bUiM0+2WD1364e4G7ujQOnCbsXKXOPiH1E+X5YCUAnrs55oyKPvx/V4sGSkAJQy6 82fxLF7Nvfk5K/gGip0b5g6/QclkUOoWNHF12Al9VAwVcNk1YPT6Jd2Kwr7oJCR2XWpl HWvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CRkcT26u; 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-201606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201606-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cada05si5658145a12.588.2024.06.04.17.29.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 17:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CRkcT26u; 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-201606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201606-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B3E4F1F224A9 for ; Wed, 5 Jun 2024 00:29:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2570F73457; Wed, 5 Jun 2024 00:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="CRkcT26u" 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 E875F6A340 for ; Wed, 5 Jun 2024 00:25:03 +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=1717547105; cv=none; b=CbqQsN4Gd9WY1L4hLB/aYlLMitPlyCm40hfnkv0CxU/7w4+UpdHyok9W4FeF/RXg+CuVly34v6T8/NQcFpO+KRRPFJUbUzxjkVbNJLdbVSbfSkbxz97NPASBSQufcuO9Ht+ag9uJmjaciTvy2WMhk4SStJK4b+TU50XSnsQrAeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717547105; c=relaxed/simple; bh=k8l7AEga1GtNZl4aI36tgvWb4+r7pet0wCh09mUWrH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q/M27yzTi8wXdY+v2DDWdcGNO2U2T/yUmZED8Le/aAJOZuUNm0nJG5OCw+Wj0fGZmehcscvL78OFnEa7df6ZvitjmgAh+D38TE43Z3wYH6vhpmKCknu7kTNZuvZSFEoz94A3OygOyZlErbCWrqHiCznEWahjvTn7DUAd7mQtlPs= 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=CRkcT26u; 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-1f61f775738so44201015ad.2 for ; Tue, 04 Jun 2024 17:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717547103; x=1718151903; 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=WueavCuqsC++tgdW3b4kChJiO3Z5diw3u/WttA4fZGU=; b=CRkcT26ugTveGWAUaA0lhv0RQS/RRMK7d54mUSzpbbDs3ybD695XFkxiciJWQnu0A/ cZz6UBXltDZa2eSQouptNVQnKwWgG/h1WPOZDvk/FKWlj7QiNkRC10pQTStWpcfE7T+h AGfw8HtwpBsgp1E3zhVvQ41axEIReIzB1lGvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717547103; x=1718151903; 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=WueavCuqsC++tgdW3b4kChJiO3Z5diw3u/WttA4fZGU=; b=aMH/APcHTp8MuFA6j16dXMgiEKoRCTAVHjaJnBlVE536/mkVsJpOGTymKB0VQ6VGZk KUKbEWyZAa5USzkciSduNgazxZeHqdG+TGS52QEz6UR0WxRyAV568W1aPWi/Px0GPwg3 Aph/HBjucGdonF1ieieLEjAKmBlhvo16zGqUOgRgUPrqoMgF2XZtfIQBnT0iiihp1feY UFWN2tFewREFpteVZ7NTXUwdbiXLtH5wLxN76ZELGNqDzC4v/e8RuZsUsgWlRviAAhM0 sObuRFKbhd2JFo791OM+DX9uSGAqszE3x0l/CeCNR7ViR8iJCTX4j7N6mOTbO0GWtQLa WZZg== X-Forwarded-Encrypted: i=1; AJvYcCXVIv+9yeT29JO2NASPHCqtJZ+V89t9dgbuOxGUgJ7GDeEx7dDQX/RAxARHH3maxf9cfyUqjAeFlmNQj8Q5iCjf2/Tkjafx15NSr/Jw X-Gm-Message-State: AOJu0YxYHnU7SLf7R8RSSEKsAcU4HLRP6xMF4TPQvxiLmiHCncBmINOH +ObRC2MphXICuQvMkLiAZ1Dtx2NP6rE5NZCrz84zNmTLPbOT5o9tjmR5bxedNw== X-Received: by 2002:a17:902:b7ca:b0:1f4:b702:f143 with SMTP id d9443c01a7336-1f6a5a094d5mr10864515ad.15.1717547103166; Tue, 04 Jun 2024 17:25:03 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:3609:ff79:4625:8a71]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323dd862sm89032025ad.147.2024.06.04.17.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 17:25:01 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Chris Morgan , Neil Armstrong , Yuran Pereira , Douglas Anderson , Robert Chiras , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: [PATCH v3 22/24] drm/panel: raydium-rm67191: Don't call unprepare+disable at shutdown Date: Tue, 4 Jun 2024 17:23:08 -0700 Message-ID: <20240604172305.v3.22.Id14188f1a8af7d524751c27c343a5b583ff5361f@changeid> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240605002401.2848541-1-dianders@chromium.org> References: <20240605002401.2848541-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 Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) 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.1.288.g0e0cd299f1-goog