]> git.baikalelectronics.ru Git - kernel.git/commit
net : phy: marvell: Speedup TDR data retrieval by only changing page once
authorAndrew Lunn <andrew@lunn.ch>
Tue, 26 May 2020 22:21:42 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 06:22:21 +0000 (23:22 -0700)
commite98f0bf1b9850c746fc2b63c594a12e4b5bcf3fe
tree53b1ae854eaab794e88790eb6ab57393c4094f3f
parent0035e70750637542632c805312a420eb7f9248dd
net : phy: marvell: Speedup TDR data retrieval by only changing page once

Getting the TDR data requires a large number of MDIO bus
transactions. The number can however be reduced if the page is only
changed once. Add the needed locking to allow this, and make use of
unlocked read/write methods where needed.

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