From: David Miller <davem@davemloft.net>
To: justinmattock@gmail.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: forcedeth: cat /sys/class/net/eth0/carrier = Invalid argument
Date: Mon, 22 Mar 2010 20:51:44 -0700 (PDT) [thread overview]
Message-ID: <20100322.205144.256859987.davem@davemloft.net> (raw)
In-Reply-To: <4BA7AA92.5040400@gmail.com>
From: "Justin P. mattock" <justinmattock@gmail.com>
Date: Mon, 22 Mar 2010 10:36:18 -0700
> I've pushed my kernel from the latest HEAD to 2.6.31
> and am still seeing:
> cat /sys/class/net/eth0/carrier
> cat: carrier: Invalid argument
>
> with my other machine using sky2
> the same results is:
> cat /sys/class/net/eth0/carrier
> 0
>
> is there anything on this? before I start
> a bisect.(looking through bugzilla, I couldn't
> see anything related).
A device is not able to indicate carrier accurately when
the device is not currently running.
So you will get an -EINVAL until the device is brought up.
The reason is that most drivers don't even probe the link
or negotiate link speed and flow control until the device
is brought up. Many don't even power up the PHY when the
device is down, in order to save power.
So the behavior you observe is completely expected.
next prev parent reply other threads:[~2010-03-23 3:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 17:36 Justin P. mattock
2010-03-23 3:51 ` David Miller [this message]
2010-03-23 4:07 ` Justin P. Mattock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100322.205144.256859987.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=justinmattock@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome