net: phy: mscc: add constants for used interrupt mask bits
Subsystems (3)
Heiner Kallweit
maintainerPATCH 1/1 net: phy: mscc: add constants for used interrupt mask bits
Add constants for the used interrupts bits. This avoids the magic number for MII_VSC85XX_INT_MASK_MASK.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/net/phy/mscc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/net/phy/mscc.c +8 -2
@@ -80,10 +80,16 @@ enum rgmii_rx_clock_delay {#define MSCC_PHY_EXT_PHY_CNTL_2 24#define MII_VSC85XX_INT_MASK 25 -#define MII_VSC85XX_INT_MASK_MASK 0xa020 -#define MII_VSC85XX_INT_MASK_WOL 0x0040 +#define MII_VSC85XX_INT_MASK_MDINT BIT(15) +#define MII_VSC85XX_INT_MASK_LINK_CHG BIT(13) +#define MII_VSC85XX_INT_MASK_WOL BIT(6) +#define MII_VSC85XX_INT_MASK_EXT BIT(5)#define MII_VSC85XX_INT_STATUS 26 +#define MII_VSC85XX_INT_MASK_MASK (MII_VSC85XX_INT_MASK_MDINT | \ + MII_VSC85XX_INT_MASK_LINK_CHG | \ + MII_VSC85XX_INT_MASK_EXT) +#define MSCC_PHY_WOL_MAC_CONTROL 27#define EDGE_RATE_CNTL_POS 5#define EDGE_RATE_CNTL_MASK 0x00E0
Signature · 1 line
2.25.1
Quoted 4 lines · Heiner Kallweit
Add constants for the used interrupts bits. This avoids the magic number for
MII_VSC85XX_INT_MASK_MASK.Signed-off-by Heiner Kallweit <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
From: Heiner Kallweit <[email protected]>
Date: Sun, 1 Mar 2020 21:57:08 +0100
Quoted 4 lines
Add constants for the used interrupts bits. This avoids the magic number for
MII_VSC85XX_INT_MASK_MASK.Signed-off-by Heiner Kallweit <[email protected]>
Applied to net-next.