[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160331102247.GE26032@ulmo.nvidia.com>
Date: Thu, 31 Mar 2016 12:22:48 +0200
From: Thierry Reding <treding@...dia.com>
To: Yakir Yang <ykk@...k-chips.com>, Inki Dae <inki.dae@...sung.com>,
"Andrzej Hajda" <a.hajda@...sung.com>,
Joonyoung Shim <jy0922.shim@...sung.com>,
Seung-Woo Kim <sw0312.kim@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Jingoo Han <jingoohan1@...il.com>,
"Krzysztof Kozlowski" <k.kozlowski@...sung.com>,
Rob Herring <robh+dt@...nel.org>,
"Heiko Stuebner" <heiko@...ech.de>,
Mark Yao <mark.yao@...k-chips.com>,
<devicetree@...r.kernel.org>, <linux-samsung-soc@...r.kernel.org>,
"Russell King" <linux@....linux.org.uk>,
Pawel Moll <pawel.moll@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
<linux-rockchip@...ts.infradead.org>, <emil.l.velikov@...il.com>,
<linux-kernel@...r.kernel.org>,
"Kishon Vijay Abraham I" <kishon@...com>, <javier@....samsung.com>,
Kukjin Kim <kgene@...nel.org>,
<dri-devel@...ts.freedesktop.org>,
Kumar Gala <galak@...eaurora.org>, <ajaynumb@...il.com>,
<robherring2@...il.com>, "Andy Yan" <andy.yan@...k-chips.com>,
Gustavo Padovan <gustavo.padovan@...labora.co.uk>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver
On Thu, Mar 31, 2016 at 12:15:35PM +0200, Daniel Vetter wrote:
> On Mon, Feb 15, 2016 at 07:08:05PM +0800, Yakir Yang wrote:
> >
> > Hi all,
> >
> > The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller
> > share the same IP, so a lot of parts can be re-used. I split the common
> > code into bridge directory, then rk3288 and exynos only need to keep
> > some platform code. Cause I can't find the exact IP name of exynos dp
> > controller, so I decide to name dp core driver with "analogix" which I
> > find in rk3288 eDP TRM
> >
> > But there are still three light registers setting different between
> > exynos and rk3288.
> > 1. RK3288 have five special pll registers which not indicate in exynos
> > dp controller.
> > 2. The address of DP_PHY_PD(dp phy power manager register) are different
> > between rk3288 and exynos.
> > 3. Rk3288 and exynos have different setting with AUX_HW_RETRY_CTL(dp debug
> > register).
> >
> > Due to Mark Yao have introduced the ATOMIC support to Rockchip drm, so it's
> > okay to use the ATOMIC helpers functions in connector_funcs. No need to splict
> > the connector init to platform driver anymore, and this is the biggest change
> > since version 11.
> >
> > This v14 didn't have lots of new changes which seems not the correct time to
> > upgrade the version number, but I have changed ordering of patches (adding 2
> > more, and removing 2 out). Especially to prevent confusing people, so I updated
> > the whole series.
>
> So I'm jumping into this part way late, but just noticed (well Thierry
> pointed this out to me) that the exynos dp driver reinvents all the dp and
> dp-aux helpers we already. That's somewhat okish for a private driver (and
> exynos has a reputation for that kind of stuff), but imo not ok for a
> shared driver.
>
> Not saying this should block merging this patch, but it really needs to be
> addressed. All the dp aux and edid read code in the current
> exynos_dp_core/reg.c files needs to be replaced with dp helpers and the
> core i2c edid reading code.
Agreed. I think a first step would be to implement and register a
drm_dp_aux object for Analogix DP hardware. That will give you access to
a slew of helpers that allow to read DPCD, parse link status and use the
standard EDID reading routines that the DRM core already has. This
should remove a lot of duplication from this driver.
For extra incentive, doing this might even fix a bug or two.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists