[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87fuv9fe39.fsf@ketchup.mtl.sfl>
Date: Tue, 29 Mar 2016 12:23:06 -0400
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
To: Patrick Uiterwijk <patrick@...terwijk.org>, linux@...ck-us.net,
davem@...emloft.net, andrew@...n.ch
Cc: netdev@...r.kernel.org, dennis@...il.us, pbrobinson@...il.com,
Patrick Uiterwijk <patrick@...terwijk.org>
Subject: Re: [PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Clear the PDOWN bit on setup
Hi Patrick,
Two comments below.
Patrick Uiterwijk <patrick@...terwijk.org> writes:
> +static int mv88e6xxx_power_on_serdes(struct dsa_switch *ds)
Since this function assumes the SMI lock is already held, its name
should be prefixed with _ by convention (_mv88e6xxx_power_on_serdes).
> +{
> + int ret;
> +
> + ret = _mv88e6xxx_phy_page_read(ds, REG_FIBER_SERDES, PAGE_FIBER_SERDES,
> + MII_BMCR);
> + if (ret < 0)
> + return ret;
> +
> + if (ret & BMCR_PDOWN) {
> + ret = ret & ~BMCR_PDOWN;
ret &= ~BMCR_PDOWN;
> + ret = _mv88e6xxx_phy_page_write(ds, REG_FIBER_SERDES,
> + PAGE_FIBER_SERDES, MII_BMCR,
> + ret);
> + }
> +
> + return ret;
> +}
Thanks,
Vivien
Powered by blists - more mailing lists