Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10628075rwd; Thu, 22 Jun 2023 02:33:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BHYhZJow98HWPxIAdzPMhNP6bXWUKbszqaP3/TA1a8ZgNqGDFHrVWtas2cifxd6Aou6sN X-Received: by 2002:a17:903:442:b0:1b1:d39e:28bb with SMTP id iw2-20020a170903044200b001b1d39e28bbmr13074622plb.34.1687426422271; Thu, 22 Jun 2023 02:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687426422; cv=none; d=google.com; s=arc-20160816; b=sWOP2EoQD6y9+eYO1TnhbqI3Jpp//9sZydA0iBvd1xCu+TG5bpuvCUxZ/IpTZzli7G Pl1lxlc0uH6orHcJlnLfAxUAfR9BklcYd7CXdCRqflS8fhXlTDCen3Om5KqmWQsasivs qMvrPnslQZ1ntB9Soe5xN2ZnDemX/7svqwIWKeCUmrHcl4NWHF93893yfsbslnmRTDwp H9E/pR7AGuLcegH+B2dJRyttOGM0nQvtWFZe+YZ9VCVI88TMB4KE0f6EwzT2htv1IOaZ YQZQJCB4kAGY/onCcgedwZzQkXGYlb81+0oCP3IlpBr8t386sM73B0eh6KsriktsgNBg 6uAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zp6IXdF2AvtjdpslXPET89JATt3nze1fWlacLhWzo1g=; b=ezsUAC2Z+pyz6ezOaLxCwJq+3E3gbU4pqEQIoj1DwdjDfpPfGXNRgYRMdoQ0d+TVh3 yWPLTyK5BzRbc1E84umSj2VJI1E5QBEQloQtEdXRS4vjFsOTrqMAiPebvT7hrfplMswc fXLiYtwz72h7ug3WAUutWGFrZOuEjgSMaWsh7txCPD2xRvlv+2ygiF74yNVLJ/aoYCgf yy+8B4LNgX/a+VEDs4d5FYLak78LG8r4VnJjW8B5RPMn+Khb84cxJ00zh/UXGJCh742L hrxQymiTaYdZj1ip9f8ViIdvjsXdHbwDSnPBpkLbq1OhroBYZ1VRaeC6xPthrUwrhWE8 E+wg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902ba9100b001a986ca38easi1856721pls.15.2023.06.22.02.33.13; Thu, 22 Jun 2023 02:33:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232394AbjFVJb2 (ORCPT + 99 others); Thu, 22 Jun 2023 05:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232356AbjFVJ3w (ORCPT ); Thu, 22 Jun 2023 05:29:52 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B29734EDC for ; Thu, 22 Jun 2023 02:22:48 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:991a:a831:ea4b:6058]) by baptiste.telenet-ops.be with bizsmtp id C9Nj2A0191yfRTD019Njqu; Thu, 22 Jun 2023 11:22:44 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qCGWY-000BxN-6R; Thu, 22 Jun 2023 11:22:43 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qCGWZ-003Vy7-PR; Thu, 22 Jun 2023 11:22:43 +0200 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 32/39] drm: renesas: shmobile: Shutdown the display on remove Date: Thu, 22 Jun 2023 11:21:44 +0200 Message-Id: <2c28c0a137854d39b6bc997a21bd6d2db1f7a0a5.1687423204.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, 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 When the device is unbound from the driver, the display may be active. Make sure it gets shut down. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c index a29c0c1093725b6e..636f1888b815579b 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -145,6 +146,7 @@ static int shmob_drm_remove(struct platform_device *pdev) struct drm_device *ddev = &sdev->ddev; drm_dev_unregister(ddev); + drm_helper_force_disable_all(ddev); drm_kms_helper_poll_fini(ddev); return 0; } -- 2.34.1