Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp95465lqh; Fri, 3 May 2024 14:42:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxDZktlm2GXpeVIrr7i47sCfm02vmkYVT+PhhvjQc5To9m2eSA91hJ1kCOPcKFmI+XeelNgIB7e2wnJ2/ZF71D9jkm30aYbTMNB8D8HA== X-Google-Smtp-Source: AGHT+IH0E9wGIFgBTF+ligSTWe5fSRxnXvCkH1H6Hg1ZkVBgjc9VR0wBVt6XAYeciNkE4goYjaw3 X-Received: by 2002:a17:903:1c9:b0:1e5:5c8c:67ec with SMTP id e9-20020a17090301c900b001e55c8c67ecmr3725818plh.5.1714772544562; Fri, 03 May 2024 14:42:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714772544; cv=pass; d=google.com; s=arc-20160816; b=IQ6mxETR4Z+DTOLNPPeQqOovRBuyPQkpgvSsZG11uO2q27nTTJbg+Umn9vKsGX16wa h08b6dkMxPA54r3FTZk9yuJfJPGra9TnUCj85/DHCyfDLUgY6ZW4vvINZmy+UAgSbjKD KfgLzLm3EqvEXBH8dtlbPOO+oaS4AkajRHRtME8Qgn51KcAPogHDrcodXfX14UXJQ+mp AGfYBJT3UKU2ErgB0mzG2S4bwGOZFJlV+u3OqJGlJ/go0ePx1qIC7bEDhWydRONMj/PI j9Xr1alFnrrFaJlP+UTWl2CbRiDyHtQh6+ySNjFF1nxbZgiV4m6UexEs9DoyMZZiRi3J S1tQ== 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=tTn5MbULQaeKHbflLx1nU+BRyKgxWcgq1caqQZJZ4uA=; fh=s665kwh7KT+eLklMUPANBvxTqY4GeJgtGgt252ySMYQ=; b=XH/n4CHa2bTT9bxUuLGZeTgBjNpbE/yCdn0gA+1mPgyJ85W+fPpRodDLdLdq6OsOza kBefsTPfEgV1cKORO6aYkwpe0Z6Uuyucy0IqCnWoF1r6TfFaL3FJ5lowFMAMK3zvWG1j VaQOTvCyBTu1I5/N/2IiVOk/qT/X9rNvp035rTQefQxMqakGnu5vmMRrEzg+D3hfmzhA Y2GsA82giqm56RCYGV8ksw7uBbh7wlk2bFbFZ/GDw9bkskpLEYmSxCwR1n4j38stIGnF POUsG58tpHRhWoB0qS+2e1uQb6LQ8kAOUgEuVvJUrw7I8z6+D/mIiGEcVt1mEdmHcyfj OFQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M3XiLvl/"; 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-168286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168286-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b1-20020a170903228100b001eb74a5e037si3808497plh.367.2024.05.03.14.42.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:42:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M3XiLvl/"; 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-168286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168286-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 81878285811 for ; Fri, 3 May 2024 21:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A4EB131BA6; Fri, 3 May 2024 21:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="M3XiLvl/" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 0215D57333 for ; Fri, 3 May 2024 21:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772235; cv=none; b=MEqppiF72M7t+gwDhQr1gbjEp9sd81LsLQuzjWsXR9m31tFz55pL43DfwoloboWLsblDEtLFYn57/vsJ5mf0cEI+i/nK2Kbq9rckV/PFa8Mtl6C1OMebfq8jSQTP0wzXkzAbaH7Fye3+Xb6Er1WEtRes6z2Dx8nnxiS8bMds9nQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772235; c=relaxed/simple; bh=SkP3AZxms+mqo4x1ENWm/qqAh/eG6ZxVE44b9/q+cLs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NCs+co+55XuaW2RJokzKQylTESzzAVG24cYnTOn8t/329ejaxCPrQrsA1SojHJCpwYvxDsDxS3vTiBHNdCO7XmxTRS8YV5y7FP0WSHmQS3LXvQp1cwrRjknAqkkG5g7lDZ5OmlfHEWhaDfxRZPfV5ioY7H28pI56ociUF1DBfOQ= 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=M3XiLvl/; arc=none smtp.client-ip=209.85.214.176 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-f176.google.com with SMTP id d9443c01a7336-1e3ca546d40so1026125ad.3 for ; Fri, 03 May 2024 14:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714772233; x=1715377033; 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=tTn5MbULQaeKHbflLx1nU+BRyKgxWcgq1caqQZJZ4uA=; b=M3XiLvl/+M7pTJZd2D/ykj4+Hkr+yyY26vBscOY5gEgEvsX3koNMQ1i7jDoY/y26l4 vSVWXcb2HBfUL6ZFNcSvBCXhcWHq3vf+a9nX8arBkDNL0Po+aZbhwycXkkagAG1hSVdl if3W8VWjaDOkGJt/T/tLKWyWrAIXyvZnhyBmg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714772233; x=1715377033; 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=tTn5MbULQaeKHbflLx1nU+BRyKgxWcgq1caqQZJZ4uA=; b=WcNOMrc/KXvkBnXTe0oZC6KpIW3P78c/eMoDObbCt2eOk9eDMZijCx8C3bF4l9iqf7 rqLQE9ORob9L9V+YzxoAs68mPVlhLHbVyYKvKsFNcNPVcWMQL8xwuHxmrJoY9Mxal9KN btLkTy8OcXLUAcNRQ/EPPQQwB5lnVJ96c+Q8IhRJX/YawYJIdSDwkYvgZqEcx5WpRYl1 ipgfAzuBsxJgSrSlaGyxZ1EELtlTg6iiu/JgkeZvhE/TG2xMh7YcJDwwolgub1njRZHq wQlhnRIn3DA2dMVeCEjZnMIrcY6Xqs6L0QSwlgGysjsSSLQ4CKiH5nLuIyM/RajVDKT4 XHlQ== X-Forwarded-Encrypted: i=1; AJvYcCV+W13MiTyQsVX5TO6c0k6HHjCscWd4DGq9FS2v1eVBLDDA3a3XF3w4C6f2+ysR3cepa40GGOWBl48JwjjnWSr9r2dVB995oFHjPR8K X-Gm-Message-State: AOJu0YyWsb69ycboxeiZuLsOH6+QrKDFCm0GYc2hRzYtxfhflOLT1yBN K5oeyp0UvvmEndSM01A/A6QB+yisT8wMGQj9sRVrirkIYAPWIFFhusDevc4emw== X-Received: by 2002:a17:902:da87:b0:1e2:1915:2479 with SMTP id j7-20020a170902da8700b001e219152479mr4889534plx.12.1714772233439; Fri, 03 May 2024 14:37:13 -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.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:37:12 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Chris Morgan , Yuran Pereira , Neil Armstrong , Douglas Anderson , Stefan Mavrodiev , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: [RFT PATCH v2 21/48] drm/panel: olimex-lcd-olinuxino: Don't call unprepare+disable at remove Date: Fri, 3 May 2024 14:33:02 -0700 Message-ID: <20240503143327.RFT.v2.21.I4c79deffb7551ecfb0378302f8dee1275fd1c060@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. Unfortunately, grepping mainline for this panel's compatible string shows no hits, so we can't be 100% sure if the DRM modeset driver used with this panel has been fixed. If it is found that the DRM modeset driver hasn't been fixed then this patch could be temporarily reverted until it is. [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: Stefan Mavrodiev Signed-off-by: Douglas Anderson --- Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c b/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c index 8a687d3ba236..94ae8c8270b8 100644 --- a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +++ b/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c @@ -251,9 +251,6 @@ static void lcd_olinuxino_remove(struct i2c_client *client) struct lcd_olinuxino *panel = i2c_get_clientdata(client); drm_panel_remove(&panel->panel); - - drm_panel_disable(&panel->panel); - drm_panel_unprepare(&panel->panel); } static const struct of_device_id lcd_olinuxino_of_ids[] = { -- 2.45.0.rc1.225.g2a3ae87e7f-goog