mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usb: core: acpi: Rely on the sysdev pointer
@ 2022-04-28 11:10 Heikki Krogerus
  2022-04-28 11:10 ` [PATCH v2 1/2] usb: core: acpi: Use the sysdev pointer instead of controller device Heikki Krogerus
  2022-04-28 11:10 ` [PATCH v2 2/2] usb: dwc3: host: Stop setting the ACPI companion Heikki Krogerus
  0 siblings, 2 replies; 3+ messages in thread
From: Heikki Krogerus @ 2022-04-28 11:10 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Felipe Balbi, Rafael J. Wysocki, Mathias Nyman, Andy Shevchenko,
	linux-usb, linux-kernel

Hi,

I've added a comment in the first patch explaining that the sysdev
pointer is the host controller from firmware perspective like
requested by Andy. But please note that I did not make any comments
about the location of the sysdev ACPI companion in ACPI namespace on
purpose. We don't need to, and we actually can't make any assumptions
about that.


original cover letter:

Since we have that sysdev pointer, we need to use it also when
assigning the ACPI companion for the root hub. That should remove the
need to "manually" assign the ACPI companion to the controller device
in the xhci glue drivers like dwc3-host.c.

Assigning the ACPI companion in those glue drivers is very
problematic, because it screws up the fwnode->secondary pointer. But
as said, since we have that sysdev pointer, there is no need to
manually set it. sysdev pointer should always point to the correct
physical device from firmware PoW.

thanks,

Heikki Krogerus (2):
  usb: core: acpi: Use the sysdev pointer instead of controller device
  usb: dwc3: host: Stop setting the ACPI companion

 drivers/usb/core/usb-acpi.c | 7 +++++--
 drivers/usb/dwc3/host.c     | 2 --
 2 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-28 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 11:10 [PATCH v2 0/2] usb: core: acpi: Rely on the sysdev pointer Heikki Krogerus
2022-04-28 11:10 ` [PATCH v2 1/2] usb: core: acpi: Use the sysdev pointer instead of controller device Heikki Krogerus
2022-04-28 11:10 ` [PATCH v2 2/2] usb: dwc3: host: Stop setting the ACPI companion Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®