[PATCH v2 08/25] usb: ehci-pci: add Intel Penwell USB Host Power budget limitation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Intel Penwell USB Host only can provide 200mA via its OTG port.
so add power budget limitaition for power supply safety on OTG port.

Signed-off-by: Hao Wu <hao.wu@xxxxxxxxx>
---
 drivers/usb/host/ehci-pci.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index c421608..c8b5f2b 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -103,6 +103,11 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
 			hcd->has_tt = 1;
 			ehci->has_hostpc = 1;
 			force_otg_hc_mode = 1;
+
+			/* For Penwell, Power budget limit is 200mA */
+			if (pdev->device == 0x0829)
+				hcd->power_budget = 200;
+
 			hcd->has_sram = 1;
 			hcd->sram_no_payload = 1;
 			sram_init(hcd);
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux