The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe()
@ 2026-05-15 23:54 Mauricio Faria de Oliveira
  2026-05-15 23:54 ` [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message Mauricio Faria de Oliveira
  2026-05-15 23:54 ` [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() Mauricio Faria de Oliveira
  0 siblings, 2 replies; 5+ messages in thread
From: Mauricio Faria de Oliveira @ 2026-05-15 23:54 UTC (permalink / raw)
  To: Matthieu CASTET, Stanislaw Gruszka, Greg Kroah-Hartman
  Cc: kernel-dev, linux-atm-general, linux-usb, linux-kernel,
	Mauricio Faria de Oliveira

This series does a couple of cosmetic changes to ueagle-atm's .probe().

Patch 1 adjusts the 'device found' probe message.
Patch 2 adds a missing 'leaving  uea_probe' debug message.

With:
  # echo 2 >/sys/module/ueagle_atm/parameters/debug
  # echo 'file drivers/usb/atm/ueagle-atm.c +p' >/sys/kernel/debug/dynamic_debug/control

Changes:
  [   84.813964] usb 1-1: [ueagle-atm vdbg]  entering uea_probe
 -[   84.813970] usb 1-1: [ueagle-atm] ADSL device founded vid (0X1039) pid (0X2101) Rev (0X2581): Eagle I
 +[   84.813970] usb 1-1: [ueagle-atm] ADSL device found with vid (0X1039) pid (0X2101) Rev (0X2581): Eagle I
  [   85.571855] usb 1-1: [ueagle-atm vdbg]  entering uea_load_firmware
  ...
  [  148.697655] usb 1-1: [ueagle-atm vdbg]  leaving  uea_load_firmware
 +[  148.697665] usb 1-1: [ueagle-atm vdbg]  leaving  uea_probe

Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
---
Mauricio Faria de Oliveira (2):
      usb: atm: ueagle-atm: adjust 'device found' message
      usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe()

 drivers/usb/atm/ueagle-atm.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
base-commit: 5d6919055dec134de3c40167a490f33c74c12581
change-id: 20260515-ueagle-atm_cosmetic-bf1805e4ae71

Best regards,
-- 
Mauricio Faria de Oliveira <mfo@igalia.com>


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

* [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message
  2026-05-15 23:54 [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira
@ 2026-05-15 23:54 ` Mauricio Faria de Oliveira
  2026-05-16  7:18   ` Greg Kroah-Hartman
  2026-05-15 23:54 ` [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() Mauricio Faria de Oliveira
  1 sibling, 1 reply; 5+ messages in thread
From: Mauricio Faria de Oliveira @ 2026-05-15 23:54 UTC (permalink / raw)
  To: Matthieu CASTET, Stanislaw Gruszka, Greg Kroah-Hartman
  Cc: kernel-dev, linux-atm-general, linux-usb, linux-kernel,
	Mauricio Faria de Oliveira

Correct the verb form and add 'with' for clarity.

Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
---
 drivers/usb/atm/ueagle-atm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index f3ae72feb5bfc313ccfa1ab6a9bb40fcd8f5800a..2730e7d41c89a354e115e38d97e314f888c62137 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2590,7 +2590,7 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 	int ret;
 
 	uea_enters(usb);
-	uea_info(usb, "ADSL device founded vid (%#X) pid (%#X) Rev (%#X): %s\n",
+	uea_info(usb, "ADSL device found with vid (%#X) pid (%#X) Rev (%#X): %s\n",
 		le16_to_cpu(usb->descriptor.idVendor),
 		le16_to_cpu(usb->descriptor.idProduct),
 		le16_to_cpu(usb->descriptor.bcdDevice),

-- 
2.51.0


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

* [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe()
  2026-05-15 23:54 [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira
  2026-05-15 23:54 ` [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message Mauricio Faria de Oliveira
@ 2026-05-15 23:54 ` Mauricio Faria de Oliveira
  2026-05-16  7:19   ` Greg Kroah-Hartman
  1 sibling, 1 reply; 5+ messages in thread
From: Mauricio Faria de Oliveira @ 2026-05-15 23:54 UTC (permalink / raw)
  To: Matthieu CASTET, Stanislaw Gruszka, Greg Kroah-Hartman
  Cc: kernel-dev, linux-atm-general, linux-usb, linux-kernel,
	Mauricio Faria de Oliveira

Pair the existing uea_enters() (function entry debug message) with
a missing uea_leaves() (function exit debug message) in uea_probe().

Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
---
 drivers/usb/atm/ueagle-atm.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index 2730e7d41c89a354e115e38d97e314f888c62137..969d3d208680359c0c1a3efd581a8ce2fd8b1004 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2598,8 +2598,10 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 
 	usb_reset_device(usb);
 
-	if (UEA_IS_PREFIRM(id))
-		return uea_load_firmware(usb, UEA_CHIP_VERSION(id));
+	if (UEA_IS_PREFIRM(id)) {
+		ret = uea_load_firmware(usb, UEA_CHIP_VERSION(id));
+		goto out;
+	}
 
 	ret = usbatm_usb_probe(intf, id, &uea_usbatm_driver);
 	if (ret == 0) {
@@ -2613,6 +2615,8 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 		wake_up_process(sc->kthread);
 	}
 
+out:
+	uea_leaves(usb);
 	return ret;
 }
 

-- 
2.51.0


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

* Re: [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message
  2026-05-15 23:54 ` [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message Mauricio Faria de Oliveira
@ 2026-05-16  7:18   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2026-05-16  7:18 UTC (permalink / raw)
  To: Mauricio Faria de Oliveira
  Cc: Matthieu CASTET, Stanislaw Gruszka, kernel-dev, linux-atm-general,
	linux-usb, linux-kernel

On Fri, May 15, 2026 at 08:54:12PM -0300, Mauricio Faria de Oliveira wrote:
> Correct the verb form and add 'with' for clarity.
> 
> Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
> ---
>  drivers/usb/atm/ueagle-atm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
> index f3ae72feb5bfc313ccfa1ab6a9bb40fcd8f5800a..2730e7d41c89a354e115e38d97e314f888c62137 100644
> --- a/drivers/usb/atm/ueagle-atm.c
> +++ b/drivers/usb/atm/ueagle-atm.c
> @@ -2590,7 +2590,7 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
>  	int ret;
>  
>  	uea_enters(usb);
> -	uea_info(usb, "ADSL device founded vid (%#X) pid (%#X) Rev (%#X): %s\n",
> +	uea_info(usb, "ADSL device found with vid (%#X) pid (%#X) Rev (%#X): %s\n",
>  		le16_to_cpu(usb->descriptor.idVendor),
>  		le16_to_cpu(usb->descriptor.idProduct),
>  		le16_to_cpu(usb->descriptor.bcdDevice),

When drivers work properly, they are quiet, so that means this line
should be removed entirely.

thanks,

greg k-h

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

* Re: [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe()
  2026-05-15 23:54 ` [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() Mauricio Faria de Oliveira
@ 2026-05-16  7:19   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2026-05-16  7:19 UTC (permalink / raw)
  To: Mauricio Faria de Oliveira
  Cc: Matthieu CASTET, Stanislaw Gruszka, kernel-dev, linux-atm-general,
	linux-usb, linux-kernel

On Fri, May 15, 2026 at 08:54:13PM -0300, Mauricio Faria de Oliveira wrote:
> Pair the existing uea_enters() (function entry debug message) with
> a missing uea_leaves() (function exit debug message) in uea_probe().

All of those should also be removed, we have function tracing if people
really need/want to see this info.

thanks,

greg k-h

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

end of thread, other threads:[~2026-05-16  7:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15 23:54 [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira
2026-05-15 23:54 ` [PATCH 1/2] usb: atm: ueagle-atm: adjust 'device found' message Mauricio Faria de Oliveira
2026-05-16  7:18   ` Greg Kroah-Hartman
2026-05-15 23:54 ` [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() Mauricio Faria de Oliveira
2026-05-16  7:19   ` Greg Kroah-Hartman

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