mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2be30d34a3
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:
|
||
---|---|---|
.. | ||
adv7511 | ||
analogix | ||
synopsys | ||
cdns-dsi.c | ||
dumb-vga-dac.c | ||
Kconfig | ||
lvds-codec.c | ||
Makefile | ||
megachips-stdpxxxx-ge-b850v3-fw.c | ||
nxp-ptn3460.c | ||
panel.c | ||
parade-ps8622.c | ||
sii902x.c | ||
sii9234.c | ||
sil-sii8620.c | ||
sil-sii8620.h | ||
tc358764.c | ||
tc358767.c | ||
thc63lvd1024.c | ||
ti-sn65dsi86.c | ||
ti-tfp410.c |