[PATCH] USB: Fix masking bug initialization of Freescale EHCI controller
authorKumar Gala <galak@kernel.crashing.org>
Tue, 24 Jan 2006 16:11:27 +0000 (08:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:49:57 +0000 (14:49 -0800)
In setting up the of PHY we masked off too many bits, instead just
initialize PORTSC for the type of PHY we are using.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-fsl.c

index 59f90f76ee31a9cacc8878dd0a8b82b6ec0de3a9..f985f121a2455fb2d369febeb40327f8cab9306e 100644 (file)
@@ -160,8 +160,7 @@ static void mpc83xx_setup_phy(struct ehci_hcd *ehci,
                              enum fsl_usb2_phy_modes phy_mode,
                              unsigned int port_offset)
 {
-       u32 portsc = readl(&ehci->regs->port_status[port_offset]);
-       portsc &= ~PORT_PTS_MSK;
+       u32 portsc = 0;
        switch (phy_mode) {
        case FSL_USB2_PHY_ULPI:
                portsc |= PORT_PTS_ULPI;