]> git.sur5r.net Git - u-boot/commit
usb: Clear CMD_RUN while issuing CMD_RESET in ehci_reset()
authorStefan Roese <sr@denx.de>
Fri, 26 Nov 2010 14:44:00 +0000 (15:44 +0100)
committerRemy Bohmer <linux@bohmer.net>
Fri, 26 Nov 2010 20:23:25 +0000 (21:23 +0100)
commit273d72044c383cc49ae7a8a70b2fc32c18b00a41
treecacbf13b6388b494c399078617855645d9243820
parent67333f76b683cb19762c60f180a4e9c592064fc1
usb: Clear CMD_RUN while issuing CMD_RESET in ehci_reset()

This patch fixes a problem noticed on lwmon5 (PPC440EPx) using the
common EHCI driver, when "usb reset" is issued multiple times.
Upon the 2nd (and further) "usb reset" command, the command fails
with the following messages:

=> usb reset
(Re)start USB...
USB:   Register 1111 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 5 USB Device(s) found
       scanning bus for storage devices... 2 Storage Device(s) found
=> usb reset
(Re)start USB...
USB:   EHCI fail to reset
Error, couldn't init Lowlevel part

This patch fixes this problem. Now "usb reset" can be called multiple
times.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
drivers/usb/host/ehci-hcd.c