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)
commita618e86da91d259374caff065cc557899dc181ce
tree53b1ae854eaab794e88790eb6ab57393c4094f3f
parentf2bc8ad31a7f814237bc6301d59296d76505a688
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