From: Zhao Qiang Date: Fri, 14 Mar 2014 17:10:04 +0800 Subject: [U-Boot] [PATCH] p1010rdb-pb/usb: remove re-power on for p1010rdb-pb Message-ID: <1394788204-4422-1-git-send-email-B45475@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de usb hub for p1010rdb-pb is not needed to re-power on when init it. Signed-off-by: Zhao Qiang --- common/usb_hub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/usb_hub.c b/common/usb_hub.c index ffac0e7..edb1fc0 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -90,12 +90,15 @@ static void usb_hub_power_on(struct usb_hub_device *hub) int i; struct usb_device *dev; unsigned pgood_delay = hub->desc.bPwrOn2PwrGood * 2; +#ifndef CONFIG_P1010RDB_PB ALLOC_CACHE_ALIGN_BUFFER(struct usb_port_status, portsts, 1); unsigned short portstatus; int ret; +#endif dev = hub->pusb_dev; +#ifndef CONFIG_P1010RDB_PB /* * Enable power to the ports: * Here we Power-cycle the ports: aka, @@ -132,6 +135,7 @@ static void usb_hub_power_on(struct usb_hub_device *hub) continue; } } +#endif for (i = 0; i < dev->maxchild; i++) { usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_POWER); -- 1.8.5