media: ir_toy: prevent device from hanging during transmit
authorSean Young <sean@mess.org>
Tue, 14 Sep 2021 14:57:46 +0000 (16:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Sep 2021 09:19:37 +0000 (11:19 +0200)
commitf0c15b360fb65ee39849afe987c16eb3d0175d0d
tree70934efe6d98aaf5bbc742e618905101e2065d4c
parent3ad02c27d89d72b3b49ac51899144b7d0942f05f
media: ir_toy: prevent device from hanging during transmit

If the IR Toy is receiving IR while a transmit is done, it may end up
hanging. We can prevent this from happening by re-entering sample mode
just before issuing the transmit command.

Link: https://github.com/bengtmartensson/HarcHardware/discussions/25
Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/ir_toy.c