Re: [RFC PATCH] phy: samsung: move the Samsung specific phy files to "samsung" directory

From: Kishon Vijay Abraham I
Date: Mon Mar 13 2017 - 01:23:04 EST


Hi,

On Sunday 12 March 2017 02:48 PM, Vivek Gautam wrote:
> Hi Kishon,
>
>
> On Thu, Mar 9, 2017 at 5:26 PM, Kishon Vijay Abraham I <kishon@xxxxxx> wrote:
>> Hi,
>>
>> On Thursday 09 March 2017 05:03 PM, Jaehoon Chung wrote:
>>> Make the "samsung" directory and move the Samsung specific files to
>>> there for maintaining the files relevant to Samsung.
>>
>> The number of phy drivers in drivers/phy is getting unmanageable. I think this
>> is a good step to make it a little better. Can you also add a MAINTAINER for
>> drivers/phy/samsung?
>
> I remember making a similar attempt in past [1], but that time we couldn't
> reach an agreement as to whether group the phy drivers based on
> vendors or based on the type of phy.
>
> If you are fine with grouping the drivers for each vendor, I hope you can
> consider picking that patch (I can respin the patch based on linux-phy/next).
> Other driver maintainers were also cool with that older patch.

Sure, you can re-spin the patch.

At that point of time I didn't think grouping phy drivers for each vendor is
required. But especially after [1] where I failed to notice an existing phy
driver can be reused and later has to be reverted. This could have been easily
identified by MAINTAINERS of that particular platform. That's why now I feel
grouping phy drivers and having a MAINTAINER for every vendor directory will
help to identify such issues.

Thanks
Kishon

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git/commit/?h=fixes&id=9200c6f177638909dbbaded8aeeeccbd48744400
>
> Let me know your comments.
>
> [1] https://patchwork.kernel.org/patch/8762561/
>
> Regards
> Vivek
>
>>
>> Thanks
>> Kishon
>>>
>>> Signed-off-by: Jaehoon Chung <jh80.chung@xxxxxxxxxxx>
>>> ---
>>> drivers/phy/Kconfig | 96 +----------------------
>>> drivers/phy/Makefile | 14 +---
>>> drivers/phy/samsung/Kconfig | 92 ++++++++++++++++++++++
>>> drivers/phy/samsung/Makefile | 11 +++
>>> drivers/phy/{ => samsung}/phy-exynos-dp-video.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos-mipi-video.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos-pcie.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos4210-usb2.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos4x12-usb2.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos5-usbdrd.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos5250-sata.c | 0
>>> drivers/phy/{ => samsung}/phy-exynos5250-usb2.c | 0
>>> drivers/phy/{ => samsung}/phy-s5pv210-usb2.c | 0
>>> drivers/phy/{ => samsung}/phy-samsung-usb2.c | 0
>>> drivers/phy/{ => samsung}/phy-samsung-usb2.h | 0
>>> 15 files changed, 108 insertions(+), 105 deletions(-)
>>> create mode 100644 drivers/phy/samsung/Kconfig
>>> create mode 100644 drivers/phy/samsung/Makefile
>>> rename drivers/phy/{ => samsung}/phy-exynos-dp-video.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos-mipi-video.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos-pcie.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos4210-usb2.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos4x12-usb2.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos5-usbdrd.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos5250-sata.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-exynos5250-usb2.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-s5pv210-usb2.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-samsung-usb2.c (100%)
>>> rename drivers/phy/{ => samsung}/phy-samsung-usb2.h (100%)
>
> [snip]
>
>
>