Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge/synopsys: dsi: extend the prototype of mode_valid()

To evaluate the validity of a video mode, some additional internal
value has to be passed to the platform implementation.

Extend the prototype of mode_valid().

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211218215055.212421-2-antonio.borneo@foss.st.com

authored by

Antonio Borneo and committed by
Robert Foss
5f4f958a 22f99f2d

+7 -2
+4 -1
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
··· 998 998 enum drm_mode_status mode_status = MODE_OK; 999 999 1000 1000 if (pdata->mode_valid) 1001 - mode_status = pdata->mode_valid(pdata->priv_data, mode); 1001 + mode_status = pdata->mode_valid(pdata->priv_data, mode, 1002 + dsi->mode_flags, 1003 + dw_mipi_dsi_get_lanes(dsi), 1004 + dsi->format); 1002 1005 1003 1006 return mode_status; 1004 1007 }
+3 -1
include/drm/bridge/dw_mipi_dsi.h
··· 51 51 unsigned int max_data_lanes; 52 52 53 53 enum drm_mode_status (*mode_valid)(void *priv_data, 54 - const struct drm_display_mode *mode); 54 + const struct drm_display_mode *mode, 55 + unsigned long mode_flags, 56 + u32 lanes, u32 format); 55 57 56 58 const struct dw_mipi_dsi_phy_ops *phy_ops; 57 59 const struct dw_mipi_dsi_host_ops *host_ops;