All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers
@ 2021-12-10 20:46 Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing Sergey Shtylyov
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Felipe Balbi, Alan Stern, Bin Liu

Here are 6 patches against the 'usb-linus' branch of Greg KH's 'usb.git' repo.
The affected host/gadget drivers call platform_get_irq() but override its result
in case of error which prevents the deferred probing from working. These patches
now logically depend on the previously posted patch:

https://marc.info/?l=linux-kernel&m=163623041902285

I've now removed 4 patches which didn't really fix anything from this series...

Sergey Shtylyov (6):
  usb: gadget: udc: gr: fix deferred probing
  usb: host: ehci-atmel: fix deferred probing
  usb: host: ehci-orion: fix deferred probing
  usb: host: ohci-da8xx: fix deferred probing
  usb: host: ohci-nxp: fix deferred probing
  usb: musb: core: fix deferred probing

 drivers/usb/gadget/udc/gr_udc.c      | 8 ++++----
 drivers/usb/host/ehci-atmel.c        | 4 ++--
 drivers/usb/host/ehci-orion.c        | 4 ++--
 drivers/usb/host/ohci-da8xx.c        | 2 +-
 drivers/usb/host/ohci-nxp.c          | 2 +-
 drivers/usb/musb/musb_core.c         | 4 ++--
 10 files changed, 12 insertions(+), 12 deletions(-)

-- 
2.26.3


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

* [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
@ 2021-12-10 20:46 ` Sergey Shtylyov
  2021-12-13 14:11   ` Greg Kroah-Hartman
  2021-12-10 20:46   ` Sergey Shtylyov
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Felipe Balbi

The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
can safely ignore it...

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
---
Changes in version 3:
- corrected the "Fixes:" tag.

Changes in version 2:
- updated the patch description on treating IRQ0.

 drivers/usb/gadget/udc/gr_udc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c
index 4b35739d3695..4aa5246a77e5 100644
--- a/drivers/usb/gadget/udc/gr_udc.c
+++ b/drivers/usb/gadget/udc/gr_udc.c
@@ -2136,15 +2136,15 @@ static int gr_probe(struct platform_device *pdev)
 		return PTR_ERR(regs);
 
 	dev->irq = platform_get_irq(pdev, 0);
-	if (dev->irq <= 0)
-		return -ENODEV;
+	if (dev->irq < 0)
+		return dev->irq;
 
 	/* Some core configurations has separate irqs for IN and OUT events */
 	dev->irqi = platform_get_irq(pdev, 1);
 	if (dev->irqi > 0) {
 		dev->irqo = platform_get_irq(pdev, 2);
-		if (dev->irqo <= 0)
-			return -ENODEV;
+		if (dev->irqo < 0)
+			return dev->irqo;
 	} else {
 		dev->irqi = 0;
 	}
-- 
2.26.3


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

* [PATCH v3 2/6] usb: host: ehci-atmel: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
@ 2021-12-10 20:46   ` Sergey Shtylyov
  2021-12-10 20:46   ` Sergey Shtylyov
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Alan Stern
  Cc: Nicolas Ferre, Alexandre Belloni, Ludovic Desroches, linux-arm-kernel

The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
can safely ignore it...

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
---
Changes in version 3:
- corrected the "Fixes:" tag;
- added Alan's ACK.

Changes in version 2:
- removed the check for IRQ0, updated the patch description accordingly.

 drivers/usb/host/ehci-atmel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 05d41fd65f25..bc3fdb588e6b 100644
--- a/drivers/usb/host/ehci-atmel.c
+++ b/drivers/usb/host/ehci-atmel.c
@@ -104,8 +104,8 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
 	pr_debug("Initializing Atmel-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq <= 0) {
-		retval = -ENODEV;
+	if (irq < 0) {
+		retval = irq;
 		goto fail_create_hcd;
 	}
 
-- 
2.26.3


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

* [PATCH v3 2/6] usb: host: ehci-atmel: fix deferred probing
@ 2021-12-10 20:46   ` Sergey Shtylyov
  0 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Alan Stern
  Cc: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel

The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
can safely ignore it...

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
---
Changes in version 3:
- corrected the "Fixes:" tag;
- added Alan's ACK.

Changes in version 2:
- removed the check for IRQ0, updated the patch description accordingly.

 drivers/usb/host/ehci-atmel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 05d41fd65f25..bc3fdb588e6b 100644
--- a/drivers/usb/host/ehci-atmel.c
+++ b/drivers/usb/host/ehci-atmel.c
@@ -104,8 +104,8 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
 	pr_debug("Initializing Atmel-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq <= 0) {
-		retval = -ENODEV;
+	if (irq < 0) {
+		retval = irq;
 		goto fail_create_hcd;
 	}
 
-- 
2.26.3


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3 3/6] usb: host: ehci-orion: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing Sergey Shtylyov
  2021-12-10 20:46   ` Sergey Shtylyov
@ 2021-12-10 20:46 ` Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 4/6] usb: host: ohci-da8xx: " Sergey Shtylyov
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Alan Stern

