On 03/28/2017 02:56 PM, Florian Fainelli wrote: > This patch adds support for a DSA mock-up driver which essentially does > the following: > > - registers/unregisters 4 fixed PHYs to the slave network devices > - uses eth0 (configurable) as the master netdev > - registers the switch as a fixed MDIO device against the fixed MDIO bus > at address 31 > - includes dynamic debug prints for dsa_switch_ops functions that can be > enabled to get call traces > > This is a good way to test modular builds as well as exercise the DSA > APIs without requiring access to real hardware. This does not test the > data-path, although this could be added later on. > > Signed-off-by: Florian Fainelli <f.faine...@gmail.com> > ---
> diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h > index 1d41ec44e39d..e352bc315e00 100644 > --- a/include/linux/phy_fixed.h > +++ b/include/linux/phy_fixed.h > @@ -26,6 +26,7 @@ extern int fixed_phy_set_link_update(struct phy_device > *phydev, > extern int fixed_phy_update_state(struct phy_device *phydev, > const struct fixed_phy_status *status, > const struct fixed_phy_status *changed); > +extern struct device *platform_fmb_bus_get(void); This is from a previous iteration of the driver and is no longer required, I will respin, provided that we see value in having this driver live in the kernel. -- Florian