Sorry! I have to re-send the email since previous one was rejected due to HTML format.
Best Regards, Shaohui Xie From: Xie Shaohui-B21989 Sent: Friday, July 31, 2015 12:09 PM To: netdev@vger.kernel.org; 'David Miller' Subject: how to access PHY's registers from user space Hello All, Is there a general way in user space to access C45 PHY's registers, like dumping some registers? mii-tool seems obsolete, especially, it cannot support PHYs accessed through Clause 45. ethtool seems does not support this operation. PHY lib API phy_mii_ioctl() seems also obsolete, data structure it used is not suitable for C45 PHYs. /* This structure is used in all SIOCxMIIxxx ioctl calls */ struct mii_ioctl_data { __u16 phy_id; __u16 reg_num; __u16 val_in; __u16 val_out; }; What should be a proper way to implement accessing PHY's registers in user space? To modify the phy_mii_ioctl() to support C45 PHYs? Then how about the user space application, should it also be improved? Or to add sysfs support to a specific PHY's driver if this PHY is interested, is this acceptable in upstream? Welcome to comments! Best Regards, Shaohui Xie -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html