From: Bruce Allan Date: Wed, 5 Dec 2012 06:26:08 +0000 (+0000) Subject: e1000e: fix enabling of EEE on 82579 and I217 X-Git-Tag: v3.9-rc1~139^2~365^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d4d5755f1f1ff27f7f050f07758ae2e7a1256da;p=pandora-kernel.git e1000e: fix enabling of EEE on 82579 and I217 Energy Efficient Ethernet on 82579 and I217 should only be enabled if not disabled by the user, if the link is full duplex and the link partner has similar EEE capabilities (stored in different EMI registers on the two different parts). After enabling EEE, read the IEEE MMD register 3.1 (which is also stored in different EMI registers on the two different parts) to clear the count of received Tx/Rx LPI indications. Also, rename I217_EEE_100_SUPPORTED to I82579_EEE_100_SUPPORTED to indicate the bit is valid starting with I82579 (released before I217). Signed-off-by: Bruce Allan Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed