* [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
` (2 more replies)
0 siblings, 3 replies; 7+ 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] 7+ 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 2026-05-20 22:35 ` [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira 2 siblings, 1 reply; 7+ 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] 7+ 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; 7+ 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] 7+ 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 2026-05-20 22:35 ` [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira 2 siblings, 1 reply; 7+ 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] 7+ 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 2026-05-18 14:46 ` Mauricio Faria de Oliveira 0 siblings, 1 reply; 7+ 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] 7+ messages in thread
* Re: [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() 2026-05-16 7:19 ` Greg Kroah-Hartman @ 2026-05-18 14:46 ` Mauricio Faria de Oliveira 0 siblings, 0 replies; 7+ messages in thread From: Mauricio Faria de Oliveira @ 2026-05-18 14:46 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Matthieu CASTET, Stanislaw Gruszka, kernel-dev, linux-atm-general, linux-usb, linux-kernel On 2026-05-16 04:19, Greg Kroah-Hartman wrote: > 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. Agreed. I'll send an updated series based on your feedback. Thanks. > > thanks, > > greg k-h -- Mauricio ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .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 ` [PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe() Mauricio Faria de Oliveira @ 2026-05-20 22:35 ` Mauricio Faria de Oliveira 2 siblings, 0 replies; 7+ messages in thread From: Mauricio Faria de Oliveira @ 2026-05-20 22:35 UTC (permalink / raw) To: Matthieu CASTET, Stanislaw Gruszka, Greg Kroah-Hartman Cc: kernel-dev, linux-usb, linux-kernel On 2026-05-15 20:54, Mauricio Faria de Oliveira wrote: > This series does a couple of cosmetic changes to ueagle-atm's .probe(). Different approach as per Greg's suggestions: https://lore.kernel.org/all/20260520-ueagle-atm-cleanup-v1-0-010c8bc7b214@igalia.com/ -- Mauricio ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-05-20 22:35 UTC | newest] Thread overview: 7+ 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 2026-05-18 14:46 ` Mauricio Faria de Oliveira 2026-05-20 22:35 ` [PATCH 0/2] usb: atm: ueagle-atm: cosmetic changes to .probe() Mauricio Faria de Oliveira
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.