From: Anton Vorontsov Date: Thu, 24 Dec 2009 05:31:20 +0000 (+0000) Subject: ucc_geth: Don't needlessly change MAC settings in adjust_link() X-Git-Tag: v2.6.33-rc3~44^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08fafd8461c0ca8d1b389b7dc11d17e7b2331282;p=pandora-kernel.git ucc_geth: Don't needlessly change MAC settings in adjust_link() 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed