On Tue, May 24, 2016 at 05:09:35PM +0100, Amr Bekhit wrote: > Hi Andrew, > > > How about adding a printk() in genphy_read_status(). > > Would you be able to point me to some more information about these > status bits, please?
You can get the datasheet from here: http://www.davicom.com.tw/userfile/24247/DM9162_DM9162I-12-MCO-DS-F01_08062014.pdf I would start by looking at the BMCR register. The genphy_read_status() function should get called about once per second, so that is an O.K. place to add debug prints, and there is example code for reading MII_BMCR. Andrew
