rockchip_ebc: emergency fix: don't allow temperatures < 19

Early cancellation is broken for DU sequences with >29 phases and can
cause damages to the display.
This commit is contained in:
hrdl 2025-05-14 11:41:41 +02:00 committed by Antoine Martin
parent 52943b19e2
commit fa594ab9a7

View file

@ -1110,6 +1110,8 @@ static void rockchip_ebc_upd_temp(struct rockchip_ebc *ebc)
printk(KERN_INFO "rockchip-ebc: override temperature from %i to %i\n", temperature, temp_override);
temperature = temp_override;
}
// Early cancellation is broken right now for lower temperatures
temperature = max(temperature, 19);
ebc->temperature = temperature;
// TODO: figure out exclusivity/inclusivity and lowest and highest temperature range