Skip to contentSkip to conversation

usb: host: ehci-atmel: Use dev_dbg() for debug messages

PATCH In review Mihai Sain 4 participants 4 messages Oct 14

Subsystems (3)
lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

PATCH 1/1 usb: host: ehci-atmel: Use dev_dbg() for debug messages

Use dev_dbg() instead of pr_debug() in the probe function to provide a more specific device message.
This ensures the log message is properly associated with the corresponding platform device instance.

---
 drivers/usb/host/ehci-atmel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-atmel.c +1 -1
index 65747270fd88..b6ba7005be69 100644
@@ -99,7 +99,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
 	if (usb_disabled())
 		return -ENODEV;
 
-	pr_debug("Initializing Atmel-SoC USB Host Controller\n");
+	dev_dbg(&pdev->dev, "Initializing Atmel-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
Signature · 1 line
2.56.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines

Use dev_dbg() instead of pr_debug() in the probe function to provide a more specific device message.
This ensures the log message is properly associated with the corresponding platform device instance.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Mihai Sain

Hello Mihai,

Am Wed, Oct 14, 2026 at 03:16:56PM +0300 schrieb Mihai Sain:

Quoted 15 lines

Use dev_dbg() instead of pr_debug() in the probe function to provide a more specific device message.
This ensures the log message is properly associated with the corresponding platform device instance.

---
 drivers/usb/host/ehci-atmel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-atmel.c +0 -0
index 65747270fd88..b6ba7005be69 100644

drivers/usb/host/ehci-atmel.c static int ehci_atmel_drv_probe(struct platform_device *pdev) · line 105

Quoted 8 lines
drivers/usb/host/ehci-atmel.c +1 -1
@@ -99,7 +99,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
 	if (usb_disabled())
 		return -ENODEV;
 
-	pr_debug("Initializing Atmel-SoC USB Host Controller\n");
+	dev_dbg(&pdev->dev, "Initializing Atmel-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {

Greets
Alex

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Mihai Sain
Quoted 7 lines · Mihai Sain

Use dev_dbg() instead of pr_debug() in the probe function to provide a more specific device message.
This ensures the log message is properly associated with the corresponding platform device instance.

---

Quoted 19 lines
 drivers/usb/host/ehci-atmel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-atmel.c +1 -1
index 65747270fd88..b6ba7005be69 100644
@@ -99,7 +99,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
 	if (usb_disabled())
 		return -ENODEV;
 
-	pr_debug("Initializing Atmel-SoC USB Host Controller\n");
+	dev_dbg(&pdev->dev, "Initializing Atmel-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
Signature · 1 line
2.56.0