]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: rc: ite-cir: fix min_timeout calculation
authorMatthias Reichl <hias@horus.com>
Sat, 9 Jan 2021 20:10:55 +0000 (21:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:28:38 +0000 (23:28 +0100)
commitce9e154a8bcb620a5e6affaf1d6815f5ee0207b3
tree27fd8d67f9e5871a071a069c3cc40001212aa8d2
parent8429fee291434b3519fa074a15fa979fc63dbee1
media: rc: ite-cir: fix min_timeout calculation

commit e1def45b5291278590bc3033cc518bf5c964a18d upstream.

Commit 528222d853f92 ("media: rc: harmonize infrared durations to
microseconds") missed to switch the min_timeout calculation from ns
to us. This resulted in a minimum timeout of 1.2 seconds instead of 1.2ms,
leading to large delays and long key repeats.

Fix this by applying proper ns->us conversion.

Cc: stable@vger.kernel.org
Fixes: 528222d853f92 ("media: rc: harmonize infrared durations to microseconds")
Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/ite-cir.c