Skip to contentSkip to conversation

drm/msm: Fix convert to drm_of_get_data_lanes_count

PATCH In review Marek Vasut 3 participants 3 messages Jun 12, 2022 – Jun 13, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: Fix convert to drm_of_get_data_lanes_count

Add missing header file into dsi_host.c and encode data-lanes string directly into the warning message in the driver to avoid build issues detected by lkp.

Fixes 185443efa26a ("drm/msm: Convert to drm_of_get_data_lanes_count")
Cc Abhinav Kumar <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Clark <[email protected]>
Cc Robert Foss <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Sean Paul <[email protected]>

To: [email protected]

---
 drivers/gpu/drm/msm/dp/dp_parser.c | 4 ++--
 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_parser.c +2 -2
index 346556c5706d7..57ae14a0e1814 100644
@@ -106,8 +106,8 @@ static int dp_parser_misc(struct dp_parser *parser)
 
 	len = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES);
 	if (len < 0) {
-		DRM_WARN("Invalid property %s, default max DP lanes = %d\n",
-				data_lane_property, DP_MAX_NUM_DP_LANES);
+		DRM_WARN("Invalid property \"data-lanes\", default max DP lanes = %d\n",
+			 DP_MAX_NUM_DP_LANES);
 		len = DP_MAX_NUM_DP_LANES;
 	}
 
drivers/gpu/drm/msm/dsi/dsi_host.c +2 -0
index db5871b9c5d88..7e21916d1511a 100644
@@ -21,6 +21,8 @@
 
 #include <video/mipi_display.h>
 
+#include <drm/drm_of.h>
+
 #include "dsi.h"
 #include "dsi.xml.h"
 #include "sfpb.xml.h"
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Marek Vasut

Add missing header file into dsi_host.c and encode data-lanes string directly into the warning message in the driver to avoid build issues detected by lkp.

Fixes 185443efa26a ("drm/msm: Convert to drm_of_get_data_lanes_count")
Cc Abhinav Kumar <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Clark <[email protected]>
Cc Robert Foss <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Sean Paul <[email protected]>
Quoted 1 line

To: [email protected]

Regards
Andrzej

Quoted 33 lines
---
  drivers/gpu/drm/msm/dp/dp_parser.c | 4 ++--
  drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++
  2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_parser.c +2 -2
index 346556c5706d7..57ae14a0e1814 100644
@@ -106,8 +106,8 @@ static int dp_parser_misc(struct dp_parser *parser)
 
  	len = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES);
  	if (len < 0) {
-		DRM_WARN("Invalid property %s, default max DP lanes = %d\n",
-				data_lane_property, DP_MAX_NUM_DP_LANES);
+		DRM_WARN("Invalid property \"data-lanes\", default max DP lanes = %d\n",
+			 DP_MAX_NUM_DP_LANES);
  		len = DP_MAX_NUM_DP_LANES;
  	}
 
drivers/gpu/drm/msm/dsi/dsi_host.c +2 -0
index db5871b9c5d88..7e21916d1511a 100644
@@ -21,6 +21,8 @@
 
  #include <video/mipi_display.h>
 
+#include <drm/drm_of.h>
+
  #include "dsi.h"
  #include "dsi.xml.h"
  #include "sfpb.xml.h"
Reviewed-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 17 lines · Marek Vasut

Add missing header file into dsi_host.c and encode data-lanes string directly into the warning message in the driver to avoid build issues detected by lkp.

Fixes 185443efa26a ("drm/msm: Convert to drm_of_get_data_lanes_count")
Cc Abhinav Kumar <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Clark <[email protected]>
Cc Robert Foss <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Sean Paul <[email protected]>
Quoted 1 line

To: [email protected]

Quoted 33 lines
---
  drivers/gpu/drm/msm/dp/dp_parser.c | 4 ++--
  drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++
  2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_parser.c +2 -2
index 346556c5706d7..57ae14a0e1814 100644
@@ -106,8 +106,8 @@ static int dp_parser_misc(struct dp_parser *parser)
 
  	len = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES);
  	if (len < 0) {
-		DRM_WARN("Invalid property %s, default max DP lanes = %d\n",
-				data_lane_property, DP_MAX_NUM_DP_LANES);
+		DRM_WARN("Invalid property \"data-lanes\", default max DP lanes = %d\n",
+			 DP_MAX_NUM_DP_LANES);
  		len = DP_MAX_NUM_DP_LANES;
  	}
 
drivers/gpu/drm/msm/dsi/dsi_host.c +2 -0
index db5871b9c5d88..7e21916d1511a 100644
@@ -21,6 +21,8 @@
 
  #include <video/mipi_display.h>
 
+#include <drm/drm_of.h>
+
  #include "dsi.h"
  #include "dsi.xml.h"
  #include "sfpb.xml.h"