]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cxd2820r: do not allow get_frontend() when demod is not initialized
authorAntti Palosaari <crope@iki.fi>
Sun, 15 Jan 2012 21:30:36 +0000 (18:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Jan 2012 14:55:47 +0000 (12:55 -0200)
commite011c4dcdb1df2f206b70697e3a7ac8024352c28
tree05869bf6676761d97f0d6f698b0695dab0a4ac00
parent4b7bf38da75cbd619614a2725300dbea8fc0ee57
[media] cxd2820r: do not allow get_frontend() when demod is not initialized

This fixes bug introduced by multi-frontend to single-frontend change.

Finally HAS_LOCK is got back!
We are not allowed to access hardware in sleep mode...
Chip did not like when .get_frontend() reads some registers while
chip was sleeping and due to that HAS_LOCK bit was never gained.

TODO: We should add logic for dvb-core to drop out illegal calls like that.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cxd2820r_core.c