]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: mv88e6xxx: Release mutex between each ATU read
authorAndrew Lunn <andrew@lunn.ch>
Thu, 15 Feb 2018 13:38:35 +0000 (14:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 20:37:09 +0000 (15:37 -0500)
commita61e54063423e9e8d604ea54e6664433946fe6af
treebbd95defbeab98303a0b443ed7e1cb7420a33986
parent377cda13a25513f714ea5b5a765408292ca4627a
net: dsa: mv88e6xxx: Release mutex between each ATU read

The PTP code needs low latency access to the PTP hardware timestamps.
Reading all the ATU entries in one go adds a lot of latency to the PTP
code. So take and release the reg_lock mutex for each individual MAC
address in the ATU, allowing the PTP thread jump in between.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c