Linux-USB Archive on lore.kernel.org
 help / color / Atom feed
From: <Charles.Hyde@dellteam.com>
To: <Mario.Limonciello@dell.com>, <bjorn@mork.no>
Cc: <linux-acpi@vger.kernel.org>, <oliver@neukum.org>,
	<nic_swsd@realtek.com>, <linux-usb@vger.kernel.org>
Subject: RE: [RFC 2/3] ACPI: move ACPI functionality out of r8152 driver
Date: Wed, 28 Aug 2019 16:41:53 +0000
Message-ID: <d800fe75f26b4bd2aa59e5c176eae15a@AUSX13MPS307.AMER.DELL.COM> (raw)
In-Reply-To: <ae55e4a85d594e27a46cab32ad675208@AUSX13MPC101.AMER.DELL.COM>

<snipped>

> > > >
> > > > If you really want to have this policy in the driver(s), then
> > > > please consider extending eth_platform_get_mac_address() with an
> > > > x86/acpi method.  This will make the device driver code support
> > > > fetching the mac address from device tree and Sparc idproms too.
> > > > Provided the netdev
> > > folks things this is OK, of course.
> > > > This needs to be discussed there, like get_maintainer.pl would have told
> you.
> > > >
> > > > Making sure we can modify the MAC address of USB ethernet devices
> > > > is obviously a good thing regardless of how/where you fetch it.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Bjørn
> >
> > By moving acpi_mac_passthru.c into drivers/acpi/, what is the
> > suggested edit to Makefile for this?  I am thinking it could be added
> > immediately following the comment "These are (potentially) separate
> modules" with:
> >
> > apic-y += acpi_mac_passthru.o
> >
> > I removed extra spacing above for posting here.
> >
> 
> I believe that Bjørn specifically recommended to put it in drivers/acpi/x86.
> 
> Which that would mean it's:
> acpi-$(CONFIG_X86)              += x86/acpi_mac_passthrough.o


There is nothing in this method that needs to be x86 only.  If this method is made available to other architectures, then it is possible for systems based on other architectures to benefit and make inroads into the enterprise space.  Dell might be the only company using this method, but it could be adopted by others for the same reasons Dell created it in the first place.

I looked at eth_platform_get_mac_address() per Bjørn's suggestion, and added a dev_info() statement to let me know if and when this driver function is executed when I booted my chromebook and plugged in a Dell Universal Dock D6000.  Unfortunately for my experiment, this function is not called.  Therefore, it makes no sense to add code here for Dell's needs at this time.  Furthermore, I believe that it is not now, nor was it ever, Dell's intention to have on-board ethernet MAC addresses be reprogrammed by this method.. I believe it was Dell's intention to apply this to only USB Type-C based ethernet devices, hence the original code was applied to only drivers/net/usb/r8152.c.  That is not to say this method is limited to only USB Type-C devices, it can be used by whomever for whichever drivers deem it advantageous, regardless of underlying CPU architecture.

-- 
Charles

      reply index

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23 22:28 Charles.Hyde
2019-08-24  2:41 ` Greg KH
2019-08-24 10:25 ` Bjørn Mork
2019-08-24 13:24   ` Mario.Limonciello
2019-08-27 22:08     ` Charles.Hyde
2019-08-27 22:19       ` Mario.Limonciello
2019-08-28 16:41         ` Charles.Hyde [this message]

Reply instructions:

You may reply publically 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=d800fe75f26b4bd2aa59e5c176eae15a@AUSX13MPS307.AMER.DELL.COM \
    --to=charles.hyde@dellteam.com \
    --cc=Mario.Limonciello@dell.com \
    --cc=bjorn@mork.no \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=nic_swsd@realtek.com \
    --cc=oliver@neukum.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

Linux-USB Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \
		linux-usb@vger.kernel.org
	public-inbox-index linux-usb

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git