Nuvoton MA35 SoCs NAND Flash Interface Controller
supports 2KB, 4KB and 8KB page size, and up to 8-bit,
12-bit, and 24-bit hardware ECC calculation circuit
to protect data communication.
You may occasionally put more than 53 characters into text lines
of such a change description.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.11-rc5#n45
…
quoted hunk ↗ jump to hunk
+++ b/drivers/mtd/nand/raw/nuvoton_ma35d1_nand.c
…
+static irqreturn_t ma35_nand_irq(int irq, void *id)
+{
…
+ u32 isr;
+
+ spin_lock(&nand->dma_lock);
…
+ spin_unlock(&nand->dma_lock);
+
+ return IRQ_HANDLED;
+}
…
Under which circumstances would you become interested to apply a statement
like “guard(spinlock)(&nand->dma_lock);”?
https://elixir.bootlin.com/linux/v6.11-rc5/source/include/linux/spinlock.h#L559
Regards,
Markus