]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: smsc: Cache interrupt mask
authorLukas Wunner <lukas@wunner.de>
Thu, 12 May 2022 08:42:06 +0000 (10:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 10:35:46 +0000 (11:35 +0100)
commit987172269055877913d42f8f0e5df4451c21364e
tree08c46b1dd3e5f61e9ee7059b84d1746777707996
parent3e5d3f0549b3695b6e7d19737f35ce2b5d5ee38a
net: phy: smsc: Cache interrupt mask

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: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c