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

Mai, Leonard leonard.mai at intel.com
Sun Oct 3 19:11:31 PDT 2010


>From b1a590284f8eba04acf75f2c6db3c36289bf356f Mon Sep 17 00:00:00 2001
From: Hao Wu <hao.wu at intel.com>
Date: Thu, 30 Sep 2010 13:45:55 +0100
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>
Signed-off-by: Alan Cox <alan at linux.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.6.0.3

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20101003/5c044ec1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-usb-ehci-add-power-budget-limitation-for-penwell.patch
Type: application/octet-stream
Size: 990 bytes
Desc: 0004-usb-ehci-add-power-budget-limitation-for-penwell.patch
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20101003/5c044ec1/attachment-0001.obj>


More information about the Meego-kernel mailing list