Enabling smsc PHY driver + smsc911x driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This seems to be something trivial, but so far we're stumped.  The AM35xx has the built-in DaVinci EMAC and the usual GPMC.  Our board uses the EMAC coupled with an SMSC LAN8710 PHY for one port, and a secondary port provided by a LAN9221 wired up through the GPMC.  The trouble is, if I enabled the SMSC PHY code in Linux, *both* ports try to use it.  I suspect it would be better to use the actual driver rather than some generic default, but enabling it causes trouble.  I get something like this:

[    1.119567] smsc911x: Driver version 2008-10-21
[    1.126892] smsc911x-mdio: probed
[    1.130706] smsc911x smsc911x: eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=ffffffff:01, irq=-1)
[    1.142608] smsc911x smsc911x: eth0: MAC Address: xx:xx:xx:xx:xx:xx
[    1.184112] davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
[    1.190612] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[    1.197998] davinci_mdio.0: probed
[    1.201690] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720

See how both Ethernets picked it up?  After this, sometimes I see some odd behavior, which makes perfect sense since that is NOT how its wired up.  If I leave the PHY drivers out all together, I get:

[ 1.347412] smsc911x: Driver version 2008-10-21
[ 1.354644] smsc911x-mdio: probed
[ 1.358245] smsc911x smsc911x.0: eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
[ 1.368560] smsc911x smsc911x.0: eth0: MAC Address: yy:yy:yy:yy:yy:yy:yy
[ 1.416046] davinci_mdio davinci_mdio.2: davinci mdio revision 1.5
[ 1.422546] davinci_mdio davinci_mdio.2: detected phy mask fffffffe
[ 1.429809] davinci_mdio.2: probed
[ 1.433502] davinci_mdio davinci_mdio.2: phy[0]: device 2:00, driver unknown

Generic?  Yes, but it seems to work OK.

Is there a way of forcing the LAN9221 to just use the Generic PHY, or perhaps the something internal?  And would there be any benefit if I bother?  I've got SMSC911X_FORCE_INTERNAL_PHY set in my flags in the board file, but that does not seem to be doing anything.

Thanks in advance.

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux