diff options
| author | Patrice Chotard <patrice.chotard@foss.st.com> | 2025-12-08 10:29:11 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-12-14 13:39:06 +0300 |
| commit | e2f0ea18e560e5fa6180f52dffe434525a0cf86b (patch) | |
| tree | e1509bc9d82df0d3827567105de3b5db49b4b0ec | |
| parent | f6ed06926b510f54a0817567ffd458194ed90bd6 (diff) | |
| download | linux-e2f0ea18e560e5fa6180f52dffe434525a0cf86b.tar.xz | |
spi: stm32-ospi: Simplify SMIE interrupt test
SR_SMF status bit can only be set if CR_SMIE was previously set,
keep status bit check only.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://patch.msgid.link/20251208-upstream_qspi_ospi_updates-v2-4-62526c9467dc@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/spi/spi-stm32-ospi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-stm32-ospi.c b/drivers/spi/spi-stm32-ospi.c index 06632cdd1630..c36df8d3f5cb 100644 --- a/drivers/spi/spi-stm32-ospi.c +++ b/drivers/spi/spi-stm32-ospi.c @@ -279,7 +279,7 @@ static irqreturn_t stm32_ospi_irq(int irq, void *dev_id) cr = readl_relaxed(regs_base + OSPI_CR); sr = readl_relaxed(regs_base + OSPI_SR); - if (cr & CR_SMIE && sr & SR_SMF) { + if (sr & SR_SMF) { /* disable irq */ cr &= ~CR_SMIE; writel_relaxed(cr, regs_base + OSPI_CR); |
