]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: gpio-ir-tx: improve precision of transmitted signal due to scheduling
authorSean Young <sean@mess.org>
Sat, 2 May 2020 12:50:52 +0000 (14:50 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 16 Sep 2020 09:15:01 +0000 (05:15 -0400)
commit20e3c87e7b5ffcf257e5053280aec4b1e66a0f5b
tree38d9b7833a5bfb2a56782977a187c67f6c2aa091
parentce45b0a7af953d49a4ce50ac95f0395155e02f9e
media: gpio-ir-tx: improve precision of transmitted signal due to scheduling

BugLink: https://bugs.launchpad.net/bugs/1895174
[ Upstream commit ea8912b788f8144e7d32ee61e5ccba45424bef83 ]

usleep_range() may take longer than the max argument due to scheduling,
especially under load. This is causing random errors in the transmitted
IR. Remove the usleep_range() in favour of busy-looping with udelay().

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/rc/gpio-ir-tx.c