can: xilinx_can: Add check for NAPI Poll function
Subsystems (5)
PATCH 1/1 can: xilinx_can: Add check for NAPI Poll function
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
--- drivers/net/can/xilinx_can.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/net/can/xilinx_can.c +5 -4
@@ -1215,10 +1215,11 @@ static int xcan_rx_poll(struct napi_struct *napi, int quota) }if (work_done < quota) { -napi_complete_done (napi, work_done); - ier = priv->read_reg (priv,XCAN_IER_OFFSET ); - ier |=xcan_rx_int_mask (priv); - priv->write_reg (priv,XCAN_IER_OFFSET , ier); +if (napi_complete_done (napi, work_done)) { + ier = priv->read_reg (priv,XCAN_IER_OFFSET ); + ier |=xcan_rx_int_mask (priv); + priv->write_reg (priv,XCAN_IER_OFFSET , ier); + } }return work_done; }
Signature · 1 line
2.17.1
Marc Kleine-Budde
maintainerQuoted 2 lines · Srinivas Neeli
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Hi Marc,
Quoted 12 lines
-----Original Message-----
From: Marc Kleine-Budde <[email protected]>
Sent: Wednesday, February 9, 2022 1:20 PM
To: Srinivas Neeli <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Appana Durga Kedareswara Rao <[email protected]>; Srinivas Goud <[email protected]>; git <[email protected]>
Subject: Re: [PATCH] can:xilinx_can: Add check for NAPI Poll function
Quoted 6 lines
Quoted 2 lines · Srinivas Neeli
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.
It is not a bug. I am adding additional safety check( Validating the return value of "napi_complete_done" call).
Thanks
Srinivas Neeli
Quoted 9 lines
regards,
Marc--
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Marc Kleine-Budde
maintainerQuoted 9 lines · Srinivas Neeli
Quoted 6 lines · Srinivas Neeli
Quoted 2 lines
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.It is not a bug. I am adding additional safety
check( Validating the return value of "napi_complete_done" call).
Thanks for your feedback. Should this go into can or can-next?
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Hi Marc,
Quoted 17 lines
-----Original Message-----
From: Marc Kleine-Budde <[email protected]>
Sent: Wednesday, February 9, 2022 2:02 PM
To: Srinivas Neeli <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Appana Durga Kedareswara Rao <[email protected]>; Srinivas Goud <[email protected]>; git <[email protected]>
Subject: Re: [PATCH] can:xilinx_can: Add check for NAPI Poll functionQuoted 4 lines · Srinivas Neeli
Quoted 4 lines · Srinivas Neeli
Quoted 2 lines
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.It is not a bug. I am adding additional safety
check( Validating the return value of "napi_complete_done" call).Thanks for your feedback. Should this go into can or can-next?
If possible please apply on both branches.
Quoted 9 lines
regards,
Marc--
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Hi,
Quoted 22 lines · Srinivas Neeli
Hi Marc,
Quoted 20 lines
-----Original Message-----
From: Marc Kleine-Budde <[email protected]>
Sent: Wednesday, February 9, 2022 2:02 PM
To: Srinivas Neeli <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Appana Durga Kedareswara Rao <[email protected]>; Srinivas Goud <[email protected]>; git <[email protected]>
Subject: Re: [PATCH] can:xilinx_can: Add check for NAPI Poll functionQuoted 7 lines · Srinivas Neeli
Quoted 6 lines · Srinivas Neeli
Quoted 2 lines
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
It is not a bug. I am adding additional safety
check( Validating the return value of "napi_complete_done" call).Thanks for your feedback. Should this go into can or can-next?
If possible please apply on both branches.
New feature should come to next. It means can-next please.
Thanks,
Michal
Marc Kleine-Budde
maintainerQuoted 22 lines · Srinivas Neeli
Hi Marc,
Quoted 20 lines
-----Original Message-----
From: Marc Kleine-Budde <[email protected]>
Sent: Wednesday, February 9, 2022 2:02 PM
To: Srinivas Neeli <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Appana Durga Kedareswara Rao <[email protected]>; Srinivas Goud <[email protected]>; git <[email protected]>
Subject: Re: [PATCH] can:xilinx_can: Add check for NAPI Poll functionQuoted 7 lines · Srinivas Neeli
Quoted 6 lines · Srinivas Neeli
Quoted 2 lines
Add check for NAPI poll function to avoid enabling interrupts with out completing the NAPI call.
Thanks for the patch. Does this fix a bug? If so, please add a Fixes:
tag that lists the patch that introduced that bug.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
It is not a bug. I am adding additional safety
check( Validating the return value of "napi_complete_done" call).Thanks for your feedback. Should this go into can or can-next?
If possible please apply on both branches.
That's not an option. Going for can-next as Michal Simek suggested.
Adding to linux-can-next/testing.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |