linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Add get/set ethernet address functions and ACPI MAC address pass through functionality to cdc_ncm driver
@ 2019-09-06  1:51 Charles Hyde
  2019-09-06  1:51 ` [PATCH v3 1/3] net: cdc_ncm: add get/set ethernet address functions Charles Hyde
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Charles Hyde @ 2019-09-06  1:51 UTC (permalink / raw)
  To: Oliver Neukum, Rafael J . Wysocki, Len Brown
  Cc: Mario Limonciello, Charles Hyde, Realtek linux nic maintainers,
	linux-usb, linux-acpi

In recent testing of a Dell Universal Dock D6000, I found that MAC
address pass through is not supported in the Linux drivers.  However,
this same device is supported in Windows 10 (Pro) on my personal
computer, in as much as I was able to tell Windows to assign a new MAC
address of my choosing, and I saw through wireshark the new MAC address
was pushed out to the device.  Afterward, Windows reported a new IP
address and I was able to view web pages.

This series of patches give support to cdc_ncm USB based Ethernet
controllers for programming a MAC address to the device, and also to
retrieve the device's MAC address.  This patch series further adds ACPI
MAC address pass through support specifically for the cdc_ncm driver, and
generally for any other driver that may need or want it, in furtherance of
Dell's enterprise IT policy efforts.  It was this latter that I initially
found lacking when testing a D6000 with a Dell laptop, and then I found
ifconfig was unable to set a MAC address into the device.  These patches
bring a similar level of functionality to cdc_ncm driver as is available
with the Realtek r8152 driver, and is available with Windows.

The cdc_ncm driver limits the ACPI MAC address pass through support to
only the Dell Universal Dock D6000, so no other cdc_ncm device will be
impacted.

Today's v3 patch series includes a function named get_ethernet_addr()
which replaces two instances where the same code snippet was located in
teh previous patch series.  I also created a post reset function to set
the MAC address, if there exists an ACPI MAC address pass through (MAPT)
method.  Oliver Neukum had requested a post reset function for this
purpose.


Charles Hyde (3):
  net: cdc_ncm: add get/set ethernet address functions
  ACPI: move ACPI functionality out of r8152 driver
  net: cdc_ncm: Add ACPI MAC address pass through functionality

 drivers/acpi/Makefile            |   1 +
 drivers/acpi/acpi_mac_passthru.c |  63 +++++++++++++
 drivers/net/usb/cdc_ncm.c        | 148 ++++++++++++++++++++++++++++---
 drivers/net/usb/r8152.c          |  44 +--------
 include/acpi/acpi_mac_passthru.h |  27 ++++++
 5 files changed, 232 insertions(+), 51 deletions(-)
 create mode 100644 drivers/acpi/acpi_mac_passthru.c
 create mode 100644 include/acpi/acpi_mac_passthru.h

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <20190906014827.12666-1-chip.programmer@gmail.com>]

end of thread, other threads:[~2019-09-06  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06  1:51 [PATCH v3 0/3] Add get/set ethernet address functions and ACPI MAC address pass through functionality to cdc_ncm driver Charles Hyde
2019-09-06  1:51 ` [PATCH v3 1/3] net: cdc_ncm: add get/set ethernet address functions Charles Hyde
2019-09-06  1:51 ` [PATCH v3 2/3] ACPI: move ACPI functionality out of r8152 driver Charles Hyde
2019-09-06  1:51 ` [PATCH v3 3/3] net: cdc_ncm: Add ACPI MAC address pass through functionality Charles Hyde
2019-09-06  9:22   ` Greg KH
     [not found] <20190906014827.12666-1-chip.programmer@gmail.com>
2019-09-06  1:48 ` [PATCH v3 1/3] net: cdc_ncm: add get/set ethernet address functions Charles Hyde

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