media: smipcie: fix interrupt handling and IR timeout
authorSean Young <sean@mess.org>
Fri, 29 Jan 2021 10:54:53 +0000 (11:54 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 5 Feb 2021 22:41:25 +0000 (23:41 +0100)
commit6532923237b427ed30cc7b4486f6f1ccdee3c647
treec57eff35b8af9ac879766e0c4bd7dac9a7a77996
parent2e74a01fb073900c8cc5df6b5e4bcbf575ac6c26
media: smipcie: fix interrupt handling and IR timeout

After the first IR message, interrupts are no longer received. In addition,
the code generates a timeout IR message of 10ms but sets the timeout value
to 100ms, so no timeout was ever generated.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=204317
Fixes: a49a7a4635de ("media: smipcie: add universal ir capability")
Tested-by: Laz Lev <lazlev@web.de>
Cc: stable@vger.kernel.org # v5.1+
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/smipcie/smipcie-ir.c