spi: spi-geni-qcom: No need for irqsave variant of spinlock calls
authorDouglas Anderson <dianders@chromium.org>
Tue, 16 Jun 2020 10:40:46 +0000 (03:40 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 13:08:09 +0000 (14:08 +0100)
commit539afdf969d6ad7ded543d9abf14596aec411fe9
tree0ec317b96f32e3c4f11fc68db6cfcc4574785520
parent0eeadddbf09a7a36ef1bc8021df1a770dc4b5370
spi: spi-geni-qcom: No need for irqsave variant of spinlock calls

The driver locks its locks in two places.

In the first usage of the lock the function doing the locking already
has a sleeping call and thus we know we can't be called from interrupt
context.  That means we can use the "spin_lock_irq" variant of the
function.

In the second usage of the lock the function is the interrupt handler
and we know interrupt handlers are called with interrupts disabled.
That means we can use the "spin_lock" variant of the function.

This patch is expected to be a no-op and is just a cleanup / slight
optimization.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20200616034044.v3.1.Ic50cccdf27d42420a63485082f8b5bf86ed1a2b6@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-geni-qcom.c