Re: [PATCH v8 3/3] dmaengine: add driver for Sophgo CV18XX/SG200X dmamux

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

 



On Mon, Jul 29, 2024 at 01:38:06PM GMT, Markus Elfring wrote:
>
> > +++ b/drivers/dma/cv1800-dmamux.c
> > @@ -0,0 +1,259 @@
>
> > +static void cv1800_dmamux_free(struct device *dev, void *route_data)
> > +{
>
> > +	unsigned long flags;
> > +
> > +	spin_lock_irqsave(&dmamux->lock, flags);
>
> > +	spin_unlock_irqrestore(&dmamux->lock, flags);
>
> 
> Under which circumstances would you become interested to apply a statement
> like “guard(spinlock_irqsave)(&dmamux->lock);”?
> https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/spinlock.h#L574
> 
> Regards,
> Markus

This is very useful and I am pretty intersted, but I am not sure it
is suitable. Could you share some technical detail (or some documents)
about this method?

Regards,
Inochi




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux