phy: amlogic: G12A: Fix misuse of GENMASK macro
authorJoe Perches <joe@perches.com>
Wed, 10 Jul 2019 05:04:23 +0000 (22:04 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 20 Mar 2020 14:04:29 +0000 (19:34 +0530)
Arguments are supposed to be ordered high then low.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/amlogic/phy-meson-g12a-usb2.c

index 9065ffc..cd7ecca 100644 (file)
@@ -66,7 +66,7 @@
 #define PHY_CTRL_R14                                           0x38
        #define PHY_CTRL_R14_I_RDP_EN                           BIT(0)
        #define PHY_CTRL_R14_I_RPU_SW1_EN                       BIT(1)
-       #define PHY_CTRL_R14_I_RPU_SW2_EN                       GENMASK(2, 3)
+       #define PHY_CTRL_R14_I_RPU_SW2_EN                       GENMASK(3, 2)
        #define PHY_CTRL_R14_PG_RSTN                            BIT(4)
        #define PHY_CTRL_R14_I_C2L_DATA_16_8                    BIT(5)
        #define PHY_CTRL_R14_I_C2L_ASSERT_SINGLE_EN_ZERO        BIT(6)