remoteproc: ingenic: Request IRQ disabled
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 5 Dec 2021 11:13:49 +0000 (12:13 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 6 Dec 2021 17:17:44 +0000 (10:17 -0700)
commitc768968f134b9e7ab8a584ad19030a8d2c7eca2f
treeff3c4b0c6e3184c9067964cc0ecdde9ae2e979fa
parentb20dc021ba5a813fec6dd66bb78a658e58cfce8d
remoteproc: ingenic: Request IRQ disabled

The ingenic remoteproc driver requests its IRQ and then immediately
disables it.

The disable is necessary since irq_request() normally enables the IRQ. But
there is a new flag IRQF_NO_AUTOEN that when specified keeps the IRQ
disabled. Use this new flag rather than calling disable_irq().

This slightly reduce the boilerplate code and also avoids a theoretical
race condition where the IRQ could fire between irq_request() and
disable_irq().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20211205111349.51213-1-lars@metafoo.de
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ingenic_rproc.c