Commit e9018af0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] au0828: avoid race conditions at RC stop

As the RC kthread can re-enable IR int, we should first
cancel the kthread and then disable IR int.

While here, remove a temporary debug printk.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 2e0cc7ee
...@@ -253,10 +253,10 @@ static void au0828_rc_stop(struct rc_dev *rc) ...@@ -253,10 +253,10 @@ static void au0828_rc_stop(struct rc_dev *rc)
{ {
struct au0828_rc *ir = rc->priv; struct au0828_rc *ir = rc->priv;
cancel_delayed_work_sync(&ir->work);
/* Disable IR */ /* Disable IR */
au8522_rc_clear(ir, 0xe0, 1 << 4); au8522_rc_clear(ir, 0xe0, 1 << 4);
cancel_delayed_work_sync(&ir->work);
} }
static int au0828_probe_i2c_ir(struct au0828_dev *dev) static int au0828_probe_i2c_ir(struct au0828_dev *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment