usb: ohci-at91: Use dynamic device name for OHCI HCD creation
Subsystems (3)
PATCH v2 1/1 usb: ohci-at91: Use dynamic device name for OHCI HCD creation
Use the dynamic device name instead of the hardcoded string "at91" when creating the OHCI host controller driver.
This ensures that the device name is more flexible
and correctly reflects the actual device in the system. This will be in sync with ehci at91 driver.
Before this patch:
[root@sam9x75eb ~]$ dmesg | grep usb
[ 1.464487] usb usb1: Manufacturer: Linux 6.16.0-rc2 ehci_hcd [ 1.470210] usb usb1: SerialNumber: 700000.usb-ehci [ 1.595683] usb usb2: Manufacturer: Linux 6.16.0-rc2 ohci_hcd [ 1.601406] usb usb2: SerialNumber: at91
After this patch:
[root@sam9x75eb ~]$ dmesg | grep usb
[ 1.464487] usb usb1: Manufacturer: Linux 6.16.0-rc2 ehci_hcd [ 1.470210] usb usb1: SerialNumber: 700000.usb-ehci [ 1.595683] usb usb2: Manufacturer: Linux 6.16.0-rc2 ohci_hcd [ 1.601406] usb usb2: SerialNumber: 600000.usb-ohci
--- drivers/usb/host/ohci-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ohci-at91.c +1 -1
@@ -193,7 +193,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,if (irq <0 )return irq; - hcd =usb_create_hcd (driver, dev,"at91" ); + hcd =usb_create_hcd (driver, dev,dev_name (dev));if (!hcd)return -ENOMEM ; ohci_at91 =hcd_to_ohci_at91_priv (hcd);
base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e
Signature · 1 line
2.49.0
Quoted 16 lines · Mihai Sain
Use the dynamic device name instead of the hardcoded string "at91" when creating the OHCI host controller driver.
This ensures that the device name is more flexible
and correctly reflects the actual device in the system. This will be in sync with ehci at91 driver.Before this patch:
[root@sam9x75eb ~]$ dmesg | grep usb
[ 1.464487] usb usb1: Manufacturer: Linux 6.16.0-rc2 ehci_hcd [ 1.470210] usb usb1: SerialNumber: 700000.usb-ehci [ 1.595683] usb usb2: Manufacturer: Linux 6.16.0-rc2 ohci_hcd [ 1.601406] usb usb2: SerialNumber: at91After this patch:
Quoted 8 lines
[root@sam9x75eb ~]$ dmesg | grep usb
[ 1.464487] usb usb1: Manufacturer: Linux 6.16.0-rc2 ehci_hcd [ 1.470210] usb usb1: SerialNumber: 700000.usb-ehci [ 1.595683] usb usb2: Manufacturer: Linux 6.16.0-rc2 ohci_hcd [ 1.601406] usb usb2: SerialNumber: 600000.usb-ohciSigned-off-by Mihai Sain <[email protected]>---
Quoted 21 lines
drivers/usb/host/ohci-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/host/ohci-at91.c +1
-1@@ -193,7 +193,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,if (irq <0 )return irq; - hcd =usb_create_hcd (driver, dev,"at91" ); + hcd =usb_create_hcd (driver, dev,dev_name (dev));if (!hcd)return -ENOMEM ; ohci_at91 =hcd_to_ohci_at91_priv (hcd);base-commit:
e04c78d86a9699d136910cfc0bdcf01087e3267eSignature · 1 line
2.49.0