From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: Patrick Uiterwijk <patrick@puiterwijk.org>,
linux@roeck-us.net, davem@davemloft.net, andrew@lunn.ch
Cc: netdev@vger.kernel.org, dennis@ausil.us, pbrobinson@gmail.com,
Patrick Uiterwijk <patrick@puiterwijk.org>
Subject: Re: [PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Clear the PDOWN bit on setup
Date: Tue, 29 Mar 2016 12:23:06 -0400 [thread overview]
Message-ID: <87fuv9fe39.fsf@ketchup.mtl.sfl> (raw)
In-Reply-To: <1459249908-4556-2-git-send-email-patrick@puiterwijk.org>
Hi Patrick,
Two comments below.
Patrick Uiterwijk <patrick@puiterwijk.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
next prev parent reply other threads:[~2016-03-29 16:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 11:11 [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write} Patrick Uiterwijk
2016-03-29 11:11 ` [PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Clear the PDOWN bit on setup Patrick Uiterwijk
2016-03-29 16:23 ` Vivien Didelot [this message]
2016-03-29 16:28 ` Andrew Lunn
2016-03-29 18:49 ` Vivien Didelot
2016-03-30 0:58 ` Patrick Uiterwijk
2016-03-30 1:02 ` Andrew Lunn
2016-03-29 16:26 ` [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write} Vivien Didelot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuv9fe39.fsf@ketchup.mtl.sfl \
--to=vivien.didelot@savoirfairelinux.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=dennis@ausil.us \
--cc=linux@roeck-us.net \
--cc=netdev@vger.kernel.org \
--cc=patrick@puiterwijk.org \
--cc=pbrobinson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.