patch to latest usbhost patch
[kernel-power] / usbhost / usb / musb / musb_virthub.c
index 7e7900f..770937f 100644 (file)
@@ -46,7 +46,7 @@
 #include "musb_core.h"
 
 
-static void musb_port_suspend(struct musb *musb, bool do_suspend)
+void musb_port_suspend(struct musb *musb, bool do_suspend)
 {
        u8              power;
        void __iomem    *mbase = musb->mregs;
@@ -106,11 +106,13 @@ static void musb_port_suspend(struct musb *musb, bool do_suspend)
 
                /* later, GetPortStatus will stop RESUME signaling */
                musb->port1_status |= MUSB_PORT_STAT_RESUME;
-               musb->rh_timer = jiffies + msecs_to_jiffies(20);
+               /*OMAP documentation states range of 10-15 ms */
+               musb->rh_timer = jiffies + msecs_to_jiffies(13);
+               //              musb->rh_timer = jiffies + msecs_to_jiffies(20);
        }
 }
 
-static void musb_port_reset(struct musb *musb, bool do_reset)
+void musb_port_reset(struct musb *musb, bool do_reset)
 {
        u8              power;
        void __iomem    *mbase = musb->mregs;
@@ -131,7 +133,7 @@ static void musb_port_reset(struct musb *musb, bool do_reset)
         */
        power = musb_readb(mbase, MUSB_POWER);
        if (do_reset) {
-
+               DBG(4, "root port reset started\n");
                /*
                 * If RESUME is set, we must make sure it stays minimum 20 ms.
                 * Then we must clear RESUME and wait a bit to let musb start