diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-05-09 10:48:33 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 14:57:22 -0400 |
commit | ae7b4d4bb5d6769ba64cdfca9d8e77dd4e671f6d (patch) | |
tree | 2d84f820d2b002b068567900619d40e6168bdf24 /drivers/media | |
parent | 76a2d21d96fba4d0e94cf191eb3716ea7c4916e8 (diff) |
[media] ite-cir: make IR receive work after resume
Just recently acquired an Asus Eee Box PC with an onboard IR receiver
driven by ite-cir (ITE8713 sub-variant). Works out of the box with the
ite-cir driver in 2.6.39, but stops working after a suspend/resume
cycle. Its fixed by simply reinitializing registers after resume,
similar to what's done in the nuvoton-cir driver. I've not tested with
any other ITE variant, but code inspection suggests this should be safe
on all variants.
Reported-by: Stephan Raue <sraue@openelec.tv>
CC: Juan Jesús García de Soria <skandalfo@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ite-cir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 43908a70bd8b..253837e5183c 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c | |||
@@ -1684,6 +1684,8 @@ static int ite_resume(struct pnp_dev *pdev) | |||
1684 | /* wake up the transmitter */ | 1684 | /* wake up the transmitter */ |
1685 | wake_up_interruptible(&dev->tx_queue); | 1685 | wake_up_interruptible(&dev->tx_queue); |
1686 | } else { | 1686 | } else { |
1687 | /* reinitialize hardware config registers */ | ||
1688 | dev->params.init_hardware(dev); | ||
1687 | /* enable the receiver */ | 1689 | /* enable the receiver */ |
1688 | dev->params.enable_rx(dev); | 1690 | dev->params.enable_rx(dev); |
1689 | } | 1691 | } |