usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 2 Apr 2015 11:22:34 +0000 (20:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 17:03:15 +0000 (19:03 +0200)
According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
bit location is bit 8, not bits 9 and 8. So, this patch fixes the
USBHS_UGSTS_LOCK value.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-rcar-gen2-usb.c

index f83808413ba2296ccda2587bf719cf6ce0219dd5..f81800b6562a46a866407897a2b8b4753e56e133 100644 (file)
@@ -47,7 +47,7 @@ struct rcar_gen2_usb_phy_priv {
 
 /* USB General status register */
 #define USBHS_UGSTS_REG                        0x88
-#define USBHS_UGSTS_LOCK               (3 << 8)
+#define USBHS_UGSTS_LOCK               (1 << 8)
 
 /* Enable USBHS internal phy */
 static int __rcar_gen2_usbhs_phy_enable(void __iomem *base)