[Meego-kernel] [PATCH v2 5/10] usb: ehci: add power budget limitation for penwell

Wu, Hao hao.wu
Tue Sep 28 09:56:34 PDT 2010


>From 6dc0a0a60c8b25b7a67ffaf401061023dee85c97 Mon Sep 17 00:00:00 2001
From: Hao Wu <hao.wu at intel.com>
Date: Tue, 28 Sep 2010 19:27:13 +0800
Subject: [PATCH] usb: ehci: add power budget limitation for penwell

Add power budget limitation for penwell in USB EHCI
driver for power supply safety on usb port.

Signed-off-by: Hao Wu <hao.wu at intel.com>
---
 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 2c93c88..6877239 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -106,6 +106,11 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
 			ehci->has_otg = 1;
 #endif
 			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.5.5

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-usb-ehci-add-power-budget-limitation-for-penwell.patch
Type: application/octet-stream
Size: 941 bytes
Desc: 0005-usb-ehci-add-power-budget-limitation-for-penwell.patch
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20100929/59689279/attachment.obj>




More information about the Meego-kernel mailing list