Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754735AbbHYBfq (ORCPT ); Mon, 24 Aug 2015 21:35:46 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:55913 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751990AbbHYBfn (ORCPT ); Mon, 24 Aug 2015 21:35:43 -0400 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfec7f4-f79c56d0000012ee-7f-55dbc66c8bb7 Content-transfer-encoding: 8BIT Message-id: <55DBC657.6060409@samsung.com> Date: Tue, 25 Aug 2015 10:35:19 +0900 From: Krzysztof Kozlowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 To: Yakir Yang , Rob Herring Cc: heiko@sntech.de, Sean Paul , Takashi Iwai , dri-devel , Andrzej Hajda , Gustavo Padovan , "linux-samsung-soc@vger.kernel.org" , Vincent Palatin , Kishon Vijay Abraham I , linux-rockchip@lists.infradead.org, Russell King , Thierry Reding , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , David Airlie , Doug Anderson , Inki Dae , Ajay kumar , Rob Herring , "linux-arm-kernel@lists.infradead.org" , Mark Yao , Fabio Estevam , Jingoo Han , "linux-kernel@vger.kernel.org" , Kyungmin Park , Daniel Kurtz , Philipp Zabel , Kumar Gala , Joe Perches , Andy Yan Subject: Re: [PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp References: <1439995728-18046-1-git-send-email-ykk@rock-chips.com> <1439995834-18363-1-git-send-email-ykk@rock-chips.com> <55DA8486.1000803@rock-chips.com> <55DA9B72.1030804@samsung.com> <55DB1281.9070502@rock-chips.com> <55DBAD90.3040901@samsung.com> <55DBC601.5090107@rock-chips.com> In-reply-to: <55DBC601.5090107@rock-chips.com> X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHec97dnacLY5m+WZBMIiiyJQiniQiIegNi1KK7EK19GDijsrm JP2SaX7IXJpa1tTcSlGXXdy6Sora8kLeyi6kpaaFWUut5oyii2uFffvxf37Pw//Dw2PfXFkA HxufJGrj1RoVp2Af/mx5ukLT3LczqL11KfRe7ZSBobONgesOM4acrhcISu3Tmel2FQN1XZ8w PJkc58CYtQJyHGYZfL6cKYdfQx9k0Pm+CkHeQC4Llc7zcigaGGbhw7tg6H6bzUFHukMO1uFn MuipLebg8+AvDOe66hm4U9DAwKv+VhZyC6+wYJsY5SCzzi6HKZeLg5JGCUZtDgb6vs+GW66X LHSm5cs3qGj1hWpEj2dkc7Qo7RFLe04ZGPpj5DlLf97PYehd4ys5NVn1tKrCyVGr5QRHb7sG ZXTgZAtDbWVHqSFjjKM5P4Ko0/IMb5+3R7EuWtTEJovalesPKg5/Lz6PE13kiOVmOU5DtXOy kBdPhNXkhXkKe3ge6e6/xmUhBe8rlCNSWTrOugdKwYd8ze+fZp7HwiJifxznwSWkoEDy6E5E Tl+wYI++jLha6mVuhxUWk45vojvmhFXEVlHGuXmuEEkqLrcht+InUDJo3+Y+g4WLClLTfFPu duYIu0hv9dDfOjZMjnVM/Fn2EgKJKf0KzkWC8b92xpl2xpl2JoQtaK6oj0rUHYqRggN1akmn j48JjEqQrMjzJ8476FJzSBMSeKSapZww9+30lamTdSlSEyI8VvkpR2qmI2W0OiVV1CYc0Oo1 oq4JLeBZlb+ypHZ8h68Qo04S40QxUdT+mzK8V0Aaqonbvhz7DSRd7D3zOsLa11UY+mavK3Js Tf2DsOwhHL7ZZ+0mb++Mxv1TOCqstD8voELa7XV932hGzbeGsbPzDRGa+48Pbb23WxrXVm80 SH7+Pm0Li2Lnvwx33OvNT4itD+puv1qgb5SUip6OvTdCJjPD6vJD7fsmP6auf79kS3neFxWr O6wOXoa1OvVvpBoxcyMDAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3357 Lines: 83 On 25.08.2015 10:33, Yakir Yang wrote: > Hi Krzysztof, > > 在 2015/8/25 7:49, Krzysztof Kozlowski 写道: >> On 24.08.2015 21:48, Yakir Yang wrote: >>> Hi Krzysztof, >>> >>> 在 08/24/2015 12:20 PM, Krzysztof Kozlowski 写道: >>>> On 24.08.2015 11:42, Yakir Yang wrote: >>>>> Hi Krzysztof, >>>>> >>>>> 在 08/23/2015 07:43 PM, Krzysztof Kozlowski 写道: >>>>>> 2015-08-24 8:23 GMT+09:00 Rob Herring : >>>>>>> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang >>>>>>> wrote: >>>>>>>> Analogix dp driver is split from exynos dp driver, so we just >>>>>>>> make an copy of exynos_dp.txt, and then simplify exynos_dp.txt >>>>>>>> >>>>>>>> Beside update some exynos dtsi file with the latest change >>>>>>>> according to the devicetree binding documents. >>>>>>> You can't just change the exynos bindings and break >>>>>>> compatibility. Is >>>>>>> there some agreement with exynos folks to do this? >>>>>> No, there is no agreement. This wasn't even sent to Exynos >>>>>> maintainers. >>>>> Sorry about this one, actually I have add Exynos maintainers in >>>>> version >>>>> 1 & version 2, >>>>> but lose some maintainers in version 3, I would fix it in bellow >>>>> versions. >>>>> >>>>>> Additionally the patchset did not look interesting to me because of >>>>>> misleading subject - Documentation instead of "ARM: dts:". >>>>>> >>>>>> Yakir, please: >>>>>> 1. Provide backward compatibility. Mark old properties as deprecated >>>>>> but still support them. >>>>> Do you mean that I should keep the old properties declare in >>>>> exynos-dp.txt, >>>>> but just mark them as deprecated flag. >>>> That is one of ways how to do this. However more important is that >>>> driver should still support old bindings so such code: >>>> - if (of_property_read_u32(dp_node, "samsung,color-space", >>>> + if (of_property_read_u32(dp_node, "analogix,color-space", >>>> >>>> is probably wrong. Will the driver support old DTB in the same way >>>> as it >>>> was supporting before the change? >>> Okay, I got your means. So document is not the focus, the most important >>> is that >>> driver should support the old dts prop. >> Right, the focus is on the driver. >> >>> If so the new analogix dp driver >>> should keep >>> the "samsung,color-space", rather then just mark it with [DEPRECATED] >>> flag. >> If you are replacing a binding/property then it should be marked >> deprecated. This means that the old property is still working but new >> users of it should not be added. > > Okay, so just quote Heiko's reply, such code would be need in analogix > dp driver. > > if (of_property_read_u32(dp_node, "analogix,color-space", > &dp_video_config->color_space)) > if (of_property_read_u32(dp_node, "samsung,color-space", > &dp_video_config->color_space)) { > > dev_err(dev, "failed to get color-space\n"); > return ERR_PTR(-EINVAL); > } Yes. It does not look pretty but something like this is needed. Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/