Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87210 Details for
Bug 132721
USB flash drive not working with hub
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
usb-power-lack.patch (text/plain), 1.16 KB, created by
Daniel Drake (RETIRED)
on 2006-05-21 13:41:54 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2006-05-21 13:41:54 UTC
Size:
1.16 KB
patch
obsolete
>Index: linux/drivers/usb/core/hub.c >=================================================================== >--- linux.orig/drivers/usb/core/hub.c >+++ linux/drivers/usb/core/hub.c >@@ -1171,6 +1171,7 @@ static int choose_configuration(struct u > u16 devstatus; > int bus_powered; > int num_configs; >+ int insufficient_power = 0; > struct usb_host_config *c, *best; > > /* If this fails, assume the device is bus-powered */ >@@ -1218,8 +1219,10 @@ static int choose_configuration(struct u > */ > > /* 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; >+ } > > /* If the first config's first interface is COMM/2/0xff > * (MSFT RNDIS), rule it out unless Linux has host-side >@@ -1263,6 +1266,10 @@ static int choose_configuration(struct u > dev_warn(&udev->dev, > "no configuration chosen from %d choice%s\n", > num_configs, plural(num_configs)); >+ if (insufficient_power > 0) >+ dev_info(&udev->dev, "%d configuration%s rejected " >+ "due to insufficient available bus power\n", >+ insufficient_power, plural(insufficient_power)); > } > return i; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 132721
: 87210