Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933676AbdDFGyZ (ORCPT ); Thu, 6 Apr 2017 02:54:25 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:10082 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbdDFGyP (ORCPT ); Thu, 6 Apr 2017 02:54:15 -0400 X-AuditID: cbfec7f5-f792f6d0000063e9-89-58e5e613e8a7 Subject: Re: [PATCH v3 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp To: Jeffy Chen , linux-kernel@vger.kernel.org Cc: Tomeu Vizoso , Daniel Vetter , briannorris@chromium.org, dianders@chromium.org, dri-devel@lists.freedesktop.org, tfiga@chromium.org, zain wang , zyw@rock-chips.com, Laurent Pinchart From: Andrzej Hajda Message-id: <49db0245-4f6f-0de3-9a18-0d0a5aa0f37a@samsung.com> Date: Thu, 06 Apr 2017 08:54:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-version: 1.0 In-reply-to: <1491380967-28570-2-git-send-email-jeffy.chen@rock-chips.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHe3cuOy4Xx2n6YKkx8INilmBwqJCKPpzKKItiiVArTyo5L5ta CtHyhmxkOYXc1JrVFom3vBeZqeFK835rkmaaFlF4y7yQkvMY+O33vP//8zzv/+WlMEkp4UpF RMVxyih5pJQU4TUtSx27HScnZHvfN9gzFTNTBFP4ZRhj2s2NJNM3P0UyCx/bSSYr+RPO9L7M J5m5tFWSySzpIZn0QWfm4Wgddmgrm6fuxtm64SeIrf9jxNm8DD3BftZaBOyKoQFn5yrcTwuD RQdDuciIBE65J+CSKHzM2k/EFFI3nmutQjVaIDWIooD2h0dDJzTIbg2doWukbO1YREloEwKz bongizkE5Z0jJO/yh55684ZgRmAZHiNsgoS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wPr5RTwkmjY/wOolwNoqLrElCm5IGFmAXmJzWveMk9g FJiFpGMWQtUsJFULGJlXMYqklhbnpucWG+kVJ+YWl+al6yXn525iBMbltmM/t+xg7HoXfIhR gINRiYd3wdMnEUKsiWXFlbmHGCU4mJVEeA0fPY0Q4k1JrKxKLcqPLyrNSS0+xGgK9MJEZinR 5HxgysgriTc0MTS3NDQytrAwNzJSEued+uFKuJBAemJJanZqakFqEUwfEwenVAPjxe9NrTGh c5R0/PP9/rGFiU24cDh/96NVnc+mZ12M5pVPq2V/IvM8rLRYuL71e2nqWoeSwuJ5x78VyUaa NKs93bxFd0PVsbur/s8TX1R//PVpm6W++T0S/86ou8xd3vw9/7P6yvPLnOZe2dwsbVliEyKz 9FvLKWe767NO6HyRntg897HtbK0bSizFGYmGWsxFxYkAzbpmg+ECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170406065410eucas1p15c062cbac12cbe0c7a520a662e401535 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170405165839epcas1p36e69a04a402abdf79157052e5da6f3dc X-RootMTR: 20170405165839epcas1p36e69a04a402abdf79157052e5da6f3dc References: <1491380967-28570-1-git-send-email-jeffy.chen@rock-chips.com> <1491380967-28570-2-git-send-email-jeffy.chen@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1023 Lines: 32 On 05.04.2017 10:29, Jeffy Chen wrote: > The panel is attached when binding analogix dp. > > Signed-off-by: Jeffy Chen Reviewed-by: Andrzej Hajda -- Regards Andrzej > --- > > Changes in v3: None > Changes in v2: > Fix some commit messages. > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index c26997a..28144a1 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -1443,6 +1443,8 @@ void analogix_dp_unbind(struct device *dev, struct device *master, > if (dp->plat_data->panel) { > if (drm_panel_unprepare(dp->plat_data->panel)) > DRM_ERROR("failed to turnoff the panel\n"); > + if (drm_panel_detach(dp->plat_data->panel)) > + DRM_ERROR("failed to detach the panel\n"); > } > > pm_runtime_disable(dev);