提交 ae7b4d4b 编写于 作者: J Jarod Wilson 提交者: Mauro Carvalho Chehab

[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: NStephan Raue <sraue@openelec.tv>
CC: Juan Jesús García de Soria <skandalfo@gmail.com>
Signed-off-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 76a2d21d
...@@ -1684,6 +1684,8 @@ static int ite_resume(struct pnp_dev *pdev) ...@@ -1684,6 +1684,8 @@ static int ite_resume(struct pnp_dev *pdev)
/* wake up the transmitter */ /* wake up the transmitter */
wake_up_interruptible(&dev->tx_queue); wake_up_interruptible(&dev->tx_queue);
} else { } else {
/* reinitialize hardware config registers */
dev->params.init_hardware(dev);
/* enable the receiver */ /* enable the receiver */
dev->params.enable_rx(dev); dev->params.enable_rx(dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册