ucc_geth: Don't needlessly change MAC settings in adjust_link()
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 24 Dec 2009 05:31:20 +0000 (05:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Dec 2009 04:24:43 +0000 (20:24 -0800)
If PHY doesn't have an IRQ, phylib would poll for link changes, and
would call adjust_link() every second. In that case we disable and
enable the controller every second.

Let's better check if there is actually anything changed, and, if so,
change the MAC settings.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found