[PATCH RFC 2/7] net: phy: make phy_(read|write)_mmd() generic MMD accessors

2017-03-19 Thread Russell King
Make phy_(read|write)_mmd() generic 802.3 clause 45 register accessors for both Clause 22 and Clause 45 PHYs, using either the direct register reading for Clause 45, or the indirect method for Clause 22 PHYs. Allow this behaviour to be overriden by PHY drivers where necessary. Signed-off-by:

[PATCH RFC 2/7] net: phy: make phy_(read|write)_mmd() generic MMD accessors

2017-01-13 Thread Russell King
Make phy_(read|write)_mmd() generic 802.3 clause 45 register accessors for both Clause 22 and Clause 45 PHYs, using either the direct register reading for Clause 45, or the indirect method for Clause 22 PHYs. Allow this behaviour to be overriden by PHY drivers where necessary. Signed-off-by: