linux_dsm_epyc7002/drivers/gpu/drm/bridge
Icenowy Zheng 2be30d34a3 drm/bridge: analogix-anx6345: fix set of link bandwidth
Current code tries to store the link rate (in bps, which is a big
number) in a u8, which surely overflow. Then it's converted back to
bandwidth code (which is thus 0) and written to the chip.

The code sometimes works because the chip will automatically fallback to
the lowest possible DP link rate (1.62Gbps) when get the invalid value.
However, on the eDP panel of Olimex TERES-I, which wants 2.7Gbps link,
it failed.

As we had already read the link bandwidth as bandwidth code in earlier
code (to check whether it is supported), use it when setting bandwidth,
instead of converting it to link rate and then converting back.

Fixes: e1cff82c10 ("drm/bridge: fix anx6345 compilation for v5.5")
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Torsten Duwe <duwe@suse.de>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Torsten Duwe <duwe@lst.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Icenowy Zheng <icenowy@aosc.io>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200221165127.813325-1-icenowy@aosc.io
2020-02-27 11:55:46 +01:00
..
adv7511 drm fixes for 5.4-rc1 2019-09-27 11:13:35 -07:00
analogix drm/bridge: analogix-anx6345: fix set of link bandwidth 2020-02-27 11:55:46 +01:00
synopsys drm: bridge: dw-hdmi: constify copied structure 2020-01-06 15:39:29 +01:00
cdns-dsi.c drm/bridge: cdns: remove set but not used variable 'nlanes' 2020-01-06 16:08:44 +01:00
dumb-vga-dac.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
Kconfig drm/bridge: Repurpose lvds-encoder.c 2019-12-18 12:26:07 +01:00
lvds-codec.c drm/bridge: lvds-codec: Simplify panel DT node localisation 2019-12-18 12:26:09 +01:00
Makefile drm/bridge: Repurpose lvds-encoder.c 2019-12-18 12:26:07 +01:00
megachips-stdpxxxx-ge-b850v3-fw.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
nxp-ptn3460.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
panel.c drm/bridge: panel: export drm_panel_bridge_connector 2019-12-10 17:19:40 +00:00
parade-ps8622.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
sii902x.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
sii9234.c gpu: drm: bridge: sii9234: convert to devm_i2c_new_dummy_device 2019-10-10 08:57:27 +02:00
sil-sii8620.c drm/bridge: sil_sii8620: make remote control optional. 2019-10-10 10:42:15 +02:00
sil-sii8620.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tc358764.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
tc358767.c Linux 5.6-rc1 2020-02-12 14:08:59 +01:00
thc63lvd1024.c R-Car DU changes for v5.3: 2019-06-11 10:08:49 +02:00
ti-sn65dsi86.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
ti-tfp410.c drm/bridge: ti-tfp410: Update drm_connector_init_with_ddc() error message 2020-02-10 10:20:37 +01:00