MLK-16357 tty: serial: lpuart: avoid report NULL interrupt
authorFugang Duan <fugang.duan@nxp.com>
Fri, 15 Sep 2017 10:50:43 +0000 (18:50 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:35 +0000 (15:38 -0500)
commit7c0cd87b65124d57c51daf94c7a1cb7a41411f7c
tree2aadab85921a102bb17a8ea9bc3a277aacadd38b
parentd3a5bcb8d9f1a2675679a8877a2710e50f218e20
MLK-16357 tty: serial: lpuart: avoid report NULL interrupt

The current driver register irq in .startup() and free the irq in
.shutdown(), then user will see the NULL interrupt output from
'cat /proc/interrupts' after the uart port test completed:
...
 41:        515          0          0          0     GICv3 257 Level     fsl-lpuart
 42:          2          0          0          0     GICv3 258 Level
...

It is better to register all the irqs during probe function via devm_request_irq()
to avoid to call free_irq().

(BuildInfo: SCFW 3e70523d, IMX-MKIMAGE 0, ATF 0)

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
drivers/tty/serial/fsl_lpuart.c