* query on dynamic switching between Ethernet ports
@ 2012-11-09 14:32 Rayagond K
2012-11-09 15:36 ` Ben Hutchings
0 siblings, 1 reply; 3+ messages in thread
From: Rayagond K @ 2012-11-09 14:32 UTC (permalink / raw)
To: netdev
Hi All,
I am implementing handling of dynamic switching between Ethernet ports
(1GMbps to 100Mbps mode) using PHY layer, I referred various driver in
LXR and doc and I am able to understand the PHY layer and implement in
my driver.
For now I am able to do following in my driver now,
1. Advertising all the capabilities like FULL duplex, half duplex,
pause frames, MII/GMII etc while registering with PHY layer.
2. Able to detect the link up and link down.
3. Able do the auto-negotiation with remote end link partner and
program my MAC accordingly.
4. Able to establish the link by connecting and disconnecting the
cable many times.
But I am facing one problem ie my driver is not able to establish the
link when I load the driver first time and connected to 1G port. If I
toggle the port connection between MII(10/100Mbps) and GMII(1Gbps) for
two/three times and connect it back to GMII ports then driver works
fine and it establish the link.
--
wwr
Rayagond
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: query on dynamic switching between Ethernet ports
2012-11-09 14:32 query on dynamic switching between Ethernet ports Rayagond K
@ 2012-11-09 15:36 ` Ben Hutchings
2012-11-09 18:02 ` Rayagond K
0 siblings, 1 reply; 3+ messages in thread
From: Ben Hutchings @ 2012-11-09 15:36 UTC (permalink / raw)
To: Rayagond K; +Cc: netdev
On Fri, 2012-11-09 at 20:02 +0530, Rayagond K wrote:
> Hi All,
>
> I am implementing handling of dynamic switching between Ethernet ports
> (1GMbps to 100Mbps mode) using PHY layer, I referred various driver in
> LXR and doc and I am able to understand the PHY layer and implement in
> my driver.
>
> For now I am able to do following in my driver now,
>
> 1. Advertising all the capabilities like FULL duplex, half duplex,
> pause frames, MII/GMII etc while registering with PHY layer.
> 2. Able to detect the link up and link down.
> 3. Able do the auto-negotiation with remote end link partner and
> program my MAC accordingly.
> 4. Able to establish the link by connecting and disconnecting the
> cable many times.
>
> But I am facing one problem ie my driver is not able to establish the
> link when I load the driver first time and connected to 1G port. If I
> toggle the port connection between MII(10/100Mbps) and GMII(1Gbps) for
> two/three times and connect it back to GMII ports then driver works
> fine and it establish the link.
Is the driver resetting everything it needs to when loaded?
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: query on dynamic switching between Ethernet ports
2012-11-09 15:36 ` Ben Hutchings
@ 2012-11-09 18:02 ` Rayagond K
0 siblings, 0 replies; 3+ messages in thread
From: Rayagond K @ 2012-11-09 18:02 UTC (permalink / raw)
To: Ben Hutchings; +Cc: netdev
yes driver issues soft reset to MAC and PHY.
On Fri, Nov 9, 2012 at 9:06 PM, Ben Hutchings <bhutchings@solarflare.com> wrote:
> On Fri, 2012-11-09 at 20:02 +0530, Rayagond K wrote:
>> Hi All,
>>
>> I am implementing handling of dynamic switching between Ethernet ports
>> (1GMbps to 100Mbps mode) using PHY layer, I referred various driver in
>> LXR and doc and I am able to understand the PHY layer and implement in
>> my driver.
>>
>> For now I am able to do following in my driver now,
>>
>> 1. Advertising all the capabilities like FULL duplex, half duplex,
>> pause frames, MII/GMII etc while registering with PHY layer.
>> 2. Able to detect the link up and link down.
>> 3. Able do the auto-negotiation with remote end link partner and
>> program my MAC accordingly.
>> 4. Able to establish the link by connecting and disconnecting the
>> cable many times.
>>
>> But I am facing one problem ie my driver is not able to establish the
>> link when I load the driver first time and connected to 1G port. If I
>> toggle the port connection between MII(10/100Mbps) and GMII(1Gbps) for
>> two/three times and connect it back to GMII ports then driver works
>> fine and it establish the link.
>
> Is the driver resetting everything it needs to when loaded?
>
> Ben.
>
> --
> Ben Hutchings, Staff Engineer, Solarflare
> Not speaking for my employer; that's the marketing department's job.
> They asked us to note that Solarflare product names are trademarked.
>
--
wwr
Rayagond
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-09 18:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09 14:32 query on dynamic switching between Ethernet ports Rayagond K
2012-11-09 15:36 ` Ben Hutchings
2012-11-09 18:02 ` Rayagond K
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox