Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421836 > unrolled thread
| Started by | Yakir Yang <ykk@rock-chips.com> |
|---|---|
| First post | 2016-06-14 13:50 +0200 |
| Last post | 2016-06-22 05:30 +0200 |
| Articles | 10 — 4 participants |
Back to article view | Back to linux.kernel
[PATCH v3 0/10] Yakir Yang <ykk@rock-chips.com> - 2016-06-14 13:50 +0200
[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Yakir Yang <ykk@rock-chips.com> - 2016-06-14 13:50 +0200
Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Daniel Vetter <daniel@ffwll.ch> - 2016-06-14 18:30 +0200
Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Yakir Yang <ykk@rock-chips.com> - 2016-06-15 04:00 +0200
Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Daniel Vetter <daniel@ffwll.ch> - 2016-06-14 18:30 +0200
Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Daniel Vetter <daniel@ffwll.ch> - 2016-06-14 18:30 +0200
Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() Sean Paul <seanpaul@chromium.org> - 2016-06-23 16:20 +0200
Re: [PATCH v3 0/10] Archit Taneja <architt@codeaurora.org> - 2016-06-21 16:00 +0200
Re: [PATCH v3 0/10] Yakir Yang <ykk@rock-chips.com> - 2016-06-22 04:40 +0200
Re: [PATCH v3 0/10] Archit Taneja <architt@codeaurora.org> - 2016-06-22 05:30 +0200
| From | Yakir Yang <ykk@rock-chips.com> |
|---|---|
| Date | 2016-06-14 13:50 +0200 |
| Subject | [PATCH v3 0/10] |
| Message-ID | <rJV0Z-4hM-3@gated-at.bofh.it> |
RK3399 and RK3288 shared the same eDP IP controller, only some light
difference with VOP configure and GRF configure.
Also same misc fix to analogix_dp driver:
- Hotplug invalid which report by Dan Carpenter
- Make panel detect to an optional action
- correct the register bit define error in ANALOGIX_DP_PLL_REG_1
Changes in v3:
- Correct the misspell of "marcos" in commit message (Dominik, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346312/9//COMMIT_MSG@9]
- Add reviewed flag from Stéphane.
[https://chromium-review.googlesource.com/#/c/346312/16]
- Add tested flag from Javier.
- Write a kerneldoc-style comment explaining the chips data fields (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@39]
- Drop the '.lcdcsel_mask' number in chips data field (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@382]
- Add acked flag from Mark.
- Add reviewed flag from Tomasz.
[https://chromium-review.googlesource.com/#/c/346315/15]
- Add tested flag from Javier
- Make this hack code more clear (Tomasz, reviewed at Google Gerrit)
reg = ~reg & REF_CLK_MASK; ---> reg ^= REF_CLK_MASK;
[https://chromium-review.googlesource.com/#/c/346852/7/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c@80]
- Add tested flag from Javier
- Give the "rk3399-edp" a separate line for clarity in document (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346314/10/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt@5]
- Move 'output_type' setting before the return statement (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346314/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@154]
- Add the acked flag from Mark.
- Add the acked flag from Mark.
- Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
- Hook the connector's color_formats in .get_modes directly. (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346317/15]
- Add the acked flag from Mark.
- Add the reviewed flag from Tomasz.
[https://chromium-review.googlesource.com/#/c/346853/12]
- Add the acked flag from Mark.
- Add reviewed flag from Stéphane.
[https://chromium-review.googlesource.com/#/c/346319/15]
- Add tested flag from Javier
Changes in v2:
- new patch in v2
- rebase with drm-next, fix some conflicts
- new patch in v2
Yakir Yang (10):
drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP
drm/rockchip: analogix_dp: split the lcdc select setting into device
data
drm/bridge: analogix_dp: correct the register bit define error in
ANALOGIX_DP_PLL_REG_1
drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit
setting
drm/rockchip: analogix_dp: add rk3399 eDP support
drm/rockchip: analogix_dp: make panel detect to an optional action
drm/bridge: analogix_dp: passing the connector as an argument in
.get_modes()
drm/rockchip: analogix_dp: correct the connector display color format
and bpc
drm/rockchip: analogix_dp: update the comments about why need to
hardcode VOP output mode
drm/bridge: analogix_dp: fix no drm hpd event when panel plug in
.../bindings/display/bridge/analogix_dp.txt | 1 +
.../display/rockchip/analogix_dp-rockchip.txt | 3 +-
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 +-
drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 8 +-
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 12 +-
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 5 +-
drivers/gpu/drm/exynos/exynos_dp.c | 4 +-
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 158 ++++++++++++++-------
include/drm/bridge/analogix_dp.h | 9 +-
9 files changed, 141 insertions(+), 65 deletions(-)
--
1.9.1
[toc] | [next] | [standalone]
| From | Yakir Yang <ykk@rock-chips.com> |
|---|---|
| Date | 2016-06-14 13:50 +0200 |
| Subject | [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rJV11-4hM-53@gated-at.bofh.it> |
| In reply to | #1421836 |
It's better to pass the connector to platform driver in .get_modes()
callback, just like what the .get_modes() helper function designed.
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
---
Changes in v3:
- Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
[https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
Changes in v2: None
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
include/drm/bridge/analogix_dp.h | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 4a1b3b8..1a890fa 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
num_modes += drm_panel_get_modes(dp->plat_data->panel);
if (dp->plat_data->get_modes)
- num_modes += dp->plat_data->get_modes(dp->plat_data);
+ num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
return num_modes;
}
diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
index 468498e..8a555ed 100644
--- a/drivers/gpu/drm/exynos/exynos_dp.c
+++ b/drivers/gpu/drm/exynos/exynos_dp.c
@@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
return exynos_dp_crtc_clock_enable(plat_data, false);
}
-static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
+static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
+ struct drm_connector *connector)
{
struct exynos_dp_device *dp = to_dp(plat_data);
- struct drm_connector *connector = &dp->connector;
struct drm_display_mode *mode;
int num_modes = 0;
diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
index 82b8135..181db09 100644
--- a/include/drm/bridge/analogix_dp.h
+++ b/include/drm/bridge/analogix_dp.h
@@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
int (*power_off)(struct analogix_dp_plat_data *);
int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
struct drm_connector *);
- int (*get_modes)(struct analogix_dp_plat_data *);
+ int (*get_modes)(struct analogix_dp_plat_data *,
+ struct drm_connector *);
};
int analogix_dp_resume(struct device *dev);
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Daniel Vetter <daniel@ffwll.ch> |
|---|---|
| Date | 2016-06-14 18:30 +0200 |
| Subject | Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rJZnY-7g4-7@gated-at.bofh.it> |
| In reply to | #1421837 |
On Tue, Jun 14, 2016 at 06:26:56PM +0200, Daniel Vetter wrote:
> On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote:
> > It's better to pass the connector to platform driver in .get_modes()
> > callback, just like what the .get_modes() helper function designed.
> >
> > Signed-off-by: Yakir Yang <ykk@rock-chips.com>
>
> Also please drop the analogix prefix from the subject, this is for all
> drm_bridge drivers.
Ok, strike all my comments, I was blind and didn't realize that this was a
private interface for only rockchip/exynos.
-Daniel
> -Daniel
>
> > ---
> > Changes in v3:
> > - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
> > [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
> >
> > Changes in v2: None
> >
> > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
> > drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
> > include/drm/bridge/analogix_dp.h | 3 ++-
> > 3 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > index 4a1b3b8..1a890fa 100644
> > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > @@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
> > num_modes += drm_panel_get_modes(dp->plat_data->panel);
> >
> > if (dp->plat_data->get_modes)
> > - num_modes += dp->plat_data->get_modes(dp->plat_data);
> > + num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
> >
> > return num_modes;
> > }
> > diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
> > index 468498e..8a555ed 100644
> > --- a/drivers/gpu/drm/exynos/exynos_dp.c
> > +++ b/drivers/gpu/drm/exynos/exynos_dp.c
> > @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
> > return exynos_dp_crtc_clock_enable(plat_data, false);
> > }
> >
> > -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
> > +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
> > + struct drm_connector *connector)
> > {
> > struct exynos_dp_device *dp = to_dp(plat_data);
> > - struct drm_connector *connector = &dp->connector;
> > struct drm_display_mode *mode;
> > int num_modes = 0;
> >
> > diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
> > index 82b8135..181db09 100644
> > --- a/include/drm/bridge/analogix_dp.h
> > +++ b/include/drm/bridge/analogix_dp.h
> > @@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
> > int (*power_off)(struct analogix_dp_plat_data *);
> > int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
> > struct drm_connector *);
> > - int (*get_modes)(struct analogix_dp_plat_data *);
> > + int (*get_modes)(struct analogix_dp_plat_data *,
> > + struct drm_connector *);
> > };
> >
> > int analogix_dp_resume(struct device *dev);
> > --
> > 1.9.1
> >
> >
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
[toc] | [prev] | [next] | [standalone]
| From | Yakir Yang <ykk@rock-chips.com> |
|---|---|
| Date | 2016-06-15 04:00 +0200 |
| Subject | Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rK8hz-4mM-7@gated-at.bofh.it> |
| In reply to | #1422063 |
On 06/15/2016 12:28 AM, Daniel Vetter wrote:
> On Tue, Jun 14, 2016 at 06:26:56PM +0200, Daniel Vetter wrote:
>> On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote:
>>> It's better to pass the connector to platform driver in .get_modes()
>>> callback, just like what the .get_modes() helper function designed.
>>>
>>> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
>> Also please drop the analogix prefix from the subject, this is for all
>> drm_bridge drivers.
> Ok, strike all my comments, I was blind and didn't realize that this was a
> private interface for only rockchip/exynos.
:)
> -Daniel
>
>> -Daniel
>>
>>> ---
>>> Changes in v3:
>>> - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
>>> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
>>>
>>> Changes in v2: None
>>>
>>> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
>>> drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
>>> include/drm/bridge/analogix_dp.h | 3 ++-
>>> 3 files changed, 5 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
>>> index 4a1b3b8..1a890fa 100644
>>> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
>>> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
>>> @@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
>>> num_modes += drm_panel_get_modes(dp->plat_data->panel);
>>>
>>> if (dp->plat_data->get_modes)
>>> - num_modes += dp->plat_data->get_modes(dp->plat_data);
>>> + num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
>>>
>>> return num_modes;
>>> }
>>> diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
>>> index 468498e..8a555ed 100644
>>> --- a/drivers/gpu/drm/exynos/exynos_dp.c
>>> +++ b/drivers/gpu/drm/exynos/exynos_dp.c
>>> @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
>>> return exynos_dp_crtc_clock_enable(plat_data, false);
>>> }
>>>
>>> -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
>>> +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
>>> + struct drm_connector *connector)
>>> {
>>> struct exynos_dp_device *dp = to_dp(plat_data);
>>> - struct drm_connector *connector = &dp->connector;
>>> struct drm_display_mode *mode;
>>> int num_modes = 0;
>>>
>>> diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
>>> index 82b8135..181db09 100644
>>> --- a/include/drm/bridge/analogix_dp.h
>>> +++ b/include/drm/bridge/analogix_dp.h
>>> @@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
>>> int (*power_off)(struct analogix_dp_plat_data *);
>>> int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
>>> struct drm_connector *);
>>> - int (*get_modes)(struct analogix_dp_plat_data *);
>>> + int (*get_modes)(struct analogix_dp_plat_data *,
>>> + struct drm_connector *);
>>> };
>>>
>>> int analogix_dp_resume(struct device *dev);
>>> --
>>> 1.9.1
>>>
>>>
>> --
>> Daniel Vetter
>> Software Engineer, Intel Corporation
>> http://blog.ffwll.ch
[toc] | [prev] | [next] | [standalone]
| From | Daniel Vetter <daniel@ffwll.ch> |
|---|---|
| Date | 2016-06-14 18:30 +0200 |
| Subject | Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rJZnY-7g4-19@gated-at.bofh.it> |
| In reply to | #1421837 |
On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote:
> It's better to pass the connector to platform driver in .get_modes()
> callback, just like what the .get_modes() helper function designed.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
> ---
> Changes in v3:
> - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
>
> Changes in v2: None
Needs cc: Archit Tajena as drm_bridge maintainer (or at least inofficial
one), plus ack imo.
-Daniel
>
> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
> drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
> include/drm/bridge/analogix_dp.h | 3 ++-
> 3 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 4a1b3b8..1a890fa 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> @@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
> num_modes += drm_panel_get_modes(dp->plat_data->panel);
>
> if (dp->plat_data->get_modes)
> - num_modes += dp->plat_data->get_modes(dp->plat_data);
> + num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
>
> return num_modes;
> }
> diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
> index 468498e..8a555ed 100644
> --- a/drivers/gpu/drm/exynos/exynos_dp.c
> +++ b/drivers/gpu/drm/exynos/exynos_dp.c
> @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
> return exynos_dp_crtc_clock_enable(plat_data, false);
> }
>
> -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
> +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
> + struct drm_connector *connector)
> {
> struct exynos_dp_device *dp = to_dp(plat_data);
> - struct drm_connector *connector = &dp->connector;
> struct drm_display_mode *mode;
> int num_modes = 0;
>
> diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
> index 82b8135..181db09 100644
> --- a/include/drm/bridge/analogix_dp.h
> +++ b/include/drm/bridge/analogix_dp.h
> @@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
> int (*power_off)(struct analogix_dp_plat_data *);
> int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
> struct drm_connector *);
> - int (*get_modes)(struct analogix_dp_plat_data *);
> + int (*get_modes)(struct analogix_dp_plat_data *,
> + struct drm_connector *);
> };
>
> int analogix_dp_resume(struct device *dev);
> --
> 1.9.1
>
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
[toc] | [prev] | [next] | [standalone]
| From | Daniel Vetter <daniel@ffwll.ch> |
|---|---|
| Date | 2016-06-14 18:30 +0200 |
| Subject | Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rJZnY-7g4-9@gated-at.bofh.it> |
| In reply to | #1421837 |
On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote:
> It's better to pass the connector to platform driver in .get_modes()
> callback, just like what the .get_modes() helper function designed.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Also please drop the analogix prefix from the subject, this is for all
drm_bridge drivers.
-Daniel
> ---
> Changes in v3:
> - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
>
> Changes in v2: None
>
> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
> drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
> include/drm/bridge/analogix_dp.h | 3 ++-
> 3 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 4a1b3b8..1a890fa 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> @@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
> num_modes += drm_panel_get_modes(dp->plat_data->panel);
>
> if (dp->plat_data->get_modes)
> - num_modes += dp->plat_data->get_modes(dp->plat_data);
> + num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
>
> return num_modes;
> }
> diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
> index 468498e..8a555ed 100644
> --- a/drivers/gpu/drm/exynos/exynos_dp.c
> +++ b/drivers/gpu/drm/exynos/exynos_dp.c
> @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
> return exynos_dp_crtc_clock_enable(plat_data, false);
> }
>
> -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
> +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
> + struct drm_connector *connector)
> {
> struct exynos_dp_device *dp = to_dp(plat_data);
> - struct drm_connector *connector = &dp->connector;
> struct drm_display_mode *mode;
> int num_modes = 0;
>
> diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
> index 82b8135..181db09 100644
> --- a/include/drm/bridge/analogix_dp.h
> +++ b/include/drm/bridge/analogix_dp.h
> @@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
> int (*power_off)(struct analogix_dp_plat_data *);
> int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
> struct drm_connector *);
> - int (*get_modes)(struct analogix_dp_plat_data *);
> + int (*get_modes)(struct analogix_dp_plat_data *,
> + struct drm_connector *);
> };
>
> int analogix_dp_resume(struct device *dev);
> --
> 1.9.1
>
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
[toc] | [prev] | [next] | [standalone]
| From | Sean Paul <seanpaul@chromium.org> |
|---|---|
| Date | 2016-06-23 16:20 +0200 |
| Subject | Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() |
| Message-ID | <rNdE5-2KN-11@gated-at.bofh.it> |
| In reply to | #1421837 |
On Tue, Jun 14, 2016 at 7:46 AM, Yakir Yang <ykk@rock-chips.com> wrote:
> It's better to pass the connector to platform driver in .get_modes()
> callback, just like what the .get_modes() helper function designed.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
> ---
> Changes in v3:
> - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit)
> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113]
>
> Changes in v2: None
>
> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
> drivers/gpu/drm/exynos/exynos_dp.c | 4 ++--
> include/drm/bridge/analogix_dp.h | 3 ++-
> 3 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 4a1b3b8..1a890fa 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> @@ -938,7 +938,7 @@ int analogix_dp_get_modes(struct drm_connector *connector)
> num_modes += drm_panel_get_modes(dp->plat_data->panel);
>
> if (dp->plat_data->get_modes)
> - num_modes += dp->plat_data->get_modes(dp->plat_data);
> + num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
>
> return num_modes;
> }
> diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c
> index 468498e..8a555ed 100644
> --- a/drivers/gpu/drm/exynos/exynos_dp.c
> +++ b/drivers/gpu/drm/exynos/exynos_dp.c
> @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
> return exynos_dp_crtc_clock_enable(plat_data, false);
> }
>
> -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data)
> +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
> + struct drm_connector *connector)
> {
> struct exynos_dp_device *dp = to_dp(plat_data);
> - struct drm_connector *connector = &dp->connector;
> struct drm_display_mode *mode;
> int num_modes = 0;
>
> diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
> index 82b8135..181db09 100644
> --- a/include/drm/bridge/analogix_dp.h
> +++ b/include/drm/bridge/analogix_dp.h
> @@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
> int (*power_off)(struct analogix_dp_plat_data *);
> int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
> struct drm_connector *);
> - int (*get_modes)(struct analogix_dp_plat_data *);
> + int (*get_modes)(struct analogix_dp_plat_data *,
> + struct drm_connector *);
> };
>
> int analogix_dp_resume(struct device *dev);
> --
> 1.9.1
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
[toc] | [prev] | [next] | [standalone]
| From | Archit Taneja <architt@codeaurora.org> |
|---|---|
| Date | 2016-06-21 16:00 +0200 |
| Message-ID | <rMunE-6zQ-33@gated-at.bofh.it> |
| In reply to | #1421836 |
On 6/14/2016 5:15 PM, Yakir Yang wrote: > RK3399 and RK3288 shared the same eDP IP controller, only some light > difference with VOP configure and GRF configure. > > Also same misc fix to analogix_dp driver: > - Hotplug invalid which report by Dan Carpenter > - Make panel detect to an optional action > - correct the register bit define error in ANALOGIX_DP_PLL_REG_1 > > > Changes in v3: > - Correct the misspell of "marcos" in commit message (Dominik, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346312/9//COMMIT_MSG@9] > - Add reviewed flag from Stéphane. > [https://chromium-review.googlesource.com/#/c/346312/16] > - Add tested flag from Javier. > - Write a kerneldoc-style comment explaining the chips data fields (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@39] > - Drop the '.lcdcsel_mask' number in chips data field (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@382] > - Add acked flag from Mark. > - Add reviewed flag from Tomasz. > [https://chromium-review.googlesource.com/#/c/346315/15] > - Add tested flag from Javier > - Make this hack code more clear (Tomasz, reviewed at Google Gerrit) > reg = ~reg & REF_CLK_MASK; ---> reg ^= REF_CLK_MASK; > [https://chromium-review.googlesource.com/#/c/346852/7/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c@80] > - Add tested flag from Javier > - Give the "rk3399-edp" a separate line for clarity in document (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346314/10/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt@5] > - Move 'output_type' setting before the return statement (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346314/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@154] > - Add the acked flag from Mark. > - Add the acked flag from Mark. > - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113] > - Hook the connector's color_formats in .get_modes directly. (Tomasz, reviewed at Google Gerrit) > [https://chromium-review.googlesource.com/#/c/346317/15] > - Add the acked flag from Mark. > - Add the reviewed flag from Tomasz. > [https://chromium-review.googlesource.com/#/c/346853/12] > - Add the acked flag from Mark. > - Add reviewed flag from Stéphane. > [https://chromium-review.googlesource.com/#/c/346319/15] > - Add tested flag from Javier > > Changes in v2: > - new patch in v2 > - rebase with drm-next, fix some conflicts > - new patch in v2 > > Yakir Yang (10): > drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP > drm/rockchip: analogix_dp: split the lcdc select setting into device > data > drm/bridge: analogix_dp: correct the register bit define error in > ANALOGIX_DP_PLL_REG_1 > drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit > setting > drm/rockchip: analogix_dp: add rk3399 eDP support > drm/rockchip: analogix_dp: make panel detect to an optional action > drm/bridge: analogix_dp: passing the connector as an argument in > .get_modes() > drm/rockchip: analogix_dp: correct the connector display color format > and bpc > drm/rockchip: analogix_dp: update the comments about why need to > hardcode VOP output mode > drm/bridge: analogix_dp: fix no drm hpd event when panel plug in Is the plan to take all the bridge+rockchip stuff via the rockchip pull request? Thanks, Archit > > .../bindings/display/bridge/analogix_dp.txt | 1 + > .../display/rockchip/analogix_dp-rockchip.txt | 3 +- > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 +- > drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 8 +- > drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 12 +- > drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 5 +- > drivers/gpu/drm/exynos/exynos_dp.c | 4 +- > drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 158 ++++++++++++++------- > include/drm/bridge/analogix_dp.h | 9 +- > 9 files changed, 141 insertions(+), 65 deletions(-) > -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [prev] | [next] | [standalone]
| From | Yakir Yang <ykk@rock-chips.com> |
|---|---|
| Date | 2016-06-22 04:40 +0200 |
| Message-ID | <rMGf7-5Rv-5@gated-at.bofh.it> |
| In reply to | #1427785 |
Archit, On 06/21/2016 09:46 PM, Archit Taneja wrote: > > > On 6/14/2016 5:15 PM, Yakir Yang wrote: >> RK3399 and RK3288 shared the same eDP IP controller, only some light >> difference with VOP configure and GRF configure. >> >> Also same misc fix to analogix_dp driver: >> - Hotplug invalid which report by Dan Carpenter >> - Make panel detect to an optional action >> - correct the register bit define error in ANALOGIX_DP_PLL_REG_1 >> >> >> Changes in v3: >> - Correct the misspell of "marcos" in commit message (Dominik, >> reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346312/9//COMMIT_MSG@9] >> - Add reviewed flag from Stéphane. >> [https://chromium-review.googlesource.com/#/c/346312/16] >> - Add tested flag from Javier. >> - Write a kerneldoc-style comment explaining the chips data fields >> (Tomasz, reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@39] >> - Drop the '.lcdcsel_mask' number in chips data field (Tomasz, >> reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@382] >> - Add acked flag from Mark. >> - Add reviewed flag from Tomasz. >> [https://chromium-review.googlesource.com/#/c/346315/15] >> - Add tested flag from Javier >> - Make this hack code more clear (Tomasz, reviewed at Google Gerrit) >> reg = ~reg & REF_CLK_MASK; ---> reg ^= REF_CLK_MASK; >> [https://chromium-review.googlesource.com/#/c/346852/7/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c@80] >> - Add tested flag from Javier >> - Give the "rk3399-edp" a separate line for clarity in document >> (Tomasz, reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346314/10/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt@5] >> - Move 'output_type' setting before the return statement (Tomasz, >> reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346314/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@154] >> - Add the acked flag from Mark. >> - Add the acked flag from Mark. >> - Avoid to change any internal driver state in .mode_valid interface. >> (Tomasz, reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113] >> - Hook the connector's color_formats in .get_modes directly. (Tomasz, >> reviewed at Google Gerrit) >> [https://chromium-review.googlesource.com/#/c/346317/15] >> - Add the acked flag from Mark. >> - Add the reviewed flag from Tomasz. >> [https://chromium-review.googlesource.com/#/c/346853/12] >> - Add the acked flag from Mark. >> - Add reviewed flag from Stéphane. >> [https://chromium-review.googlesource.com/#/c/346319/15] >> - Add tested flag from Javier >> >> Changes in v2: >> - new patch in v2 >> - rebase with drm-next, fix some conflicts >> - new patch in v2 >> >> Yakir Yang (10): >> drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP >> drm/rockchip: analogix_dp: split the lcdc select setting into device >> data >> drm/bridge: analogix_dp: correct the register bit define error in >> ANALOGIX_DP_PLL_REG_1 >> drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit >> setting >> drm/rockchip: analogix_dp: add rk3399 eDP support >> drm/rockchip: analogix_dp: make panel detect to an optional action >> drm/bridge: analogix_dp: passing the connector as an argument in >> .get_modes() >> drm/rockchip: analogix_dp: correct the connector display color format >> and bpc >> drm/rockchip: analogix_dp: update the comments about why need to >> hardcode VOP output mode >> drm/bridge: analogix_dp: fix no drm hpd event when panel plug in > > Is the plan to take all the bridge+rockchip stuff via the rockchip pull > request? > Yep, most of those patch need to rely on others, so it's better to collect all of them into one pull request ;) Thanks, - Yakir > Thanks, > Archit > >> >> .../bindings/display/bridge/analogix_dp.txt | 1 + >> .../display/rockchip/analogix_dp-rockchip.txt | 3 +- >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 +- >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 8 +- >> drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 12 +- >> drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 5 +- >> drivers/gpu/drm/exynos/exynos_dp.c | 4 +- >> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 158 >> ++++++++++++++------- >> include/drm/bridge/analogix_dp.h | 9 +- >> 9 files changed, 141 insertions(+), 65 deletions(-) >> >
[toc] | [prev] | [next] | [standalone]
| From | Archit Taneja <architt@codeaurora.org> |
|---|---|
| Date | 2016-06-22 05:30 +0200 |
| Message-ID | <rMH1v-6pK-3@gated-at.bofh.it> |
| In reply to | #1428355 |
On 6/22/2016 7:54 AM, Yakir Yang wrote: > Archit, > > On 06/21/2016 09:46 PM, Archit Taneja wrote: >> >> >> On 6/14/2016 5:15 PM, Yakir Yang wrote: >>> RK3399 and RK3288 shared the same eDP IP controller, only some light >>> difference with VOP configure and GRF configure. >>> >>> Also same misc fix to analogix_dp driver: >>> - Hotplug invalid which report by Dan Carpenter >>> - Make panel detect to an optional action >>> - correct the register bit define error in ANALOGIX_DP_PLL_REG_1 >>> >>> >>> Changes in v3: >>> - Correct the misspell of "marcos" in commit message (Dominik, >>> reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346312/9//COMMIT_MSG@9] >>> - Add reviewed flag from Stéphane. >>> [https://chromium-review.googlesource.com/#/c/346312/16] >>> - Add tested flag from Javier. >>> - Write a kerneldoc-style comment explaining the chips data fields >>> (Tomasz, reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@39] >>> >>> - Drop the '.lcdcsel_mask' number in chips data field (Tomasz, >>> reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346313/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@382] >>> >>> - Add acked flag from Mark. >>> - Add reviewed flag from Tomasz. >>> [https://chromium-review.googlesource.com/#/c/346315/15] >>> - Add tested flag from Javier >>> - Make this hack code more clear (Tomasz, reviewed at Google Gerrit) >>> reg = ~reg & REF_CLK_MASK; ---> reg ^= REF_CLK_MASK; >>> [https://chromium-review.googlesource.com/#/c/346852/7/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c@80] >>> >>> - Add tested flag from Javier >>> - Give the "rk3399-edp" a separate line for clarity in document >>> (Tomasz, reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346314/10/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt@5] >>> >>> - Move 'output_type' setting before the return statement (Tomasz, >>> reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346314/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@154] >>> >>> - Add the acked flag from Mark. >>> - Add the acked flag from Mark. >>> - Avoid to change any internal driver state in .mode_valid interface. >>> (Tomasz, reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346318/10/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c@113] >>> >>> - Hook the connector's color_formats in .get_modes directly. (Tomasz, >>> reviewed at Google Gerrit) >>> [https://chromium-review.googlesource.com/#/c/346317/15] >>> - Add the acked flag from Mark. >>> - Add the reviewed flag from Tomasz. >>> [https://chromium-review.googlesource.com/#/c/346853/12] >>> - Add the acked flag from Mark. >>> - Add reviewed flag from Stéphane. >>> [https://chromium-review.googlesource.com/#/c/346319/15] >>> - Add tested flag from Javier >>> >>> Changes in v2: >>> - new patch in v2 >>> - rebase with drm-next, fix some conflicts >>> - new patch in v2 >>> >>> Yakir Yang (10): >>> drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP >>> drm/rockchip: analogix_dp: split the lcdc select setting into device >>> data >>> drm/bridge: analogix_dp: correct the register bit define error in >>> ANALOGIX_DP_PLL_REG_1 >>> drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit >>> setting >>> drm/rockchip: analogix_dp: add rk3399 eDP support >>> drm/rockchip: analogix_dp: make panel detect to an optional action >>> drm/bridge: analogix_dp: passing the connector as an argument in >>> .get_modes() >>> drm/rockchip: analogix_dp: correct the connector display color format >>> and bpc >>> drm/rockchip: analogix_dp: update the comments about why need to >>> hardcode VOP output mode >>> drm/bridge: analogix_dp: fix no drm hpd event when panel plug in >> >> Is the plan to take all the bridge+rockchip stuff via the rockchip pull >> request? >> > > Yep, most of those patch need to rely on others, so it's better to > collect all of them into one pull request ;) Cool. Sounds good. Archit > > Thanks, > - Yakir > >> Thanks, >> Archit >> >>> >>> .../bindings/display/bridge/analogix_dp.txt | 1 + >>> .../display/rockchip/analogix_dp-rockchip.txt | 3 +- >>> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 +- >>> drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 8 +- >>> drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 12 +- >>> drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h | 5 +- >>> drivers/gpu/drm/exynos/exynos_dp.c | 4 +- >>> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 158 >>> ++++++++++++++------- >>> include/drm/bridge/analogix_dp.h | 9 +- >>> 9 files changed, 141 insertions(+), 65 deletions(-) >>> >> > > -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web