From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
devicetree@vger.kernel.org,
Masami Hiramatsu <masami.hiramatsu@linaro.org>,
Jassi Brar <jaswinder.singh@linaro.org>
Subject: Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver
Date: Mon, 11 Sep 2017 15:51:44 +0900 [thread overview]
Message-ID: <20170911155144.6718.4A936039@socionext.com> (raw)
In-Reply-To: <CAK7LNASqfRbG08gvLxx4WxY2Vs2YYPkZ6NUpjj3_OOvOdEBKMA@mail.gmail.com>
Hi Yamada-san,
Thank you for your comments,
On Fri, 8 Sep 2017 23:44:13 +0900 <yamada.masahiro@socionext.com> wrote:
> 2017-09-08 22:02 GMT+09:00 Kunihiko Hayashi <hayashi.kunihiko@socionext.com>:
>
> > diff --git a/drivers/net/ethernet/socionext/Kconfig b/drivers/net/ethernet/socionext/Kconfig
> > new file mode 100644
> > index 0000000..788f26f
> > --- /dev/null
> > +++ b/drivers/net/ethernet/socionext/Kconfig
> > @@ -0,0 +1,22 @@
> > +config NET_VENDOR_SOCIONEXT
> > + bool "Socionext ethernet drivers"
> > + default y
> > + ---help---
> > + Option to select ethernet drivers for Socionext platforms.
> > +
> > + Note that the answer to this question doesn't directly affect the
> > + kernel: saying N will just cause the configurator to skip all
> > + the questions about Agere devices. If you say Y, you will be asked
> > + for your specific card in the following questions.
>
>
> Agere?
It's wrong. I have template strings left.
I'll fix it.
> > +
> > + dev_info(dev, "Socionext %c%c%c%c Ethernet IP %s (irq=%d, phy=%s)\n",
> > + (ave_id >> 24) & 0xff, (ave_id >> 16) & 0xff,
> > + (ave_id >> 8) & 0xff, (ave_id >> 0) & 0xff,
> > + buf, ndev->irq, phy_modes(phy_mode));
> > +
> > + return 0;
> > +err_netdev_register:
>
> Maybe, a bad label name.
> for ex. out_del_napi or whatever.
>
> Documentation/process/coding-style.rst says
> "Choose label names which say what the goto does ..."
Yes, I'll rename it according to the document.
> > + netif_napi_del(&priv->napi_rx);
> > + netif_napi_del(&priv->napi_tx);
> > + mdiobus_unregister(priv->mdio);
> > +err_mdiobus_register:
> > +err_mdiobus_alloc:
> > +err_req_irq:
>
> These three should be merged, for ex.
> out_free_device.
I see. These will be merged.
> I ran sparse for you.
>
> Please take a look if it is worthwhile.
> Seems endianess around mac_addr.
Okay, I'll check the suspicious code.
> drivers/net/ethernet/socionext/sni_ave.c:423:15: warning: cast to
> restricted __le32
> drivers/net/ethernet/socionext/sni_ave.c:425:20: warning: cast to
> restricted __le16
> drivers/net/ethernet/socionext/sni_ave.c:1194:15: warning: cast to
> restricted __le32
> drivers/net/ethernet/socionext/sni_ave.c:1196:20: warning: cast to
> restricted __le16
> drivers/net/ethernet/socionext/sni_ave.c:1398:15: warning: cast to
> restricted __le32
> drivers/net/ethernet/socionext/sni_ave.c:1400:20: warning: cast to
> restricted __le16
>
>
>
>
>
> --
> Best Regards
> Masahiro Yamada
---
Best Regards,
Kunihiko Hayashi
next prev parent reply other threads:[~2017-09-11 6:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 13:02 [PATCH net-next 0/3] add UniPhier AVE ethernet support Kunihiko Hayashi
2017-09-08 13:02 ` [PATCH net-next 1/3] dt-bindings: net: add DT bindings for Socionext UniPhier AVE Kunihiko Hayashi
2017-09-08 14:03 ` Andrew Lunn
2017-09-11 7:11 ` Kunihiko Hayashi
2017-09-08 18:54 ` Florian Fainelli
2017-09-11 7:11 ` Kunihiko Hayashi
2017-09-08 13:02 ` [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver Kunihiko Hayashi
2017-09-08 13:50 ` Andrew Lunn
2017-09-11 6:50 ` Kunihiko Hayashi
2017-09-11 12:00 ` Andrew Lunn
2017-09-12 9:24 ` Kunihiko Hayashi
2017-09-08 14:44 ` Masahiro Yamada
2017-09-11 6:51 ` Kunihiko Hayashi [this message]
2017-09-08 19:31 ` Florian Fainelli
2017-09-11 6:55 ` Kunihiko Hayashi
2017-09-21 12:27 ` Kunihiko Hayashi
2017-09-09 16:30 ` Florian Fainelli
2017-09-11 6:56 ` Kunihiko Hayashi
2017-09-08 13:02 ` [PATCH net-next 3/3] net: phy: realtek: add RTL8201F phy-id and functions Kunihiko Hayashi
2017-09-08 13:57 ` Andrew Lunn
2017-09-08 18:51 ` Florian Fainelli
2017-09-09 3:33 ` Jassi Brar
2017-09-09 15:55 ` Andrew Lunn
2017-09-11 7:48 ` Kunihiko Hayashi
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=20170911155144.6718.4A936039@socionext.com \
--to=hayashi.kunihiko@socionext.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=jaswinder.singh@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=masami.hiramatsu@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=yamada.masahiro@socionext.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome