Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752619AbbHXEUW (ORCPT ); Mon, 24 Aug 2015 00:20:22 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:62277 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbbHXEUT (ORCPT ); Mon, 24 Aug 2015 00:20:19 -0400 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfec7f5-f794b6d000001495-c1-55da9b7f3caa Content-transfer-encoding: 8BIT Message-id: <55DA9B72.1030804@samsung.com> Date: Mon, 24 Aug 2015 13:20:02 +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 Stuebner , 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> In-reply-to: <55DA8486.1000803@rock-chips.com> X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTcRjG+59zdnZcrY5L7Y8W0UACQfNS+dJFir78oQ9dSIwu1MyDVk5l 85JFKaVQ87JRZjnLtBJvs4uDNGuStrILOkudqTnFEWpJF1nL8lZrRX378TzP+/B8eDlaphP5 cocTkgVVgiJezkqYl7Ot3YEZxX2RwfkvQ6HvVrsI8tqfU3BnvIwGraUXwTXzL620vooCk+UL DV1fP7Gg1wSCdrxMBBM12WKYG/4ggvb3VQjOD+oYqHQUiaF40M7Ah9EQ6HiXy0Lb6XEx1Nmt IuhsvMLCxNAcDZctTRQ0FDyiYMD2jAHdpVoGjJ/HWMg2mcXwzelk4WqzEsaM4xT0Ty2Ee863 DLRnXhBvkhNDiQGRrDO5LCnOfMWQzvw8isyM9DBk9rGWIvf1A2JSWpdCqiocLKmrPseSeueQ iAzmtFLEeDOD5J35yBLtTDBxVFvp7T57JBtihPjDqYJqVcRBSVzWExublCM/NtpqEmeiG34a 5MFhfjW+2PxQ5GYf3GG7zWqQhJPx5Qh36YqRy5Dynnjygo3RII6j+eXY/PqoG1figgKlO+5A +OPVz7Q7HoAL719nXMzw/vj7jP53P8uHYWPFTdbF3vxuXFHzHLl6vHiCh8zbXDLNGyU498ku Fy/mo3CfYfjPnFoKP5i0/L714INwraNbrEO8/r91+n/r9P/WlSK6GnkLKYeS1NGxytAgtUKp TkmIDTqUqKxD7j/52oDKn65rQTyH5AuklWv7ImUiRao6XdmCMEfLvaTysd5ImTRGkX5cUCUe UKXEC+oW5Mcx8iXSosZPu2R8rCJZOCoISYLqr0txHr6Z6HHW5EbNClNW/ejms5Kukjfee0va XqwxU7M7dwSe2pDtu35ZmHVLyFTTPkNjMBVV3pp2sgpL7dM5mv4ScxGlvXzC8+J+46KRACHc 2xJlm55vtWcsmHdkkX9EdOFUoemHaTrcGVa9NWqkW91jCzfcbUm3L8VTZdYJ/42m8IbOvDQ5 o45ThATQKrXiJyCGaTkjAwAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4490 Lines: 123 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? > Let me show same examples, make > me understand your suggest rightly. exynos-dp already contains deprecated properties. Other ways of doing this would be: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt Documentation/devicetree/bindings/rtc/s3c-rtc.txt It depends up to you. The "touchscreen" looks good because it organizes old properties in a common section. In case of exynos-dp.txt you can add at beginning of file information about new bindings and mark everything deprecated. > > 1. "samsung,ycbcr-coeff" is abandoned in latest analogix-dp driver, > absolutely > I should not carry this to analogix-dp.txt document. But I should > keep this in > exynos-dp.txt document, and mark them with an little "deprecated" flag. > > [Documentation/devicetree/bindings/video/exynos_dp.txt] > Required properties for dp-controller: > [...] > -samsung,ycbcr-coeff (DEPRECATED): > YCbCr co-efficients for input video. > COLOR_YCBCR601 = 0, COLOR_YCBCR709 = 1 > > Is it right ? Yes, this is right. > >> 2. Separate all DTS changes to a separate patch, unless bisectability >> would be hurt. Anyway you should prepare it in a such way that >> separation would be possible without breaking bisectability. > > So I should separate this patch into two parts, one is name "Document:", > the other is "ARM: dts: ". Yes. > > Honestly, I don't understand what the "bisectability" means in this case. I was referring to bisectability in general. The patchset should be fully bisectable which means that it does not introduce any issues during "git bisect". This effectively means that at each intermediate step (after applying each patch, one by one) every existing stuff works the same as previously without any regression. Including booting with old DTB. > >> 3. Use proper subject for the patch changing DTS. This is not >> documentation change! > > Hmm... when I separate this patch into two parts, I though I can keep > "Documentation" proper subject in this patch, and the other is the "ARM: > dts" > proper subject. Am I right ? Yes, you're right. > >> 4. Please use script get_maintainers to obtain list of valid >> maintainers and CC-them with at least cover letter and patches >> requiring their attention. > > Yeah, thanks. Sure. Now I found older versions of the patchset but previously there were no changes to the bindings. Again the prefix in subject is important to easily filter out and find necessary emails. BTW, I like the patchset because I like in general works which merge code and reduce duplicate stuff. 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/