e1000: fix media_type <-> phy_type thinko
Subsystems (2)
PATCH 10/10 e1000: fix media_type <-> phy_type thinko
From: Willy TARREAU <[email protected]>
Recent patch cb764326dff0ee51aca0d450e1a292de65661055 introduced a thinko in e1000_main.c : e1000_media_type_copper is compared to hw.phy_type instead of hw.media_type. Original patch proposed by Jesse Brandeburg was correct, but what has been merged is not.
Acked-by Jesse Brandeburg <[email protected]>
Cc "Ronciak, John" <[email protected]>
Cc Jeff Garzik <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/e1000/e1000_main.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c~e1000-fix-media_type-phy_type-thinko +1 -1
@@ -4195,7 +4195,7 @@ e1000_mii_ioctl(struct net_device *netdespin_unlock_irqrestore (&adapter->stats_lock, flags);return -EIO ; } -if (adapter->hw.phy_type == e1000_media_type_copper) { +if (adapter->hw.media_type == e1000_media_type_copper) {switch (data->reg_num) {case PHY_CTRL :if (mii_reg &MII_CR_POWER_DOWN )
_