]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: add retry for get scalar status
authorAceLan Kao <acelan.kao@canonical.com>
Wed, 8 Jan 2020 07:59:45 +0000 (15:59 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 28 Jan 2020 21:50:10 +0000 (16:50 -0500)
commitc19a1ecb70b1fed81fd82fc5e6b2fa8bf7eff8f3
treef5a35a8f049dba49e4b1ea2507e8a3e316045b9b
parent0ed223e8d924c106e68870fb939084b97a7b7b4c
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: add retry for get scalar status

BugLink: https://bugs.launchpad.net/bugs/1858761
Found on new platforms that UART require more than 1 second to respond
commands in the first 10 seconds after booted.
dell_uart_get_scalar_status() is the first command we send to scalar and
this command should be more reliable than other commands, and make sure
we got correct response from scalar. So, add retry and increase the read
timeout to 2 seconds.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/platform/x86/dell-uart-backlight.c