Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp249789ybd; Tue, 25 Jun 2019 20:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD1cTlHOFEDxKAn+gQy5D2axRVgTCrUEnxHq5iJn0KWznjh4IC0/1DVD9i+VhftZCIYcoz X-Received: by 2002:a63:231c:: with SMTP id j28mr578421pgj.430.1561520642465; Tue, 25 Jun 2019 20:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561520642; cv=none; d=google.com; s=arc-20160816; b=ENfhuPLVp0XEAlAr+1Kq2o2rGJvO+GC+fHdWoQLLu0NcaKkefoAqUrVwSqs12NP6RJ f3Jb2kTo4lAHdz7DyZByRm3owUS0qk+S0cR8430/pYzkREdwSV91CQEADw1nr6AGhjKb aOxY49zFjuNkOk826oi/GT5IaQ/hsANZprKGQrN2jl+2W4aVqrfNMAycbfMEDf8mfVL0 +mHqnUMKf01cQ82P55zS03xvPMakRLfBuA07mU/XdQkFn1N3ENHNTNcvKXgmMjdIWKck P4fOJViL4Rd0duIAeZjouhZN0m+BtM+cYgpcoqarN/jgBs8M6ElTdi9ES4oE65VlOkfa YHHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6nvv3N5z6UFGCe/7PcAMgdaceNvig4to3M5zTV8aCMc=; b=vAqEKGAAxfSaoE7tqSPDQJLFIPAKs25wpi6E9FFvtA+o48sNm5iYrYorNRl3txuYi1 WVmJQrvWdHoEZyxowtgxL/V9MXoI6cSSxfcMY4wLap888hlR+YmJKni2dV93WDd1CZOz Ukr+2+ZRy6LFw+lquv1aLSzYuaiTsgAwwsuLWGxuDJcS/GHChwPxbC3zTADpeu3rCnDd TGbIlPn4nJlokeTX0z3MFZ8xFhuJ4fp6Hve16MGD9QFCW75P5/MJJIRxGUmwy8dR8goA mrV615MHvwq//UbcRXfG9UtBdJffCNsWMO17PwBETnsnbjEvD3t9p+TAefdimEoGZU+T WPTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hqNgzF21; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si1981042plb.177.2019.06.25.20.43.46; Tue, 25 Jun 2019 20:44:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hqNgzF21; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726976AbfFZDmC (ORCPT + 99 others); Tue, 25 Jun 2019 23:42:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:52620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfFZDl7 (ORCPT ); Tue, 25 Jun 2019 23:41:59 -0400 Received: from sasha-vm.mshome.net (mobile-107-77-172-74.mobile.att.net [107.77.172.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CC3CE216FD; Wed, 26 Jun 2019 03:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561520518; bh=0T6x30Mb7rcEkAoYggXrp5pmG6ocNITkX5Dryxz2IyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hqNgzF21gYwkcQbLGssTPjF8mTYdjfMEDekWUj6X0lX1P+l+9+j8YQ7NNxMzyecQ4 GZCo0pmEyYJ6XIdV1np2+skbzSJJLnoh5sAZtZZ1OjkOZ1U1psTHoXktnXMeTQmSUS XZWpHGfGFE31Da2GQ3K5weaKbwHOW1GfO34gbWfQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hsin-Yi Wang , CK Hu , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.1 17/51] drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver Date: Tue, 25 Jun 2019 23:40:33 -0400 Message-Id: <20190626034117.23247-17-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626034117.23247-1-sashal@kernel.org> References: <20190626034117.23247-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hsin-Yi Wang [ Upstream commit cf49b24ffa62766f8f04cd1c4cf17b75d29b240a ] shutdown all CRTC when unbinding drm driver. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index e7362bdafa82..8718d123ccaa 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -311,6 +311,7 @@ static int mtk_drm_kms_init(struct drm_device *drm) static void mtk_drm_kms_deinit(struct drm_device *drm) { drm_kms_helper_poll_fini(drm); + drm_atomic_helper_shutdown(drm); component_unbind_all(drm->dev, drm); drm_mode_config_cleanup(drm); -- 2.20.1