Re: [PATCH RFC 08/28] net: dsa: Keep the mii bus and address in the private structure

2016-01-21 Thread Andrew Lunn
> > @@ -176,6 +170,15 @@ static int mv88e6060_setup(struct dsa_switch *ds, > > struct device *dev) > > { > > int i; > > int ret; > > + struct mv88e6060_priv *priv; > > + > > + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > > + if (!priv) > > + return -ENOMEM; > > +

Re: [PATCH RFC 08/28] net: dsa: Keep the mii bus and address in the private structure

2016-01-21 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > Rather than looking up the mii bus and address every time, do it once > and setup, and keep it in the private structure. > > Signed-off-by: Andrew Lunn > --- > drivers/net/dsa/mv88e6060.c | 23 +-- > drivers/net/dsa/mv88e6060.h | 11

Re: [PATCH RFC 08/28] net: dsa: Keep the mii bus and address in the private structure

2015-12-23 Thread Florian Fainelli
Le 23/12/2015 04:56, Andrew Lunn a écrit : > Rather than looking up the mii bus and address every time, do it once > and setup, and keep it in the private structure. > > Signed-off-by: Andrew Lunn Acked-by: Florian Fainelli -- Florian -- To unsubscribe from this list: send the line "unsubscrib

[PATCH RFC 08/28] net: dsa: Keep the mii bus and address in the private structure

2015-12-23 Thread Andrew Lunn
Rather than looking up the mii bus and address every time, do it once and setup, and keep it in the private structure. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6060.c | 23 +-- drivers/net/dsa/mv88e6060.h | 11 +++ drivers/net/dsa/mv88e6xxx.c | 16 ++---