2010-01-19 11:32:31     Dual port link detect using Micrel switch

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-19 11:32:31     Dual port link detect using Micrel switch

Hans Waldmann (UNITED STATES)

Message: 84761   

 

Hi PTG

 

We are using a BF537 attached to a Micrel KSZ8893 switch. We are not using the switch in router mode using VLAN. Just normal switch mode.

 

The question we are having is this: can we have link detect enabled on both ports PHY ports, so that the driver will detect if the ethernet cable is connected to either of the 2 PHY ports on the Micrel switch? We are currently using 2008r1 release software. It seems from the function mii_probe() in bfin_mac.c file, that only 1 phy_device will be associated with the ethernet driver, so we only have link detect on 1 physical port.

 

Are we right about this assumption or is it possible to somehow enable link detect on both physical ports?

 

Thanks,

 

Hans

QuoteReplyEditDelete

 

 

2010-01-19 12:20:17     Re: Dual port link detect using Micrel switch

Mike Frysinger (UNITED STATES)

Message: 84762   

 

the latest release (2009R1.1) has support added.  you can refer to that if you dont upgrade.

QuoteReplyEditDelete

 

 

2010-01-19 14:20:48     Re: Dual port link detect using Micrel switch

Hans Waldmann (UNITED STATES)

Message: 84767   

 

I downloaded the latest bfin_mac.c file and the mii_probe() function looks quite similar to the older one. It seems like it just takes the first available PHY devices and connects to that.

 

I also looked at the phy_device.c and mdio_bus.c files. I am not getting how the new version is adding simultaneous support for multiple phy link status. Can you point me to where/how that is happening.

QuoteReplyEditDelete

 

 

2010-01-19 14:56:04     Re: Dual port link detect using Micrel switch

Mike Frysinger (UNITED STATES)

Message: 84768   

 

you can try this page:

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:dsa_for_ksz8893m

QuoteReplyEditDelete

 

 

2010-01-19 15:45:00     Re: Dual port link detect using Micrel switch

Hans Waldmann (UNITED STATES)

Message: 84770   

 

I believe that the page you are referring to is related to have the switch function as a router where you are having 3 separate logical ethernet devices using some sort of VLAN mechanism to implement the routing. They call it as "distributed switch architecture". But we are not using this functionality. We just want to have the Micrel device functioning as a simple switch with a single logical ethernet device connected to our blackfin. But the cable link detect of course has to happen on the extenal PHY ports.

QuoteReplyEditDelete

 

 

2010-01-19 16:08:27     Re: Dual port link detect using Micrel switch

Mike Frysinger (UNITED STATES)

Message: 84773   

 

DSA is the only thing we have support for atm then

Attachments

    Outcomes