[PATCH v3 2/2] mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC
Markus Elfring
Markus.Elfring at web.de
Wed Aug 28 22:10:06 PDT 2024
> 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
…
> +++ b/drivers/mtd/nand/raw/nuvoton_ma35d1_nand.c
> @@ -0,0 +1,1068 @@
…
> +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
More information about the linux-mtd
mailing list