public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Francois Romieu <romieu@fr.zoreil.com>,
	Lennert Buytenhek <kernel@wantstofly.org>,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
	Gregory Clement <gregory.clement@free-electrons.com>,
	Lior Amsalem <alior@marvell.com>,
	Dmitri Epshtein <dima@marvell.com>
Subject: Re: [PATCH v6 2/7] net: mvneta: driver for Marvell Armada 370/XP network unit
Date: Tue, 13 Nov 2012 07:30:22 -0800	[thread overview]
Message-ID: <1352820622.24230.31.camel@joe-AO722> (raw)
In-Reply-To: <1352818843-4457-3-git-send-email-thomas.petazzoni@free-electrons.com>

On Tue, 2012-11-13 at 16:00 +0100, Thomas Petazzoni wrote:
> This patch contains a new network driver for the network unit of the
> ARM Marvell Armada 370 and the Armada XP. Both SoCs use the PJ4B
> processor, a Marvell-developed ARM core that implements the ARMv7
> instruction set.

This looks very clean to me.

trivial:
some of the logging doesn't use terminating newlines.

> +static int mvneta_check_mtu_valid(struct net_device *dev, int mtu)
> +{
[]
> +       if (mtu > 9676) {
> +               netdev_info(dev, "Illegal MTU value %d, round to 9676", mtu);
[]
> +	if (!IS_ALIGNED(MVNETA_RX_PKT_SIZE(mtu), 8)) {
> +		netdev_info(dev, "Illegal MTU value %d, rounding to %d",

missing newlines

> +static int __devinit mvneta_probe(struct platform_device *pdev)
[]
> +	if (register_netdev(dev)) {
> +		dev_err(&pdev->dev, "failed to register\n");
> +		err = ENOMEM;
> +		goto err_base;
> +	}
[]
> +	dev_info(&pdev->dev, "%s, mac: %pM\n", dev->name,
> +		 dev->dev_addr);

You could use netdev_info here

	netdev_info(dev, "mac: %pM\n", dev->dev_addr);

  reply	other threads:[~2012-11-13 15:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 15:00 [PATCH v6] Network driver for the Armada 370 and Armada XP ARM Marvell SoCs Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 1/7] net: mvmdio: new Marvell MDIO driver Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 2/7] net: mvneta: driver for Marvell Armada 370/XP network unit Thomas Petazzoni
2012-11-13 15:30   ` Joe Perches [this message]
2012-11-13 15:46     ` Thomas Petazzoni
2012-11-13 15:57       ` Joe Perches
2012-11-13 23:12   ` Francois Romieu
2012-11-14 14:04     ` Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 3/7] net: mvneta: update MAINTAINERS file for the mvneta maintainers Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 4/7] arm: mvebu: add Ethernet controllers using mvneta driver for Armada 370/XP Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 5/7] arm: mvebu: enable Ethernet controllers on Armada 370/XP eval boards Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 6/7] arm: mvebu: enable Ethernet controllers on OpenBlocks AX3-4 platform Thomas Petazzoni
2012-11-13 15:00 ` [PATCH v6 7/7] arm: mvebu: enable Ethernet controllers on Mirabox platform Thomas Petazzoni

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=1352820622.24230.31.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=alior@marvell.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dima@marvell.com \
    --cc=gregory.clement@free-electrons.com \
    --cc=jason@lakedaemon.net \
    --cc=kernel@wantstofly.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    --cc=thomas.petazzoni@free-electrons.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