View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#908
Patch to disable limits on power:
Code:
--- drivers/usb/core/generic.c	2008-12-25 01:26:37.000000000 +0200
+++ ../kernel-2.6.28.patched.working/drivers/usb/core/generic.c	2010-05-19 22:18:33.915723530 +0300
@@ -97,10 +97,10 @@
 		 */
 
 		/* Rule out configs that draw too much bus current */
-		if (c->desc.bMaxPower * 2 > udev->bus_mA) {
+		/*if (c->desc.bMaxPower * 2 > udev->bus_mA) {
 			insufficient_power++;
 			continue;
-		}
+		}*/
 
 		/* When the first config's first interface is one of Microsoft's
 		 * pet nonstandard Ethernet-over-USB protocols, ignore it unless
@@ -132,10 +132,10 @@
 			best = c;
 	}
 
-	if (insufficient_power > 0)
+	/*if (insufficient_power > 0)
 		dev_info(&udev->dev, "rejected %d configuration%s "
 			"due to insufficient available bus power\n",
-			insufficient_power, plural(insufficient_power));
+			insufficient_power, plural(insufficient_power));*/
 
 	if (best) {
 		i = best->desc.bConfigurationValue;
Patch for rx51_defconfig
Code:
--- arch/arm/configs/rx51_defconfig	2010-05-20 14:56:18.000000000 +0300
+++ ../kernel-2.6.28.patched.working/arch/arm/configs/rx51_defconfig	2010-05-20 15:01:24.068032001 +0300
@@ -1324,7 +1324,7 @@
 #
 # CONFIG_VGA_CONSOLE is not set
 CONFIG_DUMMY_CONSOLE=y
-# CONFIG_FRAMEBUFFER_CONSOLE is not set
+CONFIG_FRAMEBUFFER_CONSOLE=y
 # CONFIG_LOGO is not set
 CONFIG_SOUND=y
 # CONFIG_SOUND_OSS_CORE is not set
@@ -1413,8 +1413,6 @@
 CONFIG_USB_DYNAMIC_MINORS=y
 CONFIG_USB_SUSPEND=y
 CONFIG_USB_OTG=y
-CONFIG_USB_OTG_WHITELIST=y
-CONFIG_USB_OTG_BLACKLIST_HUB=y
 CONFIG_USB_MON=y
 # CONFIG_USB_WUSB is not set
 # CONFIG_USB_WUSB_CBAF is not set
.config file has to be changed (use one attached)
Build with make bzImage.
Attached Files
File Type: gz config.gz (12.0 KB, 263 views)
 

The Following 11 Users Say Thank You to MohammadAG For This Useful Post: