Re: [PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case

2023-11-15 Thread Johan Hovold
On Wed, Oct 25, 2023 at 12:23:09PM +0300, Dmitry Baryshkov wrote:
> From: Abel Vesa 
> 
> In case of the eDP connection there is no subconnetor and as such no
> subconnector property. Put drm_dp_set_subconnector_property() calls
> under the !is_edp condition.
> 
> Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
> Signed-off-by: Abel Vesa 
> Signed-off-by: Dmitry Baryshkov 

Reviewed-by: Johan Hovold 
Tested-by: Johan Hovold 


Re: [PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case

2023-11-01 Thread Jessica Zhang




On 10/25/2023 2:23 AM, Dmitry Baryshkov wrote:

From: Abel Vesa 

In case of the eDP connection there is no subconnetor and as such no
subconnector property. Put drm_dp_set_subconnector_property() calls
under the !is_edp condition.

Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
Signed-off-by: Abel Vesa 
Signed-off-by: Dmitry Baryshkov 


Tested-by: Jessica Zhang  # SC7280


---
  drivers/gpu/drm/msm/dp/dp_display.c | 15 ++-
  1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/msm/dp/dp_display.c 
b/drivers/gpu/drm/msm/dp/dp_display.c
index e329e03e068d..1b88fb52726f 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -365,9 +365,11 @@ static int dp_display_send_hpd_notification(struct 
dp_display_private *dp,
/* reset video pattern flag on disconnect */
if (!hpd) {
dp->panel->video_test = false;
-   drm_dp_set_subconnector_property(dp->dp_display.connector,
-connector_status_disconnected,
-dp->panel->dpcd, 
dp->panel->downstream_ports);
+   if (!dp->dp_display.is_edp)
+   
drm_dp_set_subconnector_property(dp->dp_display.connector,
+
connector_status_disconnected,
+dp->panel->dpcd,
+
dp->panel->downstream_ports);
}
  
  	dp->dp_display.is_connected = hpd;

@@ -396,8 +398,11 @@ static int dp_display_process_hpd_high(struct 
dp_display_private *dp)
  
  	dp_link_process_request(dp->link);
  
-	drm_dp_set_subconnector_property(dp->dp_display.connector, connector_status_connected,

-dp->panel->dpcd, 
dp->panel->downstream_ports);
+   if (!dp->dp_display.is_edp)
+   drm_dp_set_subconnector_property(dp->dp_display.connector,
+connector_status_connected,
+dp->panel->dpcd,
+dp->panel->downstream_ports);
  
  	edid = dp->panel->edid;
  
--

2.42.0



Re: [PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case

2023-10-27 Thread Dmitry Baryshkov
On Sat, 28 Oct 2023 at 00:02, Abhinav Kumar  wrote:
>
>
>
> On 10/25/2023 2:23 AM, Dmitry Baryshkov wrote:
> > From: Abel Vesa 
> >
> > In case of the eDP connection there is no subconnetor and as such no
> > subconnector property. Put drm_dp_set_subconnector_property() calls
> > under the !is_edp condition.
> >
> > Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
> > Signed-off-by: Abel Vesa 
> > Signed-off-by: Dmitry Baryshkov 
> > ---
> >   drivers/gpu/drm/msm/dp/dp_display.c | 15 ++-
> >   1 file changed, 10 insertions(+), 5 deletions(-)
> >
>
> We still need to unify the calls to drm_dp_set_subconnector_property()
> for the hpd connect/disconnect places preferably in
> dp_display_send_hpd_notification().
>
> That way, we would have had to make this change only in one location.

Good point, I'd like to take another look at the HPD handling in the
DP driver after we land the pending pm_runtime changes. As a part of
that I'll check the drm_dp_set_subconnector_property() calls.

> If you want to pursue that as a separate patch, I am fine as well.
>
> Hence,
>
> Reviewed-by: Abhinav Kumar 



-- 
With best wishes
Dmitry


Re: [PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case

2023-10-27 Thread Abhinav Kumar




On 10/25/2023 2:23 AM, Dmitry Baryshkov wrote:

From: Abel Vesa 

In case of the eDP connection there is no subconnetor and as such no
subconnector property. Put drm_dp_set_subconnector_property() calls
under the !is_edp condition.

Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
Signed-off-by: Abel Vesa 
Signed-off-by: Dmitry Baryshkov 
---
  drivers/gpu/drm/msm/dp/dp_display.c | 15 ++-
  1 file changed, 10 insertions(+), 5 deletions(-)



We still need to unify the calls to drm_dp_set_subconnector_property() 
for the hpd connect/disconnect places preferably in 
dp_display_send_hpd_notification().


That way, we would have had to make this change only in one location.

If you want to pursue that as a separate patch, I am fine as well.

Hence,

Reviewed-by: Abhinav Kumar 


[PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case

2023-10-25 Thread Dmitry Baryshkov
From: Abel Vesa 

In case of the eDP connection there is no subconnetor and as such no
subconnector property. Put drm_dp_set_subconnector_property() calls
under the !is_edp condition.

Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
Signed-off-by: Abel Vesa 
Signed-off-by: Dmitry Baryshkov 
---
 drivers/gpu/drm/msm/dp/dp_display.c | 15 ++-
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/msm/dp/dp_display.c 
b/drivers/gpu/drm/msm/dp/dp_display.c
index e329e03e068d..1b88fb52726f 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -365,9 +365,11 @@ static int dp_display_send_hpd_notification(struct 
dp_display_private *dp,
/* reset video pattern flag on disconnect */
if (!hpd) {
dp->panel->video_test = false;
-   drm_dp_set_subconnector_property(dp->dp_display.connector,
-connector_status_disconnected,
-dp->panel->dpcd, 
dp->panel->downstream_ports);
+   if (!dp->dp_display.is_edp)
+   
drm_dp_set_subconnector_property(dp->dp_display.connector,
+
connector_status_disconnected,
+dp->panel->dpcd,
+
dp->panel->downstream_ports);
}
 
dp->dp_display.is_connected = hpd;
@@ -396,8 +398,11 @@ static int dp_display_process_hpd_high(struct 
dp_display_private *dp)
 
dp_link_process_request(dp->link);
 
-   drm_dp_set_subconnector_property(dp->dp_display.connector, 
connector_status_connected,
-dp->panel->dpcd, 
dp->panel->downstream_ports);
+   if (!dp->dp_display.is_edp)
+   drm_dp_set_subconnector_property(dp->dp_display.connector,
+connector_status_connected,
+dp->panel->dpcd,
+dp->panel->downstream_ports);
 
edid = dp->panel->edid;
 
-- 
2.42.0