Skip to contentSkip to conversation

drm/msm/dsi: fix msm_dsi_phy_get_clk_provider return code

PATCH In review Dmitry Baryshkov 3 participants 4 messages Apr 12, 2021 – Apr 23, 2021

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

PATCH 1/1 drm/msm/dsi: fix msm_dsi_phy_get_clk_provider return code

msm_dsi_phy_get_clk_provider() always returns two provided clocks, so return 0 instead of returning incorrect -EINVAL error code.

Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")
---
 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
index f0a2ddf96a4b..ff7f2ec42030 100644
@@ -843,7 +843,7 @@ int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy,
 	if (pixel_clk_provider)
 		*pixel_clk_provider = phy->provided_clocks->hws[DSI_PIXEL_PLL_CLK]->clk;
 
-	return -EINVAL;
+	return 0;
 }
 
 void msm_dsi_phy_pll_save_state(struct msm_dsi_phy *phy)
Signature · 1 line
2.30.2
#1 lore raw

Hi

Quoted 5 lines · Dmitry Baryshkov

msm_dsi_phy_get_clk_provider() always returns two provided clocks, so return 0 instead of returning incorrect -EINVAL error code.

Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")

I wanted to ping/remind regarding this patch and regarding https://lore.kernel.org/linux-arm-msm/[email protected]/

It would be great to get those two fixes in linux-next or early during 5.14 cycle.

Quoted 18 lines
---
  drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
index f0a2ddf96a4b..ff7f2ec42030 100644
@@ -843,7 +843,7 @@ int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy,
  	if (pixel_clk_provider)
  		*pixel_clk_provider = phy->provided_clocks->hws[DSI_PIXEL_PLL_CLK]->clk;
 
-	return -EINVAL;
+	return 0;
  }
 
  void msm_dsi_phy_pll_save_state(struct msm_dsi_phy *phy)
Signature · 6 lines
With best wishes
Dmitry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Dmitry Baryshkov
Quoted 6 lines · Dmitry Baryshkov

msm_dsi_phy_get_clk_provider() always returns two provided clocks, so return 0 instead of returning incorrect -EINVAL error code.

Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into

a generic code")

Quoted 20 lines
---
 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
index f0a2ddf96a4b..ff7f2ec42030 100644
@@ -843,7 +843,7 @@ int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy 
 *phy,
 	if (pixel_clk_provider)
 		*pixel_clk_provider = 
 phy->provided_clocks->hws[DSI_PIXEL_PLL_CLK]->clk;
 
-	return -EINVAL;
+	return 0;
 }

void msm_dsi_phy_pll_save_state(struct msm_dsi_phy *phy)

Tested-by on v1 1/1
#3 lore raw
In reply to Dmitry Baryshkov
Quoted 15 lines · Dmitry Baryshkov

msm_dsi_phy_get_clk_provider() always returns two provided clocks, so return 0 instead of returning incorrect -EINVAL error code.

Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")
---
  drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +0 -0
index f0a2ddf96a4b..ff7f2ec42030 100644

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy, · line 849

Quoted 8 lines
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
@@ -843,7 +843,7 @@ int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy,
  	if (pixel_clk_provider)
  		*pixel_clk_provider = phy->provided_clocks->hws[DSI_PIXEL_PLL_CLK]->clk;
 
-	return -EINVAL;
+	return 0;
  }
 
  void msm_dsi_phy_pll_save_state(struct msm_dsi_phy *phy)

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel