From david-b@pacbell.net Wed Aug 31 17:28:21 2005 From: David Brownell Subject: USB: OHCI, pxa27x OHCI port power tweaks Date: Wed, 31 Aug 2005 11:54:09 -0700 Cc: Greg KH Message-Id: <200508311154.09536.david-b@pacbell.net> Now that it's in use on other boards, a bug in the original code needs fixing. There is no need for the PXA27x OHCI to set usb power during init, since the hub driver in usbcore handles that. Those platform-specific power control functions are also incorrect, and should therefore be removed. Add a check to clear the OTG pin hold bit until such times OTG is properly implemented. Signed-Off-By: Richard Purdie Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/ohci-pxa27x.c | 45 ++++++----------------------------------- 1 file changed, 7 insertions(+), 38 deletions(-) --- gregkh-2.6.orig/drivers/usb/host/ohci-pxa27x.c 2005-09-12 11:02:02.000000000 -0700 +++ gregkh-2.6/drivers/usb/host/ohci-pxa27x.c 2005-09-12 11:02:03.000000000 -0700 @@ -75,33 +75,6 @@ static int pxa27x_ohci_select_pmm( int m return 0; } -/* - If you select PMM_PERPORT_MODE, you should set the port power - */ -static int pxa27x_ohci_set_port_power( int port ) -{ - if ( (pxa27x_ohci_pmm_state==PMM_PERPORT_MODE) - && (port>0) && (port0) && (port