net: bcmgenet: only update UMAC_CMD if something changed
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 Jul 2014 00:42:39 +0000 (17:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jul 2014 02:49:11 +0000 (19:49 -0700)
commit240524089d7a5c0396656574e299beb3a55461e3
tree21f67515090c5233e3480600af7b95aa2f953985
parentbb1fed7110c287024dce6bee8152aad903104d96
net: bcmgenet: only update UMAC_CMD if something changed

The link adjustment callback can be called as frequently as desired
by the PHY library, as such, let's avoid doing a Read/Modify/Write
sequence if nothing changed, since these register accesses can be
expensive.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c