How to enable extended Ethtool support for SOCs like the i.mx6
From: Christian Ege <hidden>
Date: 2013-09-11 14:37:29
From: Christian Ege <hidden>
Date: 2013-09-11 14:37:29
Hello I am currently developping on a freescale i.mx6 custom design with a Micrel ksz9031 Phy. Both are supported by Linux. The adjustment of speed and duplex modes can be done by ethtool without any problems. Then our hardware department started a request to toggle mdi and mdi-x modes,this is done through the vendor specific Register 0x1C, of the PHY. The PHY itself supports this feature. But I can not find any clear way to add this support in the Kernel. The ethtool communicates over the freescale fec driver with the PHY. The FEC Driver itself does not really know what PHY it is attached to. The only examples about the mdi/mdi-x features in the kernel are located in the intel drivers which I think do know which PHY capabilities they can rely on. What is the preferred way to make this settings available to the user-space? Is extending the phy_device struct a way to go? with kind regards, Christian Ege