net: systemport: only update UMAC_CMD if something changed
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 15 May 2014 02:32:13 +0000 (19:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2014 20:48:38 +0000 (16:48 -0400)
commitd5e32cc7c997d1d4f18031f5ff88512bd65118f7
treec1ef1b747ba159966baa2177b519ce8c0395b9a5
parent5f47dfb400d6a82d5ce9cdf537e33969af8278ff
net: systemport: 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, which is more than likely since we are interfaced
with a switch device.

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