Re: [PATCH v10 2/2] dmaengine: Loongson1: Add Loongson-1 APB DMA driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This patch adds …

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.10#n94


…
> +++ b/drivers/dma/loongson1-apb-dma.c
> @@ -0,0 +1,675 @@
…
> +static int ls1x_dma_resume(struct dma_chan *dchan)
> +{
…
> +	spin_lock_irqsave(&chan->vchan.lock, flags);
> +	ret = ls1x_dma_start(chan, &chan->curr_lli->phys);
> +	spin_unlock_irqrestore(&chan->vchan.lock, flags);
> +
> +	return ret;
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&chan->vchan.lock);”?
https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/spinlock.h#L574

Regards,
Markus





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux