[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 7 Jul 2011 15:27:41 +0800
From: Xu Bingcan <bingcanxu@...il.com>
To: netdev@...r.kernel.org
Cc: Bingcan Xu <bingcanxu@...il.com>
Subject: [help] macb driver modification for direct mac-to-mac connection
without phy -- Thanks
Hi, Guys
I am appreciate that anyone can give me some hint...
My Case Description:
I'm working with an Atmel ARM9 board (macb driver), that doesn't have
a PHY. The MAC is connected to a switch via MII. That MII link is
hard-wired to be 100M full-duplex.
I have a real, working MDIO bus.What I don't have is a PHY.I don't
want an emulated MDIO bus such as phy_fixed.
I found a mail thread about "Question about PHY-less board and
"fixed_phy"" in the linux netdev but no solution provided.
http://www.spinics.net/lists/netdev/msg143651.html
/* Not really PHY in our situation. Use a fake phy like fixed_phy
except a really MDIO to switch
* The switch IP175C uses the PHY addr 0-6 16 18 29 30 31. For more
detail information refer to IP175Cx-DS-R17-20081121.pdf.
* For simplity, the fake PHY use addr = FAKE_PHY_ADDR(19)
*/
I try to modify mdiobus_scan() so that it just allocate space and does
not register device for PHYADDR 19
at macb_mii_probe().. I replace the first found phy to my hardcode one
FAKE_PHY_ADDR(19)...
then I modify the macb_mdio_read() macb_mdio_write() to use my stub
function when addr == FAKE_PHY_ADDR.
But the traffic are lost when startup.
Thanks
Brs,
- Xu Bingcan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists