summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/host.c
diff options
context:
space:
mode:
authorAlexander Shishkin2012-05-11 16:25:55 +0200
committerGreg Kroah-Hartman2012-05-12 01:59:35 +0200
commitbd841986e4e1fe60fe97da45be5139f173c5188e (patch)
tree4fb3a19474eedd0c6775520a1f180171bafd228e /drivers/usb/chipidea/host.c
parentusb: chipidea: add host role (diff)
downloadkernel-qcow2-linux-bd841986e4e1fe60fe97da45be5139f173c5188e.tar.gz
kernel-qcow2-linux-bd841986e4e1fe60fe97da45be5139f173c5188e.tar.xz
kernel-qcow2-linux-bd841986e4e1fe60fe97da45be5139f173c5188e.zip
usb: chipidea: add power_budget limit for ehci to platform data
Some implementations need this limitation to work correctly. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/host.c')
-rw-r--r--drivers/usb/chipidea/host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c
index 8c8362c89a8c..0cffcfe5ce53 100644
--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -116,6 +116,8 @@ static int host_start(struct ci13xxx *ci)
hcd->regs = ci->hw_bank.abs;
hcd->has_tt = 1;
+ hcd->power_budget = ci->udc_driver->power_budget;
+
ehci = hcd_to_ehci(hcd);
ehci->caps = ci->hw_bank.cap;
ehci->has_hostpc = ci->hw_bank.lpm;