From: Thierry Reding <thierry.reding@gmail.com>
To: Ajay Kumar <ajaykumar.rs@samsung.com>
Cc: dri-devel@lists.freedesktop.org,
linux-samsung-soc@vger.kernel.org, seanpaul@google.com,
joshi@samsung.com, ajaynumb@gmail.com, prashanth.g@samsung.com,
Rahul Sharma <rahul.sharma@samsung.com>
Subject: Re: [PATCH V2 9/9] drm/exynos: Add ps8622 lvds bridge discovery to DP driver
Date: Tue, 22 Apr 2014 11:27:44 +0200 [thread overview]
Message-ID: <20140422092743.GB22133@ulmo> (raw)
In-Reply-To: <1398119958-32005-10-git-send-email-ajaykumar.rs@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]
On Tue, Apr 22, 2014 at 04:09:18AM +0530, Ajay Kumar wrote:
> This patch adds ps8622 lvds bridge discovery code to the dp driver.
>
> Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
> ---
> Changes since V1:
> Pushing V1 for this as V2 because this patch holds good in this series.
>
> drivers/gpu/drm/exynos/exynos_dp_core.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c
> index 4853f31..0006412 100644
> --- a/drivers/gpu/drm/exynos/exynos_dp_core.c
> +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c
> @@ -30,6 +30,7 @@
> #include <drm/drm_crtc_helper.h>
> #include <drm/drm_panel.h>
> #include <drm/bridge/ptn3460.h>
> +#include <drm/bridge/ps8622.h>
>
> #include "exynos_drm_drv.h"
> #include "exynos_dp_core.h"
> @@ -999,7 +1000,15 @@ static int exynos_drm_attach_lcd_bridge(struct drm_device *dev,
> panel);
> if (!ret)
> return 1;
> + } else if (find_bridge("parade,ps8625", &bridge)) {
So this is where the inspiration for the of_find_compatible_node() in
the earlier patch came from.
> + ret = ps8622_init(dev, encoder, bridge.client, bridge.node,
> + panel);
Long-term I don't think this is going to scale very well. In my opinion
it would be much more useful to have the bridge driver initialize what
it can and then have the DRM driver call a generic initialization
function to bind it to the DRM device or encoder. Otherwise we have to
keep knowledge about the type of bridge in each driver that uses it,
whereas the goal (I think) would be to create a proper abstraction so
that the DRM driver doesn't have to know that kind of detail.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-04-22 9:29 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 22:39 [PATCH V2 0/9] drm: exynos: few patches to enhance bridge chip support Ajay Kumar
2014-04-21 22:39 ` [PATCH V2 1/9] drm/exynos: dp: support hotplug detection via GPIO Ajay Kumar
2014-04-22 7:13 ` Jingoo Han
2014-05-09 0:57 ` Jingoo Han
2014-04-21 22:39 ` [PATCH V2 2/9] drm/panel: add pre_enable and post_disable routines Ajay Kumar
2014-04-22 8:19 ` Thierry Reding
2014-04-22 14:36 ` Ajay kumar
2014-04-23 7:29 ` Daniel Vetter
2014-04-23 7:42 ` Thierry Reding
2014-04-23 19:26 ` Ajay kumar
2014-04-24 18:31 ` Thierry Reding
2014-04-25 6:04 ` Ajay kumar
2014-04-25 18:16 ` Ajay kumar
2014-04-29 12:15 ` Ajay kumar
2014-04-23 19:14 ` Ajay kumar
2014-04-21 22:39 ` [PATCH V2 3/9] drm/panel: Add driver for exynos_dp based panels Ajay Kumar
2014-04-22 7:22 ` Jingoo Han
2014-04-22 14:37 ` Ajay kumar
2014-04-22 8:26 ` Thierry Reding
2014-04-22 14:53 ` Ajay kumar
2014-04-22 15:16 ` Thierry Reding
2014-04-21 22:39 ` [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver Ajay Kumar
2014-04-22 8:33 ` Thierry Reding
2014-04-22 15:03 ` Ajay kumar
2014-04-22 15:26 ` Thierry Reding
2014-08-20 4:02 ` Stéphane Marchesin
2014-08-21 7:36 ` Thierry Reding
2014-08-21 8:25 ` Stéphane Marchesin
2014-08-21 9:27 ` Ajay kumar
2014-08-21 9:37 ` Thierry Reding
2014-08-21 9:28 ` Thierry Reding
2014-04-21 22:39 ` [PATCH V2 5/9] drm/exynos: dp: modify driver to support drm_panel Ajay Kumar
2014-04-22 8:37 ` Thierry Reding
2014-04-21 22:39 ` [PATCH V2 6/9] drm/bridge: ptn3460: enable polling based detection Ajay Kumar
2014-04-22 8:43 ` Thierry Reding
2014-04-21 22:39 ` [PATCH V2 7/9] drm/bridge: ptn3460: add drm_panel controls Ajay Kumar
2014-04-22 8:55 ` Thierry Reding
2014-04-22 11:34 ` Rob Clark
2014-04-22 13:53 ` Daniel Vetter
2014-04-23 18:56 ` Ajay kumar
2014-04-23 19:02 ` Ajay kumar
2014-04-24 16:11 ` Rob Clark
2014-04-24 16:55 ` Ajay kumar
2014-04-24 17:25 ` Rob Clark
2014-04-24 17:38 ` Ajay kumar
2014-04-25 6:10 ` Ajay kumar
2014-04-25 6:17 ` Ajay kumar
2014-04-27 12:55 ` Daniel Vetter
2014-04-28 13:08 ` Ajay kumar
2014-04-29 13:14 ` Rob Clark
2014-04-21 22:39 ` [PATCH V2 8/9] drm/bridge: Add PS8622 bridge driver Ajay Kumar
2014-04-22 8:43 ` Jingoo Han
2014-04-22 13:57 ` Ajay kumar
2014-04-22 13:31 ` Sean Paul
2014-04-22 14:03 ` Ajay kumar
2014-04-21 22:39 ` [PATCH V2 9/9] drm/exynos: Add ps8622 lvds bridge discovery to DP driver Ajay Kumar
2014-04-22 9:27 ` Thierry Reding [this message]
2014-04-22 17:20 ` Ajay kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140422092743.GB22133@ulmo \
--to=thierry.reding@gmail.com \
--cc=ajaykumar.rs@samsung.com \
--cc=ajaynumb@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=joshi@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=prashanth.g@samsung.com \
--cc=rahul.sharma@samsung.com \
--cc=seanpaul@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox