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

Hi,

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 | 2 +-
 drivers/usb/dwc3/host.c     | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-27  7:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-25 12:13 [PATCH v1 0/2] usb: core: acpi: Rely on the sysdev pointer Heikki Krogerus
2022-04-25 12:13 ` [PATCH v1 1/2] usb: core: acpi: Use the sysdev pointer instead of controller device Heikki Krogerus
2022-04-26 10:18   ` Andy Shevchenko
2022-04-27  7:20     ` Heikki Krogerus
2022-04-25 12:13 ` [PATCH v1 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