media: ddbridge: stv09xx: detach frontends on lnb failure
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 11 Dec 2017 20:12:49 +0000 (15:12 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 17:18:38 +0000 (12:18 -0500)
commit78e41c16c0b5d47415f01ead3a3730d5b9a6a52c
treeab984f77235c57bde7ea5525a446b205e21eb6cc
parent8ff230fb4f48816cd18a558a0d26f580178a26df
media: ddbridge: stv09xx: detach frontends on lnb failure

While the failure handling in dvb_input_attach() has been improved lately
so any tuner failure won't result in demod driver modules with a
usecount > 0 anymore (thus requiring rmmod -f), there's still an issue
with stv090x and stv0910 based tuner modules, in that LNB driver attach
failures leave an attached demod frontend driver behind which have a
usecount of > 0 in this failure case, due to them not being detached/
released. Fix this by detaching the demod frontends if the LNB driver
fails.

Richard tested and verified the changes with STV0910 hardware, thus adding
his Tested-by.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <rascobie@slingshot.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c