rx51: do not limit maximum allowed power for usb devices
authorPaul Fertser <fercerpav@gmail.com>
Sat, 30 Oct 2010 06:42:12 +0000 (10:42 +0400)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 30 Oct 2010 06:42:12 +0000 (10:42 +0400)
The power can actually be supplied via an external line and though there's
nothing like that in the OTG/whatever specs, this scenario is reasonably
useful in the real life. So the limit should be leveraged.

arch/arm/mach-omap2/usb-musb.c

index 4c3b655..7619e80 100644 (file)
@@ -141,10 +141,13 @@ static struct musb_hdrc_platform_data musb_plat = {
        .config         = &musb_config,
 
        /* REVISIT charge pump on TWL4030 can supply up to
-        * 100 mA ... but this value is board-specific, like
+        * 200 mA ... but this value is board-specific, like
         * "mode", and should be passed to usb_musb_init().
+        *
+        * Since the power can come from a Y-cable, let the user
+        * decide on power constraints and not limit anything here.
         */
-       .power          = 50,                   /* up to 100 mA */
+       .power          = 0,                    /* use default of 500 mA */
 };
 
 static u64 musb_dmamask = DMA_32BIT_MASK;