From: David Brownell Date: Wed, 31 Aug 2005 18:54:09 +0000 (-0700) Subject: [PATCH] USB: OHCI, pxa27x OHCI port power tweaks X-Git-Tag: v2.6.14-rc1~11^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=155faf5e1e36ca3a6127bdfb5c624d58e520c411;p=linux-2.6-omap-h63xx.git [PATCH] USB: OHCI, pxa27x OHCI port power tweaks 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 --- diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 5dd20dbe852..2fdb262d472 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c @@ -75,33 +75,6 @@ static int pxa27x_ohci_select_pmm( int mode ) 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