From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
To: Corentin Labbe <clabbe.montjoie@gmail.com>, <alexandre.torgue@st.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] net: stmmac: avoid Camelcase naming
Date: Fri, 2 Dec 2016 09:44:48 +0100 [thread overview]
Message-ID: <83a25cf8-907b-074e-754c-faa9e641c896@st.com> (raw)
In-Reply-To: <1480605581-13350-1-git-send-email-clabbe.montjoie@gmail.com>
Hello Corentin
patches look ok, I just wonder if you tested it in case of
the stmmac is connected to a transceiver. Let me consider it
a critical part of the driver to properly work.
Regards
Peppe
On 12/1/2016 4:19 PM, Corentin Labbe wrote:
> This patch simply rename regValue to value, like it was named in other
> mdio functions.
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> index e3216e5..6796c28 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> @@ -83,14 +83,14 @@ static int stmmac_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg)
> unsigned int mii_data = priv->hw->mii.data;
>
> int data;
> - u16 regValue = (((phyaddr << 11) & (0x0000F800)) |
> + u16 value = (((phyaddr << 11) & (0x0000F800)) |
> ((phyreg << 6) & (0x000007C0)));
> - regValue |= MII_BUSY | ((priv->clk_csr & 0xF) << 2);
> + value |= MII_BUSY | ((priv->clk_csr & 0xF) << 2);
>
> if (stmmac_mdio_busy_wait(priv->ioaddr, mii_address))
> return -EBUSY;
>
> - writel(regValue, priv->ioaddr + mii_address);
> + writel(value, priv->ioaddr + mii_address);
>
> if (stmmac_mdio_busy_wait(priv->ioaddr, mii_address))
> return -EBUSY;
>
next prev parent reply other threads:[~2016-12-02 8:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-01 15:19 Corentin Labbe
2016-12-01 15:19 ` [PATCH 2/2] net: stmmac: unify mdio functions Corentin Labbe
2016-12-03 20:24 ` David Miller
2016-12-02 8:44 ` Giuseppe CAVALLARO [this message]
2016-12-02 8:58 ` [PATCH 1/2] net: stmmac: avoid Camelcase naming Corentin Labbe
2016-12-02 9:25 ` Giuseppe CAVALLARO
2016-12-03 20:24 ` David Miller
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=83a25cf8-907b-074e-754c-faa9e641c896@st.com \
--to=peppe.cavallaro@st.com \
--cc=alexandre.torgue@st.com \
--cc=clabbe.montjoie@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®