RE: [PATCH v1 net-next] net: stmmac: enable clause 45 mdio support
From: Jose Abreu
Date: Thu Jul 04 2019 - 11:27:26 EST
From: Andrew Lunn <andrew@xxxxxxx>
> 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.