Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933735AbdDFHL0 (ORCPT ); Thu, 6 Apr 2017 03:11:26 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:11221 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933548AbdDFHLS (ORCPT ); Thu, 6 Apr 2017 03:11:18 -0400 X-AuditID: cbfec7f1-f796e6d00000116b-fa-58e5ea13bf47 Subject: Re: [PATCH v3 2/9] drm: bridge: analogix: Unregister dp aux when unbinding 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, Laurent Pinchart , zyw@rock-chips.com, Marek Szyprowski From: Andrzej Hajda Message-id: <724682a8-e97b-660f-0867-306d068904ff@samsung.com> Date: Thu, 06 Apr 2017 09:11:13 +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-3-git-send-email-jeffy.chen@rock-chips.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUgUYRj225mdHdcmptXqxVJhQaQwS5EYUsQiYiiSIKpFylpyUMuLHRWV 8sIrTc0LbT0yUDFJgnU9EhZzNVcTNa+yUjPNDME81iMRLXdHwX/P+z3Hy/PykZhMK7Ylg0Ij OFWoMlhOSPHGzo3+U9ZzM4ozhmQnRrO0IGZe/hjHmN7qNoIZXl0gmPXRXoLJTRrDmaGWUoKp 6xiXMMaUbYLJrhskmBeTzZi3FVuSMICzzeOViNWtVeBsSfpzMfs90yBit9StOJutrUWsUWN/ jfSVevpzwUFRnOq01z1p4Kjunyi81TI6o3NQnIA2JRnIkgTaHdYS5kUCPgIfJ94QGUhKyugq BBPZWWJhMCIo6+4h9hztRVMSgahGMD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VWHmjnRnEFhWIkHjYuQvsCl4BQYkfk++xgNicAl4SMxq3sYO0MguoS0yZkgsS ZhaQl9i85i3zBEaBWUg6ZiFUzUJStYCReRWjSGppcW56brGRXnFibnFpXrpecn7uJkZgfG47 9nPLDsaud8GHGAU4GJV4eBc8fRIhxJpYVlyZe4hRgoNZSYTX8NHTCCHelMTKqtSi/Pii0pzU 4kOMpkAvTGSWEk3OB6aOvJJ4QxNDc0tDI2MLC3MjIyVx3qkfroQLCaQnlqRmp6YWpBbB9DFx cEo1MM7SYlyz/Ff7snvv5kp5a15Vf1H4eKHr+g6r7xENTO8u1t5MX+tw0evslzuWRRJNm6oP WBe9t9J08G1rXV/9sfynxux5Ek1W9uw75vEUCN3b42i9RGlyx3HlgFjT6Sx9IskeD9/lz722 03jOxDkn4h9/DdS7++LNGTeThv3yD3fe0c+1KOLW/qfEUpyRaKjFXFScCACRexNo5QIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170406071115eucas1p141e8693e523166d01e1e11db941f7ce7 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: 20170405170151epcas5p1c9e4284f49c32426e4c9e7accd7cd6e3 X-RootMTR: 20170405170151epcas5p1c9e4284f49c32426e4c9e7accd7cd6e3 References: <1491380967-28570-1-git-send-email-jeffy.chen@rock-chips.com> <1491380967-28570-3-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: 1178 Lines: 35 On 05.04.2017 10:29, Jeffy Chen wrote: > The dp aux is registered when binding analogix dp. > > Signed-off-by: Jeffy Chen Reviewed-by: Andrzej Hajda Btw, if you are working already in this area you can check also to analogix_dp bind and unbind routines they looks suspiciously asymmetric. I guess component framework deals correctly with devm_* stuff but I see for example clk_prepare_enable not paired with clk_unprepare*. -- Regards Andrzej > --- > > Changes in v3: None > Changes in v2: None > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index 28144a1..7b75f82 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -1447,6 +1447,7 @@ void analogix_dp_unbind(struct device *dev, struct device *master, > DRM_ERROR("failed to detach the panel\n"); > } > > + drm_dp_aux_unregister(&dp->aux); > pm_runtime_disable(dev); > } > EXPORT_SYMBOL_GPL(analogix_dp_unbind);