From: Petri Gynther Date: Fri, 3 Oct 2014 19:25:01 +0000 (-0700) Subject: net: bcmgenet: improve bcmgenet_mii_setup() X-Git-Tag: fixes-against-v3.18-rc2~144^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad6e6c50899621030a9b10ddcb2fcd349cb5965;p=pandora-kernel.git net: bcmgenet: improve bcmgenet_mii_setup() bcmgenet_mii_setup() is called from the PHY state machine every 1-2 seconds when the PHYs are in PHY_POLL mode. Improve bcmgenet_mii_setup() so that it touches the MAC registers only when the link is up and there was a change to link, speed, duplex, or pause status. Signed-off-by: Petri Gynther Tested-by: Florian Fainelli Acked-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed