devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix ehci-fsl autoload regression on fsl-mph-dr-of
@ 2023-02-07 11:05 Alexander Stein
  2023-02-07 11:05 ` [PATCH 1/3] of: device: Ignore modalias of reused nodes Alexander Stein
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexander Stein @ 2023-02-07 11:05 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, Greg Kroah-Hartman, Alan Stern,
	Darren Stevens
  Cc: Alexander Stein, devicetree, linux-usb

Hi,

I noticed on my ls1021a based platform (TQMLS102xA) that the platform device
created by fsl-mph-dr-of does not autoload fsl-ehci. Digging into it I noticed
that starting from commit bb160ee61c04f ("drivers/usb/host/ehci-fsl: Fix
interrupt setup in host mode.") this platform device has the wrong modalias:

$ cat /sys/bus/platform/devices/8600000.usb/fsl-ehci.0/modalias 
of:NusbT(null)Cfsl-usb2-dr-v2.5Cfsl-usb2-dr

This is the modalias of the parent device, thus module ehci_fsl is not loaded
automatically. Given the reason of removing the IRQ resource from DT in
commit a1a2b7125e107 ("of/platform: Drop static setup of IRQ resource from DT
core") the of_node has to be assigned to the subnode, but for modalias the
reused of_node has to be ignored.

Patch 2 is not strictly required to fix autoloading, but this is still a bug fix.

Best regards,
Alexander

Alexander Stein (3):
  of: device: Ignore modalias of reused nodes
  of: device: Do not ignore error code in of_device_uevent_modalias
  usb: host: fsl-mph-dr-of: reuse device_set_of_node_from_dev

 drivers/of/device.c              | 6 ++++--
 drivers/usb/host/fsl-mph-dr-of.c | 3 +--
 2 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-02-08 23:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-07 11:05 [PATCH 0/3] Fix ehci-fsl autoload regression on fsl-mph-dr-of Alexander Stein
2023-02-07 11:05 ` [PATCH 1/3] of: device: Ignore modalias of reused nodes Alexander Stein
2023-02-07 11:05 ` [PATCH 2/3] of: device: Do not ignore error code in of_device_uevent_modalias Alexander Stein
2023-02-07 11:05 ` [PATCH 3/3] usb: host: fsl-mph-dr-of: reuse device_set_of_node_from_dev Alexander Stein
2023-02-08 23:44 ` [PATCH 0/3] Fix ehci-fsl autoload regression on fsl-mph-dr-of Rob Herring

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