[media] tm6000: Execute lightweight reset on close
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 4 Aug 2011 07:14:13 +0000 (04:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Aug 2011 20:21:23 +0000 (17:21 -0300)
commitdd0c8abf2ac853dad9a360f5e9d3d1cb5e5f7621
tree616d21ad6e4b85e9692f3875dc8144711f94687b
parent88e834a841bde22b4c0aa71809e02c118c5b219d
[media] tm6000: Execute lightweight reset on close

When the last user closes the device, perform a lightweight reset of the
device to bring it into a well-known state.

Note that this is not always enough with the TM6010, which sometimes
needs a hard reset to get into a working state again.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-core.c
drivers/staging/tm6000/tm6000-video.c
drivers/staging/tm6000/tm6000.h