]> git.baikalelectronics.ru Git - kernel.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)
commit2a57d8b7d8b6bc41d08918f2eeceea683207a9bf
treebbd95defbeab98303a0b443ed7e1cb7420a33986
parent833ac270c8a23204073a1e791c14c4403a330c5e
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