From: Peter Fink <pedro@pixelbox.red>
To: netdev@vger.kernel.org
Cc: pfink@christ-es.de, davem@davemloft.net, linux@christ-es.de
Subject: net: usb: ax88179_178a: allow passing MAC via DTB
Date: Mon, 30 Sep 2019 14:04:02 +0200 [thread overview]
Message-ID: <1569845043-27318-1-git-send-email-pedro@pixelbox.red> (raw)
From: Peter Fink <pfink@christ-es.de>
This is a resend of the following patch as net-next was closed before:
I adopted the feature to pass the MAC address through device tree
from asix_devices.c (introduced in 03fc5d4) to ax88179-based devices.
Please have a look if this patch can be accepted.
I introduced a new function to avoid code duplication, but I'm not perfectly
satisfied with the function name. Suggestions welcome.
I'm not totally sure if the use of net->dev_addr and net->perm_addr
was correct in the first place or if my understanding is lacking some bits.
But I kept the existing behavior as it is working as expected.
Patch tested with 4.19, but applies cleanly on net-next.
Best regards,
Peter
--
drivers/net/usb/ax88179_178a.c | 31 +++++++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
--
2.7.4
next reply other threads:[~2019-09-30 12:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-30 12:04 Peter Fink [this message]
2019-09-30 12:04 ` [PATCH net-next] net: usb: ax88179_178a: allow optionally getting mac address from device tree Peter Fink
2019-09-30 13:45 ` Andrew Lunn
2019-10-01 22:20 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2019-09-20 6:58 net: usb: ax88179_178a: allow passing MAC via DTB Peter Fink
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=1569845043-27318-1-git-send-email-pedro@pixelbox.red \
--to=pedro@pixelbox.red \
--cc=davem@davemloft.net \
--cc=linux@christ-es.de \
--cc=netdev@vger.kernel.org \
--cc=pfink@christ-es.de \
/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).