# Re: \[PATCH v5\] flexcan: add err\_irq handler for flexcan

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2014-07-03 09:15:13 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2014/07/9348861
- Thread: https://ratatoskr.run/linuxppc-dev/2014/07/9348860/t.md

```text
On 07/03/2014 04:23 AM, Zhao Qiang wrote:
> when flexcan is not physically linked, command 'cantest' will
> trigger an err_irq, add err_irq handler for it.
> 
> Signed-off-by: Zhao Qiang <redacted>
> ---
> Changes for v2:
> 	- use a space instead of tab
> 	- use flexcan_poll_state instead of print
> Changes for v3:
> 	- return IRQ_HANDLED if err is triggered
> 	- stop transmitted packets when there is an err_interrupt 
> Changes for v4:
> 	- call flexcan_irq 
> Changes for v5:
> 	- move err_int_handling code from flexcan_irq to flexcan_err_irq
> 	- call flexcan_err_irq from flexcan_irq

Why do you move the RX IRQ handling into the error IRQ function? If I
understand you correctly you only want to do error interrupt handling
the error IRQ function, right?

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

```

## Attachments

- [signature.asc](https://ratatoskr.run/linuxppc-dev/2014/07/9348861/attachment/0) (application/pgp-signature, 242 bytes)
