mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
@ 2024-03-07 18:17 Colin Ian King
  2024-03-07 18:31 ` Alan Stern
  2024-03-10 11:20 ` Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Colin Ian King @ 2024-03-07 18:17 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Uwe Kleine-König, Roy Huang, Ash Aziz,
	Mike Frysinger, Seth Levy, linux-usb
  Cc: kernel-janitors, linux-kernel

Currently the variable irqflags is being set but is not being used,
it appears it should be used in the call to net2272_probe_fin
rather than IRQF_TRIGGER_LOW being used. Kudos to Uwe Kleine-König
for suggesting the fix.

Cleans up clang scan build warning:
drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags'
set but not used [-Wunused-but-set-variable]

Fixes: ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller")

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---

V2: don't remove irqflags but instead use it in the call to net2272_probe_fin

---
 drivers/usb/gadget/udc/net2272.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c
index 12e76bb62c20..19bbc38f3d35 100644
--- a/drivers/usb/gadget/udc/net2272.c
+++ b/drivers/usb/gadget/udc/net2272.c
@@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev)
 		goto err_req;
 	}
 
-	ret = net2272_probe_fin(dev, IRQF_TRIGGER_LOW);
+	ret = net2272_probe_fin(dev, irqflags);
 	if (ret)
 		goto err_io;
 
-- 
2.39.2


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

* Re: [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
  2024-03-07 18:17 [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin Colin Ian King
@ 2024-03-07 18:31 ` Alan Stern
  2024-03-10 11:20 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Stern @ 2024-03-07 18:31 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Greg Kroah-Hartman, Uwe Kleine-König, Roy Huang, Ash Aziz,
	Mike Frysinger, Seth Levy, linux-usb, kernel-janitors,
	linux-kernel

On Thu, Mar 07, 2024 at 06:17:34PM +0000, Colin Ian King wrote:
> Currently the variable irqflags is being set but is not being used,
> it appears it should be used in the call to net2272_probe_fin
> rather than IRQF_TRIGGER_LOW being used. Kudos to Uwe Kleine-König
> for suggesting the fix.
> 
> Cleans up clang scan build warning:
> drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags'
> set but not used [-Wunused-but-set-variable]
> 
> Fixes: ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller")
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>

Acked-by: Alan Stern <stern@rowland.harvard.edu>

> ---
> 
> V2: don't remove irqflags but instead use it in the call to net2272_probe_fin
> 
> ---
>  drivers/usb/gadget/udc/net2272.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c
> index 12e76bb62c20..19bbc38f3d35 100644
> --- a/drivers/usb/gadget/udc/net2272.c
> +++ b/drivers/usb/gadget/udc/net2272.c
> @@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev)
>  		goto err_req;
>  	}
>  
> -	ret = net2272_probe_fin(dev, IRQF_TRIGGER_LOW);
> +	ret = net2272_probe_fin(dev, irqflags);
>  	if (ret)
>  		goto err_io;
>  
> -- 
> 2.39.2
> 
> 

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

* Re: [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
  2024-03-07 18:17 [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin Colin Ian King
  2024-03-07 18:31 ` Alan Stern
@ 2024-03-10 11:20 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2024-03-10 11:20 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Greg Kroah-Hartman, Roy Huang, Ash Aziz, Mike Frysinger,
	Seth Levy, linux-usb, kernel-janitors, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hello,

On Thu, Mar 07, 2024 at 06:17:34PM +0000, Colin Ian King wrote:
> Currently the variable irqflags is being set but is not being used,
> it appears it should be used in the call to net2272_probe_fin
> rather than IRQF_TRIGGER_LOW being used. Kudos to Uwe Kleine-König
> for suggesting the fix.
> 
> Cleans up clang scan build warning:
> drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags'
> set but not used [-Wunused-but-set-variable]
> 
> Fixes: ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller")
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2024-03-10 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 18:17 [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin Colin Ian King
2024-03-07 18:31 ` Alan Stern
2024-03-10 11:20 ` Uwe Kleine-König

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

all inboxes | Powered by JetHome®