netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] r8152: Add support for setting MAC to system's Auxiliary MAC address
@ 2016-06-02 16:58 Mario Limonciello
  2016-06-02 16:58 ` Mario Limonciello
  0 siblings, 1 reply; 12+ messages in thread
From: Mario Limonciello @ 2016-06-02 16:58 UTC (permalink / raw)
  To: hayeswang
  Cc: LKML, Netdev, Linux USB, pali.rohar, anthony.wong, Greg KH,
	Mario Limonciello

This adjusts a lot of concerns that have been raised on LKML.

Changes from v1:
 * Lots of error checking around bad ACPI data
 * Only activate on Dell system vendor DMI string
 * Use hex2bin instead of inventing a wheel
 * Copy MAC to both dev_addr and sa_data
 * Track and set only for one NIC at a time
 * If MAC lookup failed (bad ACPI data or bad return) fall back
   to regular r8152 MAC setting routine.

This has been tested with TB15, WD15 docks and Dell P/N 96NP5 dongle.
It's also been tested with two devices that use r8152 simultaneously.

Remaining discussion points:
 * Greg KH had asked this to only on machines that are known to have
   \\_SB.AMAC
 - I would rather avoid doing this because the list will just grow every
   year.  I've added lots of error checking and restricted this to Dell.
 * There was also a request to move this to an x86
   arch_get_platform_mac_address() implementation.  
 - I haven't yet done this.  If this is the right approach.
   I would like to know the proper place in arch/x86 to put this code.
   My initial thought was a new file in arch/x86/platform/intel

Mario Limonciello (1):
  r8152: Add support for setting MAC to system's Auxiliary MAC address

 drivers/net/usb/r8152.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-03 15:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-02 16:58 [PATCH v2] r8152: Add support for setting MAC to system's Auxiliary MAC address Mario Limonciello
2016-06-02 16:58 ` Mario Limonciello
2016-06-02 17:48   ` Greg KH
2016-06-02 18:32     ` Mario_Limonciello
2016-06-02 19:02       ` Andrew Lunn
2016-06-02 19:04         ` Mario_Limonciello
2016-06-02 19:09           ` Andrew Lunn
2016-06-03 14:44             ` Mario_Limonciello
2016-06-03  2:01       ` Greg KH
2016-06-03 15:10         ` Mario_Limonciello
     [not found]   ` <1464886687-16284-2-git-send-email-mario_limonciello-8PEkshWhKlo@public.gmane.org>
2016-06-03  9:43     ` Hayes Wang
2016-06-03 15:08       ` Mario_Limonciello

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).