Re: [PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-16 Thread Alexandru Marginean
On 12/15/2019 3:16 PM, Vladimir Oltean wrote: On Sun, 15 Dec 2019 at 14:53, Vladimir Oltean wrote: Hi Alex, On Tue, 3 Dec 2019 at 18:18, Alex Marginean wrote: +static int felix_port_enable(struct udevice *dev, int port, +struct phy_device *phy) +{ + struct

Re: [PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-16 Thread Alexandru Marginean
On 12/15/2019 1:53 PM, Vladimir Oltean wrote: Hi Alex, On Tue, 3 Dec 2019 at 18:18, Alex Marginean wrote: +static int felix_port_enable(struct udevice *dev, int port, +struct phy_device *phy) +{ + struct felix_priv *priv = dev_get_priv(dev); + void *base

Re: [PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-15 Thread Vladimir Oltean
On Sun, 15 Dec 2019 at 14:53, Vladimir Oltean wrote: > > Hi Alex, > > On Tue, 3 Dec 2019 at 18:18, Alex Marginean > wrote: > > +static int felix_port_enable(struct udevice *dev, int port, > > +struct phy_device *phy) > > +{ > > + struct felix_priv *priv = dev_ge

Re: [PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-15 Thread Vladimir Oltean
On Sun, 15 Dec 2019 at 14:53, Vladimir Oltean wrote: > > Hi Alex, > > On Tue, 3 Dec 2019 at 18:18, Alex Marginean > wrote: > > +static int felix_port_enable(struct udevice *dev, int port, > > +struct phy_device *phy) > > +{ > > + struct felix_priv *priv = dev_ge

Re: [PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-15 Thread Vladimir Oltean
Hi Alex, On Tue, 3 Dec 2019 at 18:18, Alex Marginean wrote: > +static int felix_port_enable(struct udevice *dev, int port, > +struct phy_device *phy) > +{ > + struct felix_priv *priv = dev_get_priv(dev); > + void *base = priv->regs_base; > + > + out_l

[PATCH v3 4/6] drivers: net: add Felix DSA switch driver

2019-12-03 Thread Alex Marginean
This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4 front panel ports are available as Ethernet interfaces and can be used with the typical