diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-12-06 11:10:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:34:55 -0500 |
commit | caf29f62655e7aa57996821535d11fa3b0537b6b (patch) | |
tree | 38cf8dadaa5f5e2d25ae237d18b45a4cdedd37ab /drivers/usb | |
parent | 07d29b63ef6b39963ab37818653284d861cf55af (diff) |
USB: dummy_hcd: change the default power budget
This patch (as1025) changes the default power budget for dummy-hcd to
500 mA and makes it a preprocessor parameter for easier testing.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 1a8a5f33443e..cbe44535c0f0 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -61,6 +61,8 @@ | |||
61 | #define DRIVER_DESC "USB Host+Gadget Emulator" | 61 | #define DRIVER_DESC "USB Host+Gadget Emulator" |
62 | #define DRIVER_VERSION "02 May 2005" | 62 | #define DRIVER_VERSION "02 May 2005" |
63 | 63 | ||
64 | #define POWER_BUDGET 500 /* in mA; use 8 for low-power port testing */ | ||
65 | |||
64 | static const char driver_name [] = "dummy_hcd"; | 66 | static const char driver_name [] = "dummy_hcd"; |
65 | static const char driver_desc [] = "USB Host+Gadget Emulator"; | 67 | static const char driver_desc [] = "USB Host+Gadget Emulator"; |
66 | 68 | ||
@@ -1810,8 +1812,7 @@ static int dummy_start (struct usb_hcd *hcd) | |||
1810 | 1812 | ||
1811 | INIT_LIST_HEAD (&dum->urbp_list); | 1813 | INIT_LIST_HEAD (&dum->urbp_list); |
1812 | 1814 | ||
1813 | /* only show a low-power port: just 8mA */ | 1815 | hcd->power_budget = POWER_BUDGET; |
1814 | hcd->power_budget = 8; | ||
1815 | hcd->state = HC_STATE_RUNNING; | 1816 | hcd->state = HC_STATE_RUNNING; |
1816 | hcd->uses_new_polling = 1; | 1817 | hcd->uses_new_polling = 1; |
1817 | 1818 | ||