drm/msm/dsi: fix msm_dsi_phy_get_clk_provider return code
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.
--- 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
@@ -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
Hi
Quoted 5 lines · Dmitry Baryshkov
msm_dsi_phy_get_clk_provider()always returns two provided clocks, so return 0 instead of returning incorrect-EINVALerror code.Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")Signed-off-by Dmitry Baryshkov <[email protected]>
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@@ -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
Quoted 6 lines · Dmitry Baryshkov
msm_dsi_phy_get_clk_provider()always returns two provided clocks, so return 0 instead of returning incorrect-EINVALerror code.Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling intoa generic code")
Signed-off-by Dmitry Baryshkov <[email protected]>
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@@ -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)
Quoted 15 lines · Dmitry Baryshkov
msm_dsi_phy_get_clk_provider()always returns two provided clocks, so return 0 instead of returning incorrect-EINVALerror code.Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")Signed-off-by Dmitry Baryshkov <[email protected]>--- 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
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