summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-10 02:47:12 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-21 22:25:07 +0200
commitfa500461db5af83fce7b1bd45e4925efadbebd90 (patch)
tree6f49f4508a668f6258eadd841927c5f7685eab2b /drivers/media/usb/au0828
parent[media] au0828: don't let the IR polling thread to run at suspend (diff)
downloadlinux-fa500461db5af83fce7b1bd45e4925efadbebd90.tar.xz
linux-fa500461db5af83fce7b1bd45e4925efadbebd90.zip
[media] au0828: be sure to reenable the bridge and GPIOs on resume
At resume, we should restore the register contents. So, reenable the bridge and GPIO settings. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/au0828')
-rw-r--r--drivers/media/usb/au0828/au0828-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c
index 3a02de142f9f..87340a8af7d7 100644
--- a/drivers/media/usb/au0828/au0828-core.c
+++ b/drivers/media/usb/au0828/au0828-core.c
@@ -302,6 +302,12 @@ static int au0828_resume(struct usb_interface *interface)
if (!dev)
return 0;
+ /* Power Up the bridge */
+ au0828_write(dev, REG_600, 1 << 4);
+
+ /* Bring up the GPIO's and supporting devices */
+ au0828_gpio_setup(dev);
+
au0828_rc_resume(dev);
/* FIXME: should resume also ATV/DTV */