Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp248545ybd; Tue, 25 Jun 2019 20:42:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6JQJ5y5znACFm/ex5a+eO8OXVIqMWr+RTuoOWGjVf4guKkFRKGT0oEEiIibzuxmU/H+cp X-Received: by 2002:a17:902:2ae7:: with SMTP id j94mr2578331plb.270.1561520561457; Tue, 25 Jun 2019 20:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561520561; cv=none; d=google.com; s=arc-20160816; b=wtrpmAfnAM79QnPGju79Lo0pto4iDkJoaAFTYBQJ38PcyUC1jvxxOAtl/m/jsMwMcu 8IWbxkadZUOJZ9c2E7+EcwqksoK2OIZ5J2VlWn9MPkPxw261V4sI/tqGjyEIENW96nqT sEJSqOgiD54ht9Z1eYxHfAt1vLKLGFo9ENVc+8Z5OKhVZWn0i23KnSydPdHcLULso0Lx BF8/Fckq+WCzH5Y2NuVyy+pOJt7THIQpzuKThdIdtahzRcBpacqegidbGl8Pmol9FqIe qTyiLc2LdmGzprDNCVj3lhySHK5mj8qvhN9we9NVbmM4xJI1yJ8HhkJL8fxghUAJ4xG+ 4htA== 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=E3Q+2TtNG/ruvcIS0uVPxIDynF8YNjfKdD1W+Lnw+Cw=; b=AcozM52jI069qCzkxu529XAKQxQOitjmBpT+7ipNot6eDHQ8pBqpH0gUzNf8Ir2uk3 MBizyzLTd6+LTnRlqhrOWkw0PEmaECkDo6HhzxrHeLZdwt6EGa3lF6LBI72AmCMKCOID 0MQ3bdqXeotjXYTRrpU68R+ApiCcIbaazfSAlFDKpADzn0byIOW/7LO5+bA5dICuIlQ9 tl8xcb+pV1/8IPEjnFfTxCK2hYY4YQDMjbW8dKPo/jdWDRp8Q3GliTB7nKj4OGyelXN+ i/8x+Cext00ZWH0+EH25MEAYwu928ETxa7AL0b3CqAxOcHf/KgJC2y6ASu2o2TcoY2U+ 6nvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=veTNGYHP; 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 y15si828433pjp.90.2019.06.25.20.42.25; Tue, 25 Jun 2019 20:42:41 -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=veTNGYHP; 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 S1726945AbfFZDl5 (ORCPT + 99 others); Tue, 25 Jun 2019 23:41:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:52506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfFZDlz (ORCPT ); Tue, 25 Jun 2019 23:41:55 -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 C2204216F4; Wed, 26 Jun 2019 03:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561520514; bh=sNCNajBnIICgdxOIF1Sqb95OcKzLhp3mLHklpLODoFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=veTNGYHPRGns0PGa7d7v9CAxAHlqpestkIAdaDZynNDo06K+AXRdRvExL1giGi4AX 90bxd8XOMK3rD5Q/N/UR8GV7K8YJdFajWgMGDYSnLN48qEQNFBzqaMhaYn77tN9sjd l+goSg2wqikPZdEWPl5OuuVuGFaFwyRPtO+njVwY= 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 15/51] drm/mediatek: fix unbind functions Date: Tue, 25 Jun 2019 23:40:31 -0400 Message-Id: <20190626034117.23247-15-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 8fd7a37b191f93737f6280a9b5de65f98acc12c9 ] detatch panel in mtk_dsi_destroy_conn_enc(), since .bind will try to attach it again. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index b00eb2d2e086..1ae3be99e0ff 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -844,6 +844,8 @@ static void mtk_dsi_destroy_conn_enc(struct mtk_dsi *dsi) /* Skip connector cleanup if creation was delegated to the bridge */ if (dsi->conn.dev) drm_connector_cleanup(&dsi->conn); + if (dsi->panel) + drm_panel_detach(dsi->panel); } static void mtk_dsi_ddp_start(struct mtk_ddp_comp *comp) -- 2.20.1