Skip to content

Commit 7db8b84

Browse files
Aradhya BhatiaSasha Levin
authored andcommitted
drm/bridge: cdns-dsi: Check return value when getting default PHY config
commit c6a7ef0 upstream. Check for the return value of the phy_mipi_dphy_get_default_config() call, and in case of an error, return back the same. Fixes: fced5a3 ("drm/bridge: cdns: Convert to phy framework") Cc: [email protected] Reviewed-by: Tomi Valkeinen <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0a874dc commit 7db8b84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/gpu/drm/bridge/cdns-dsi.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,11 @@ static int cdns_dsi_check_conf(struct cdns_dsi *dsi,
616616
if (ret)
617617
return ret;
618618

619-
phy_mipi_dphy_get_default_config(mode_clock * 1000,
620-
mipi_dsi_pixel_format_to_bpp(output->dev->format),
621-
nlanes, phy_cfg);
619+
ret = phy_mipi_dphy_get_default_config(mode_clock * 1000,
620+
mipi_dsi_pixel_format_to_bpp(output->dev->format),
621+
nlanes, phy_cfg);
622+
if (ret)
623+
return ret;
622624

623625
ret = cdns_dsi_adjust_phy_config(dsi, dsi_cfg, phy_cfg, mode, mode_valid_check);
624626
if (ret)

0 commit comments

Comments
 (0)