Commit:     ca6efb7d6c9336acda2e7b76a39b59bbfe77ec13
Parent:     1d33e9c606bcf3d00bf67477e34253e861bb71c3
Author:     Kok, Auke <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 16 14:39:30 2007 -0800
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Feb 17 15:37:14 2007 -0500

    e1000: allow ethtool to see link status when down
    By reading the MAC status register we can detect whether the MAC has
    seen the PHY see link. This allows us to show the link properties before
    the device is up in ethtool.
    Signed-off-by: Auke Kok <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/e1000/e1000_ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000/e1000_ethtool.c 
index 44ebc72..6777887 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -166,7 +166,7 @@ e1000_get_settings(struct net_device *netdev, struct 
ethtool_cmd *ecmd)
                        ecmd->transceiver = XCVR_EXTERNAL;
-       if (netif_carrier_ok(adapter->netdev)) {
+       if (E1000_READ_REG(&adapter->hw, STATUS) & E1000_STATUS_LU) {
                e1000_get_speed_and_duplex(hw, &adapter->link_speed,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to