Title: [9047] trunk/drivers/usb/musb/blackfin.c: Add host mode hibernate support.
- Revision
- 9047
- Author
- lliubbo
- Date
- 2010-08-04 07:02:52 -0400 (Wed, 04 Aug 2010)
Log Message
Add host mode hibernate support.
During hibernate gpio_vrsel will change from high to low which
will generate wakeup event resume the system immediately.
Set it to 0 before hibernate to avoid this wakeup event, so the
system can hibernate correctly.
Modified Paths
Diff
Modified: trunk/drivers/usb/musb/blackfin.c (9046 => 9047)
--- trunk/drivers/usb/musb/blackfin.c 2010-08-04 10:43:27 UTC (rev 9046)
+++ trunk/drivers/usb/musb/blackfin.c 2010-08-04 11:02:52 UTC (rev 9047)
@@ -401,6 +401,13 @@
void musb_platform_save_context(struct musb *musb,
struct musb_context_registers *musb_context)
{
+ if (is_host_active(musb))
+ /*
+ * During hibernate gpio_vrsel will change from high to low which
+ * will generate wakeup event resume the system immediately.
+ * Set it to 0 before hibernate to avoid this wakeup event.
+ */
+ gpio_set_value(musb->config->gpio_vrsel, 0);
}
void musb_platform_restore_context(struct musb *musb,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits