From: Andrew Lunn <and...@lunn.ch> > Yes, that is all clear. The stmmac_mdio_c45_setup() does part of this > setup. There is also a write to mii_address which i snipped out when > replying. But why do you need to write to the data registers during a > read? C22 does not need this write. Are there some bits in the top of > the data register which are relevant to C45?
Yes. The register is 32bits. 16 lower bits are for data and remaining for C45 register address.