[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150821131631.GC22118@ulmo.nvidia.com>
Date: Fri, 21 Aug 2015 15:16:33 +0200
From: Thierry Reding <treding@...dia.com>
To: Jingoo Han <jingoohan1@...il.com>
CC: Yakir Yang <ykk@...k-chips.com>, Heiko Stuebner <heiko@...ech.de>,
"Fabio Estevam" <fabio.estevam@...escale.com>,
Inki Dae <inki.dae@...sung.com>,
"joe@...ches.com" <joe@...ches.com>,
Russell King <rmk+kernel@....linux.org.uk>,
"djkurtz@...gle.com" <djkurtz@...gle.com>,
"dianders@...gle.com" <dianders@...gle.com>,
"seanpaul@...gle.com" <seanpaul@...gle.com>,
Takashi Iwai <tiwai@...e.de>,
"ajaynumb@...il.com" <ajaynumb@...il.com>,
Andrzej Hajda <a.hajda@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
"David Airlie" <airlied@...ux.ie>,
Gustavo Padovan <gustavo.padovan@...labora.co.uk>,
Vincent Palatin <vpalatin@...omium.org>,
Mark Yao <mark.yao@...k-chips.com>,
Andy Yan <andy.yan@...k-chips.com>,
Kumar Gala <galak@...eaurora.org>,
"Ian Campbell" <ijc+devicetree@...lion.org.uk>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Kishon Vijay Abraham I <kishon@...com>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-samsung-soc@...r.kernel.org"
<linux-samsung-soc@...r.kernel.org>,
"linux-rockchip@...ts.infradead.org"
<linux-rockchip@...ts.infradead.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v3 0/14] Add Analogix Core Display Port Driver
On Fri, Aug 21, 2015 at 08:24:16PM +0900, Jingoo Han wrote:
> On 2015. 8. 21., at PM 7:01, Yakir Yang <ykk@...k-chips.com> wrote:
> >
> > Hi Jingoo,
> >
> >> 在 2015/8/21 16:20, Jingoo Han 写道:
> >>> On 2015. 8. 19., at PM 11:48, Yakir Yang <ykk@...k-chips.com> wrote:
> >>
> >> .....
> >>
> >>> .../bindings/video/analogix_dp-rockchip.txt | 83 ++
> >>> .../devicetree/bindings/video/exynos_dp.txt | 51 +-
> >>> arch/arm/boot/dts/exynos5250-arndale.dts | 10 +-
> >>> arch/arm/boot/dts/exynos5250-smdk5250.dts | 10 +-
> >>> arch/arm/boot/dts/exynos5250-snow.dts | 12 +-
> >>> arch/arm/boot/dts/exynos5250-spring.dts | 12 +-
> >>> arch/arm/boot/dts/exynos5420-peach-pit.dts | 12 +-
> >>> arch/arm/boot/dts/exynos5420-smdk5420.dts | 10 +-
> >>> arch/arm/boot/dts/exynos5800-peach-pi.dts | 12 +-
> >>> drivers/gpu/drm/bridge/Kconfig | 5 +
> >>> drivers/gpu/drm/bridge/Makefile | 1 +
> >>> drivers/gpu/drm/bridge/analogix_dp_core.c | 1382 +++++++++++++++++++
> >>> drivers/gpu/drm/bridge/analogix_dp_core.h | 286 ++++
> >>> drivers/gpu/drm/bridge/analogix_dp_reg.c | 1294 ++++++++++++++++++
> >>> .../exynos_dp_reg.h => bridge/analogix_dp_reg.h} | 270 ++--
> >>> drivers/gpu/drm/exynos/Kconfig | 5 +-
> >>> drivers/gpu/drm/exynos/Makefile | 2 +-
> >>> drivers/gpu/drm/exynos/analogix_dp-exynos.c | 347 +++++
> >> Would you change this file name to "exynos_dp.c"?
> >
> > Sorry, I don't think so ;(
> >
> > I think IP_name+Soc_name would be better in this re-use case.
>
> So? Is there the naming rule such as "IP_name+SoC_name"?
>
> > Beside I see
> > there are lots of driver named with this format in kernel, such as dw_hdmi & dw_mmc
>
> Please look at other dw cases.
> For example, look at dw_pcie.
>
> drivers/pci/host/
> pcie-designware.c
> pci-spear13xx.c
> pci-exynos.c
>
> In this case, pci-spear13xx.c and pci-exynos.c do not use "IP_name+SoC_name", even though these are dw IPs.
>
> Also, naming consistency is more important.
> Now, Exynos DRM files are using "exynos_drm_" prefix.
>
> drivers/gpu/drm/exynos/
> exynos_drm_buf.c
> exynos_drm_core.c
> ....
>
> However, "analogix_dp-exynos.c" looks very inconsistent.
>
> If there is no strict naming rule, please use "exynos_dp.c"
> or "exynos_drm_dp.c".
Exynos DRM maintainers get to pick their filenames, so Yakir, please
rename as Jingoo suggested.
Even if you didn't the first thing that would go into the Exynos DRM
driver tree after this is merged is a rename patch anyway.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists