OSDN Git Service

[media] tda10071: change firmware download condition
authorAndreas Matthies <a.matthies@gmx.net>
Mon, 30 Sep 2013 16:08:16 +0000 (13:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 2 Oct 2013 09:48:14 +0000 (06:48 -0300)
commit6894c070e1f23492239a2e5d6777cb1451620bda
treeda23810ed2d4d471a2badda4e4a99698d8686935
parentf5ca8c24eca0c01e2794669c4460eb3e5ee5fd7e
[media] tda10071: change firmware download condition

Reading firmware status register to detect whether firmware is
running or not didn't work 100% reliably. That register was
likely set by firmware itself which means it could not contain
reasonable values until firmware is up and running. Usually it
just worked as some garbage value was returned accidentally but it
appears that in some cases returned garbage value was 0x00 which
was considered "firmware is up and running" by the driver and
firmware loading was skipped leaving device to non-working state.
Fix problem by removing unreliable check and let the driver keep
count whether firmware is loaded or not.

Signed-off-by: Andreas Matthies <a.matthies@gmx.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/tda10071.c