Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7152103ybi; Mon, 8 Jul 2019 15:41:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg+mYhv0b8M5oKqWsuZrS+lpkZCKxM1dWwnfuai4k96SZNgU88Y2WtSaGLOtfjcifjzqLS X-Received: by 2002:a17:902:296a:: with SMTP id g97mr27416697plb.115.1562625714608; Mon, 08 Jul 2019 15:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625714; cv=none; d=google.com; s=arc-20160816; b=D9aZG0UkLwRCrmLwZVh+GaLaECnQsj1JwS71s4ZKTg9UQCE4vMJFX79SHKNEpDhT8z 0RQByfSs6GKuKo5mx5EI/K/Z3crsI2q9094n5peV9T+Euctqrjy3iHH5pC7g5yQK2r3F ZIBlAvZfHFfas+4yfNOCfyZI6bc99FT0L9vcAT4IxLkkDVYz760AwIQRlXzKW5umJExo jci8HxHImsMDl64hLMDdtSIMococs0HZDG3vy83xsOlWVP7JX8MzhmQE8ha/30R8Qw6g bficzU+M6wIMTpfJA5zDKbgUsvoIP05MRLw6zodj1J8YZLYJVntImXvGTRE/w2LUPkeV NDew== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WNGbFQ//k+hz+N5qB6nmowAYF7Gwo/2XmYqeyDmZZXE=; b=p6dDu+PBDhHyYuyZO3sws1Ih/U3h38YQNZN8YniP5MjUkjA65eRiivONTtPzlqOnil 29Z1rBzyRDWuNl8NVgNO3LSvtScMQ4jYaFh+ZCnu1bHjZp3I8ofAOZ5QUG9rE6toob28 0a6TcVST1ZFbSNb2n3wprgWXN+GG3DWPp3D7g6aO3B082T82iAedVUiJLc3UwZebpInH nZr8uB6OnSAyPFsj9ErAIlGoR7a6fA6/xf1gX/G2Dpp6b2nOo4h9I1mbcg3kpbOHpnOd CKI8vOjXXDpRH3DGrw2qhJ9gUocKdb1cxUJx+yowUUHTPE4ZPxBJTVLRmVq1COwW6PLN GnNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0tZL/cLn"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si20869202pfe.269.2019.07.08.15.41.39; Mon, 08 Jul 2019 15:41:54 -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="0tZL/cLn"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391175AbfGHPnt (ORCPT + 99 others); Mon, 8 Jul 2019 11:43:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:51012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729736AbfGHPXw (ORCPT ); Mon, 8 Jul 2019 11:23:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2ADE214C6; Mon, 8 Jul 2019 15:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599431; bh=de8mC/QLuiEZzy4zq3/VOkL0MdnjAWqlozWMPbRT42M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0tZL/cLnRwKj+agKayAijzjI0NT159uqOb3p8n3aSBAEWppnMZG+cuSp01RNqxdmh sB3xCraHnUYcVhIX5cp2ul+QktlV/MWBTEYQykp+vkUuJLBV+FVOHWE3x/qhk2GWO9 LXqXfn1svduzAWS1ZYHKOY5g9dKYud3cI4ZExxYg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hsin-Yi Wang , CK Hu , Sasha Levin Subject: [PATCH 4.14 05/56] drm/mediatek: fix unbind functions Date: Mon, 8 Jul 2019 17:12:57 +0200 Message-Id: <20190708150517.994331556@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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 7e5e24c2152a..413313f19c36 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -851,6 +851,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