]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: only update the XLG configuration when needed
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 1 Mar 2019 10:52:12 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 07:23:34 +0000 (23:23 -0800)
commit68850951e4cf2af794c2e0a4a4430acd64b79f26
tree6e07acc5cfc9a7c2ebd4cd5fa0132de9883a9372
parent45be702029917106ba6e56ebbb77ed8ea35bb8f1
net: mvpp2: only update the XLG configuration when needed

This patch improves the XLG configuration function, to only update the
XLG configuration register when a change is needed. This helps not
writing over and over the same XLG configuration each time phylink
request the MAC to be configured. This mimics the GMAC configuration
function.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c