diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2024-02-15 09:53:16 +0100 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2024-02-19 14:49:51 +0000 |
commit | e14cba94bc19ff78545d87a6f85b871cf012df3f (patch) | |
tree | 52f76f85d3308fe658ff94e3b36131a78a97dda0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2aa9514adf4faa07019d2de1ca042954cdd70b42 (diff) |
drm/mediatek: dsi: Use mipi_dsi_pixel_format_to_bpp() helper function
Instead of open coding, use the mipi_dsi_pixel_format_to_bpp() helper
function from drm_mipi_dsi.h in mtk_dsi_poweron() and for validation
in mtk_dsi_bridge_mode_valid().
Note that this function changes the behavior of this driver: previously,
in case of unknown formats, it would (wrongly) assume that it should
account for a 24-bits format - now it will return an error and refuse
to set clocks and/or enable the DSI.
This is done because setting the wrong data rate will only produce a
garbage output that the display will misinterpret both because this
driver doesn't actually provide any extra-spec format support and/or
because the data rate (hence, the HS clock) will be wrong.
Reviewed-by: Alexandre Mergnat <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions