External PHY in Linux smc91x driver
Hello David, (cc'ed to LKML)
The patch, `smc91x: Add support for an external PHY' from 2006-07-19, worked for me. It simply set the extphy bit of the smc91x to disable the internal PHY and use the external MII interface. As you can see from the patch, it doesn't support configuring the external PHY in any way. Most PHYs power up to a default functional state. In further work, someone could add the smc91x MII configuration interface to the PHY abstraction layer. Incidentally, the PHY I was using (an unmanaged switch chip) didn't even support configuration over the MII interface. Apply this patch first as a minimum first measure. Test the patch, if it works for you, sign off on it and repost it to the LKML.
Cheers,
Shaun
Quoted 14 lines · David Keeffe
Hi Shaun
I've been asked to look at supporting an external (LXT) PHY for the SMC91x driver, and I noticed that you have published a patch for this. Is that all that's needed to make the SMC chip work with an external PHY? Presumably there are also parts which actually do the phy setup (if it's not an SMC component).
I've been considering changing the driver to use the PHY abstraction layer, but that seems a big job if the problem has already been solved!
Would you care to share what you've achieved?
David Keeffe