• Lukas Wunner's avatar
    net: phy: smsc: Cache interrupt mask · 7e8b617e
    Lukas Wunner authored
    Cache the interrupt mask to avoid re-reading it from the PHY upon every
    interrupt.
    
    This will simplify a subsequent commit which detects hot-removal in the
    interrupt handler and bails out.
    
    Analyzing and debugging PHY transactions also becomes simpler if such
    redundant reads are avoided.
    
    Last not least, interrupt overhead and latency is slightly improved.
    
    Tested-by: Oleksij Rempel <o.rempel@pengutronix.de> # LAN9514/9512/9500
    Tested-by: Ferry Toth <fntoth@gmail.com> # LAN9514
    Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7e8b617e
smsc.c 12.1 KB