> > @@ -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;
> > +
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
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
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 ++---