The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
can safely ignore it...

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
---
Changes in version 3:
- corrected the "Fixes:" tag;
- added Alan's ACK.

Changes in version 2:
- removed the check for IRQ0, updated the patch description accordingly.

 drivers/usb/host/ehci-orion.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index 3626758b3e2a..36ea4febe29b 100644
--- a/drivers/usb/host/ehci-orion.c
+++ b/drivers/usb/host/ehci-orion.c
@@ -222,8 +222,8 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
 	pr_debug("Initializing Orion-SoC USB Host Controller\n");
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq <= 0) {
-		err = -ENODEV;
+	if (irq < 0) {
+		err = irq;
 		goto err;
 	}
 
-- 
2.26.3


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

* [PATCH v3 4/6] usb: host: ohci-da8xx: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
                   ` (2 preceding siblings ...)
  2021-12-10 20:46 ` [PATCH v3 3/6] usb: host: ehci-orion: " Sergey Shtylyov
@ 2021-12-10 20:46 ` Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 5/6] usb: host: ohci-nxp: " Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 6/6] usb: musb: core: " Sergey Shtylyov
  5 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Alan Stern

The driver overrides the error codes returned by platform_get_irq() to 
-ENODEV for some strange reason, so if it returns -EPROBE_DEFER, the driver
will fail the probe permanently instead of the deferred probing. Switch to
propagating the error codes upstream.

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
---
Changes in version 3:
- corrected the "Fixes:" tag;
- added Alan's ACK.

Changes in version 2:
- removed the wrong "From:" tag and wrong sign-off.

 drivers/usb/host/ohci-da8xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c
index 1371b0c249ec..d1326c6ccade 100644
--- a/drivers/usb/host/ohci-da8xx.c
+++ b/drivers/usb/host/ohci-da8xx.c
@@ -446,7 +446,7 @@ static int ohci_da8xx_probe(struct platform_device *pdev)
 
 	hcd_irq = platform_get_irq(pdev, 0);
 	if (hcd_irq < 0) {
-		error = -ENODEV;
+		error = hcd_irq;
 		goto err;
 	}
 
-- 
2.26.3


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

* [PATCH v3 5/6] usb: host: ohci-nxp: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
                   ` (3 preceding siblings ...)
  2021-12-10 20:46 ` [PATCH v3 4/6] usb: host: ohci-da8xx: " Sergey Shtylyov
@ 2021-12-10 20:46 ` Sergey Shtylyov
  2021-12-10 20:46 ` [PATCH v3 6/6] usb: musb: core: " Sergey Shtylyov
  5 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Alan Stern; +Cc: Vladimir Zapolskiy

The driver overrides the error codes returned by platform_get_irq() to
-ENXIO for some strange reason, so if it returns -EPROBE_DEFER, the driver
will fail the probe permanently instead of the deferred probing. Switch to
propagating the error codes upstream.

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
---
Changes in version 3:
- corrected the "Fixes:" tag;
- added Alan's and Vladimir's ACKs.

Changes in version 2:
- refreshed the patch;
- removed the eliipsis in the patch description.

 drivers/usb/host/ohci-nxp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c
index 85878e8ad331..a84c5e714372 100644
--- a/drivers/usb/host/ohci-nxp.c
+++ b/drivers/usb/host/ohci-nxp.c
@@ -212,7 +212,7 @@ static int ohci_hcd_nxp_probe(struct platform_device *pdev)
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
-		ret = -ENXIO;
+		ret = irq;
 		goto fail_resource;
 	}
 
-- 
2.26.3


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

* [PATCH v3 6/6] usb: musb: core: fix deferred probing
  2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
                   ` (4 preceding siblings ...)
  2021-12-10 20:46 ` [PATCH v3 5/6] usb: host: ohci-nxp: " Sergey Shtylyov
@ 2021-12-10 20:46 ` Sergey Shtylyov
  5 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-10 20:46 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman, Bin Liu

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the
error codes upstream. IRQ0 is no longer returned by platform_get_irq(),
so we now can safely ignore it...

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
---
Changes in version 3:
- corrected the "Fixes:" tag.

Changes in version 2:
- updated the patch description on treating IRQ0.

 drivers/usb/musb/musb_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index f7b1d5993f8c..e57abc54d12b 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2618,8 +2618,8 @@ static int musb_probe(struct platform_device *pdev)
 	int		irq = platform_get_irq_byname(pdev, "mc");
 	void __iomem	*base;
 
-	if (irq <= 0)
-		return -ENODEV;
+	if (irq < 0)
+		return irq;
 
 	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
-- 
2.26.3


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

* Re: [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing
  2021-12-10 20:46 ` [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing Sergey Shtylyov
@ 2021-12-13 14:11   ` Greg Kroah-Hartman
  2021-12-13 15:21     ` Sergey Shtylyov
  0 siblings, 1 reply; 12+ messages in thread
From: Greg Kroah-Hartman @ 2021-12-13 14:11 UTC (permalink / raw)
  To: Sergey Shtylyov; +Cc: linux-usb, Felipe Balbi

On Fri, Dec 10, 2021 at 11:46:29PM +0300, Sergey Shtylyov wrote:
> The driver overrides the error codes and IRQ0 returned by platform_get_irq()
> to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
> permanently instead of the deferred probing. Switch to propagating the error
> codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
> can safely ignore it...

What commit keeps IRQ0 from being returned by platform_get_irq()?

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

* Re: [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing
  2021-12-13 14:11   ` Greg Kroah-Hartman
@ 2021-12-13 15:21     ` Sergey Shtylyov
  0 siblings, 0 replies; 12+ messages in thread
From: Sergey Shtylyov @ 2021-12-13 15:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-usb, Felipe Balbi

Hello!

On 12/13/21 5:11 PM, Greg Kroah-Hartman wrote:

>> The driver overrides the error codes and IRQ0 returned by platform_get_irq()
>> to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
>> permanently instead of the deferred probing. Switch to propagating the error
>> codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
>> can safely ignore it...
> 
> What commit keeps IRQ0 from being returned by platform_get_irq()?

   It's yet unmerged patch on which (as I wrote in the cover letter) the series
depend:

https://marc.info/?l=linux-kernel&m=163623041902285

MBR, Sergey

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

* Re: [PATCH v3 2/6] usb: host: ehci-atmel: fix deferred probing
  2021-12-10 20:46   ` Sergey Shtylyov
@ 2022-04-15 14:55     ` Nicolas Ferre
  -1 siblings, 0 replies; 12+ messages in thread
From: Nicolas Ferre @ 2022-04-15 14:55 UTC (permalink / raw)
  To: Sergey Shtylyov, linux-usb, Greg Kroah-Hartman, Alan Stern
  Cc: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel,
	Cristian Birsan, Claudiu Beznea

On 10/12/2021 at 21:46, Sergey Shtylyov wrote:
> The driver overrides the error codes and IRQ0 returned by platform_get_irq()
> to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
> permanently instead of the deferred probing. Switch to propagating the error
> codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
> can safely ignore it...
> 
> Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Thanks, best regards,
   Nicolas

> ---
> Changes in version 3:
> - corrected the "Fixes:" tag;
> - added Alan's ACK.
> 
> Changes in version 2:
> - removed the check for IRQ0, updated the patch description accordingly.
> 
>   drivers/usb/host/ehci-atmel.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
> index 05d41fd65f25..bc3fdb588e6b 100644
> --- a/drivers/usb/host/ehci-atmel.c
> +++ b/drivers/usb/host/ehci-atmel.c
> @@ -104,8 +104,8 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
>          pr_debug("Initializing Atmel-SoC USB Host Controller\n");
> 
>          irq = platform_get_irq(pdev, 0);
> -       if (irq <= 0) {
> -               retval = -ENODEV;
> +       if (irq < 0) {
> +               retval = irq;
>                  goto fail_create_hcd;
>          }
> 
> --
> 2.26.3
> 


-- 
Nicolas Ferre

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

* Re: [PATCH v3 2/6] usb: host: ehci-atmel: fix deferred probing
@ 2022-04-15 14:55     ` Nicolas Ferre
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Ferre @ 2022-04-15 14:55 UTC (permalink / raw)
  To: Sergey Shtylyov, linux-usb, Greg Kroah-Hartman, Alan Stern
  Cc: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel,
	Cristian Birsan, Claudiu Beznea

On 10/12/2021 at 21:46, Sergey Shtylyov wrote:
> The driver overrides the error codes and IRQ0 returned by platform_get_irq()
> to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
> permanently instead of the deferred probing. Switch to propagating the error
> codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
> can safely ignore it...
> 
> Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Thanks, best regards,
   Nicolas

> ---
> Changes in version 3:
> - corrected the "Fixes:" tag;
> - added Alan's ACK.
> 
> Changes in version 2:
> - removed the check for IRQ0, updated the patch description accordingly.
> 
>   drivers/usb/host/ehci-atmel.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
> index 05d41fd65f25..bc3fdb588e6b 100644
> --- a/drivers/usb/host/ehci-atmel.c
> +++ b/drivers/usb/host/ehci-atmel.c
> @@ -104,8 +104,8 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
>          pr_debug("Initializing Atmel-SoC USB Host Controller\n");
> 
>          irq = platform_get_irq(pdev, 0);
> -       if (irq <= 0) {
> -               retval = -ENODEV;
> +       if (irq < 0) {
> +               retval = irq;
>                  goto fail_create_hcd;
>          }
> 
> --
> 2.26.3
> 


-- 
Nicolas Ferre

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-04-15 14:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 20:46 [PATCH v3 0/6] Fix deferred probing in the USB host/gadget drivers Sergey Shtylyov
2021-12-10 20:46 ` [PATCH v3 1/6] usb: gadget: udc: gr: fix deferred probing Sergey Shtylyov
2021-12-13 14:11   ` Greg Kroah-Hartman
2021-12-13 15:21     ` Sergey Shtylyov
2021-12-10 20:46 ` [PATCH v3 2/6] usb: host: ehci-atmel: " Sergey Shtylyov
2021-12-10 20:46   ` Sergey Shtylyov
2022-04-15 14:55   ` Nicolas Ferre
2022-04-15 14:55     ` Nicolas Ferre
2021-12-10 20:46 ` [PATCH v3 3/6] usb: host: ehci-orion: " Sergey Shtylyov
2021-12-10 20:46 ` [PATCH v3 4/6] usb: host: ohci-da8xx: " Sergey Shtylyov
2021-12-10 20:46 ` [PATCH v3 5/6] usb: host: ohci-nxp: " Sergey Shtylyov
2021-12-10 20:46 ` [PATCH v3 6/6] usb: musb: core: " Sergey Shtylyov

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.