Thread (10 messages) 10 messages, 3 authors, 2024-08-29

Re: [PATCH v3 2/2] mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC

From: Markus Elfring <hidden>
Date: 2024-08-29 05:11:03
Also in: dri-devel, linux-devicetree, linux-media, lkml

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
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help