netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: andreas.fenkart@streamunlimited.com
Cc: netdev@vger.kernel.org
Subject: Re: [1/1] ARC vmac ethernet driver.
Date: Mon, 15 Mar 2010 15:35:33 -0700 (PDT)	[thread overview]
Message-ID: <20100315.153533.78183177.davem@davemloft.net> (raw)


This needs some changes.

First, you'll need to add some proper dependencies to the Kconfig for
this driver before we can apply it.

At a minimum you have to depend upon HAS_DMA otherwise the
dma_*() interface calls won't link on platforms such as s390.

Also:

+static char *mac_addr;
+module_param(mac_addr, charp, 0644);
+MODULE_PARM_DESC(mac_addr, "MAC address as colon separated hexadecimals");

Please remove this, we have interfaces for setting the ethernet
address.  If the device address can't be probed, use
a random ethernet address as a default (by using linux/etherdevice.h's
random_ether_addr())

If the user wants to override they can do so with the 'ifconfig'
command.

This is how we consistently handle this situation in every ethernet
driver, so please don't try to make arguments as to why your driver
should handle this differently.

Thanks.

                 reply	other threads:[~2010-03-15 22:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100315.153533.78183177.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andreas.fenkart@streamunlimited.com \
    --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;
as well as URLs for NNTP newsgroup(s).