linux-stable/drivers/gpu/drm/bridge/adv7511
Adam Ford ee0285e134
drm/bridge: adv7533: Fix adv7533_mode_valid for adv7533 and adv7535
When dynamically switching lanes was removed, the intent of the code
was to check to make sure that higher speed items used 4 lanes, but
it had the unintended consequence of removing the slower speeds for
4-lane users.

This attempts to remedy this by doing a check to see that the
max frequency doesn't exceed the chip limit, and a second
check to make sure that the max bit-rate doesn't exceed the
number of lanes * max bit rate / lane.

Fixes: 9a0cdcd664 ("drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge")
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230319125524.58803-1-aford173@gmail.com
2023-03-20 10:57:22 +01:00
..
adv7511.h drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge 2022-10-13 10:38:09 +02:00
adv7511_audio.c drm: bridge: adv7511: Support I2S IEC958 encoded PCM format 2021-04-23 10:30:07 +02:00
adv7511_cec.c drm: bridge: adv7511: fix CEC power down control register offset 2022-07-07 12:57:25 +02:00
adv7511_drv.c drm/bridge: adv7511: Convert to i2c's .probe_new() 2022-12-12 17:17:42 +01:00
adv7533.c drm/bridge: adv7533: Fix adv7533_mode_valid for adv7533 and adv7535 2023-03-20 10:57:22 +01:00
Kconfig drm: Fix misspellings of "Analog Devices" 2020-04-21 08:15:03 +02:00
Makefile drm: bridge: adv7511: Remove DRM_I2C_ADV7533 Kconfig 2020-02-10 10:23:44 +01:00