[media] au0828: be sure to reenable the bridge and GPIOs on resume
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 00:47:12 +0000 (21:47 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:07 +0000 (15:25 -0500)
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>
drivers/media/usb/au0828/au0828-core.c

index 3a02de142f9f8f21408f35b5f5ec2f1395d3e5c1..87340a8af7d7a6c44024720fd972e613c73531d2 100644 (file)
@@ -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 */