Thread (53 messages) flat view 53 messages, 4 authors, 2016-01-06

Re: [RFC PATCH net-next 11/24] phy: Add an mdio_device structure

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2016-01-05 01:53:45

On 04/01/16 09:36, Andrew Lunn wrote:
Not all devices attached to an MDIO bus are phys. So add an
mdio_device structure to represent the generic parts of an mdio
device, and place this structure into the phy_device.
This looks good to me, I am just wondering if it would make sense to
introduce another patch, prior to this one which does something like:

- expose phydev_addr(phydev) to encapsulate the phy device's addr member
and convert all drivers listed here to that helper, do the same thing
with phydev_bus(phydev) to get the mii_bus of a given PHY device

- have a subsequent patch which relocates phydev->{addr,bus} to the
common MDIO device structure?

Other than that:

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help