[media] si2168: avoid firmware loading if it has been loaded previously
authorOlli Salonen <olli.salonen@iki.fi>
Mon, 25 Aug 2014 18:07:04 +0000 (15:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 19:42:39 +0000 (16:42 -0300)
commit8e417224dfb397633601a04214841df12cd470b0
tree02b242ed48aaea26bf100fa4766368439d856c9e
parent4cbf6ed910c88d7f6c15304f9a5a3ed86290dc06
[media] si2168: avoid firmware loading if it has been loaded previously

Add a variable to keep track if firmware is loaded or not and skip parts of the
initialization if fw is already loaded. Resume from sleep with a different
command compared to initial power up and run command 85 after resume command.
This behaviour is observed when using manufacturer provided binary-only si2168
driver for TechnoTrend CT2-4400.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/si2168.c
drivers/media/dvb-frontends/si2168_priv.h