* Puzzled about MDIO issue
@ 2011-07-14 9:08 bill
2011-07-14 17:08 ` Jeff Haran
2011-07-15 1:09 ` bill
0 siblings, 2 replies; 4+ messages in thread
From: bill @ 2011-07-14 9:08 UTC (permalink / raw)
To: kernelnewbies
Hi, All
I've been reading MDIO code, tiny though but it still puzzled me for its usage.
MDIO is an hardware interface for the MAC to set/get PHY configuration/status.
Linux manipulates MDIO through:
struct net_device ->do_ioctl -> mdio_mii_ioctl -> mdio_read/mdio_write
Question:
A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY?
If so , how?
B: what's the usage of this net device ioctl?
I found an user-space package mii-tool create a socket first and then use the socket handle for ioctl
to query lots of PHY information.
Is there any other typical usage of it?
thanks
bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110714/6580ae3e/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Puzzled about MDIO issue
2011-07-14 9:08 Puzzled about MDIO issue bill
@ 2011-07-14 17:08 ` Jeff Haran
2011-07-15 1:09 ` bill
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Haran @ 2011-07-14 17:08 UTC (permalink / raw)
To: kernelnewbies
From: kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of bill
Sent: Thursday, July 14, 2011 2:09 AM
To: kernelnewbies
Subject: Puzzled about MDIO issue
Hi, All
I've been reading MDIO code, tiny though but it still puzzled me for its usage.
MDIO is an hardware interface for the MAC to set/get PHY configuration/status.
Linux manipulates MDIO through:
struct net_device ->do_ioctl -> mdio_mii_ioctl -> mdio_read/mdio_write
Question:
A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY?
If so , how?
B: what's the usage of this net device ioctl?
I found an user-space package mii-tool create a socket first and then use the socket handle for ioctl
to query lots of PHY information.
Is there any other typical usage of it?
thanks
bill
mii-tool and the ioctls that go with it are long deprecated. These days they can be useful for debugging, but that?s about it.
Modern Linux Ethernet drivers implement support for the ETHTOOL ioctls which are generated using the ethtool application. Usage of mii-tool and its ioctls with modern drivers is likely to cause you problems as mii-tool can put the PHY into a state that is out of sync with how the driver thinks it should be configured.
Jeff Haran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110714/090eaa6f/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Puzzled about MDIO issue
2011-07-14 9:08 Puzzled about MDIO issue bill
2011-07-14 17:08 ` Jeff Haran
@ 2011-07-15 1:09 ` bill
1 sibling, 0 replies; 4+ messages in thread
From: bill @ 2011-07-15 1:09 UTC (permalink / raw)
To: kernelnewbies
Thanks Jeff :)
I did notice which one is deprecated before.
bill
At 2011-07-15 01:08:14?"Jeff Haran" <jharan@bytemobile.com> wrote:
From:kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org]On Behalf Ofbill
Sent: Thursday, July 14, 2011 2:09 AM
To: kernelnewbies
Subject: Puzzled about MDIO issue
Hi, All
I've been reading MDIO code, tiny though but it still puzzled me for its usage.
MDIO is an hardware interface for the MAC to set/get PHY configuration/status.
Linux manipulates MDIO through:
struct net_device ->do_ioctl -> mdio_mii_ioctl -> mdio_read/mdio_write
Question:
A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY?
If so , how?
B: what's the usage of this net device ioctl?
I found an user-space package mii-tool create a socket first and then use the socket handle for ioctl
to query lots of PHY information.
Is there any other typical usage of it?
thanks
bill
mii-tool and the ioctls that go with it are long deprecated. These days they can be useful for debugging, but that?s about it.
Modern Linux Ethernet drivers implement support for the ETHTOOL ioctls which are generated using the ethtool application. Usage of mii-tool and its ioctls with modern drivers is likely to cause you problems as mii-tool can put the PHY into a state that is out of sync with how the driver thinks it should be configured.
Jeff Haran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110715/0cf2b8fc/attachment-0001.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Puzzled about MDIO issue
@ 2011-07-14 8:56 bill
0 siblings, 0 replies; 4+ messages in thread
From: bill @ 2011-07-14 8:56 UTC (permalink / raw)
To: kernelnewbies
Hi, All
I've been reading MDIO code, tiny though but it still puzzled me for its usage.
MDIO is an hardware interface for the MAC to set/get PHY configuration/status.
Linux manipulates MDIO through:
struct net_device ->do_ioctl -> mdio_mii_ioctl -> mdio_read/mdio_write
Question:
A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY?
If so , how?
B: what's the usage of this net device ioctl?
I found an user-space package mii-tool create a socket first and then use the socket handle for ioctl
to query lots of PHY information.
Is there any other typical usage of it?
thanks
bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110714/ff5143a9/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-15 1:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-14 9:08 Puzzled about MDIO issue bill
2011-07-14 17:08 ` Jeff Haran
2011-07-15 1:09 ` bill
-- strict thread matches above, loose matches on Subject: below --
2011-07-14 8:56 bill
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.