]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: increase retry times
authorAceLan Kao <acelan.kao@canonical.com>
Wed, 12 Feb 2020 06:53:15 +0000 (14:53 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:50 +0000 (08:03 +0200)
commit9db7b311a8c23199687fce9f107e55b06a79cd26
treef3e5de7b1f5abbe431e008ad11af709b65231edc
parenteadc64f88a8b6ee441b8e827f0abf541a60c6c92
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: increase retry times

BugLink: https://bugs.launchpad.net/bugs/1862885
From ODM, scalar takes some time to activate panel during booting up,
it can't respond the UART commands within 1 seconds.
So, we add retry and wait 2 seconds for the response. But sometimes it
still fails to read the response.
During the boot up time, it sometimes takes more than 2 seconds to respond
the first command, so we enlarge the retry timeout from 2 seconds to 5
seconds to make sure we get the first response from scalar.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Acked-By: You-Sheng Yang <vicamo.yang@canonical.com>
Acked-by: Anthony Wong <anthony.wong@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/platform/x86/dell/dell-uart-backlight.c