OSDN Git Service

serial: imx: Only handle irqs that are actually enabled
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 18 Feb 2018 21:02:44 +0000 (22:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 14:29:58 +0000 (15:29 +0100)
commit437768962f754d9501e5ba4d98b1f2a89dc62028
tree1a882b3dbf3ae10f1d5d8c577d344481c303a51b
parent0399fd6147143ed9260041c9b466b67e60e1939e
serial: imx: Only handle irqs that are actually enabled

Handling an irq that isn't enabled can have some undesired side effects.
Some of these are mentioned in the newly introduced code comment. Some
of the irq sources already had their handling right, some don't. Handle
them all in the same consistent way.

The change for USR1_RRDY and USR1_AGTIM drops the check for
dma_is_enabled. This is correct as UCR1_RRDYEN and UCR2_ATEN are always
off if dma is enabled.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c