Re: [PATCH V22 17/22] mmc: sdhci-uhs2: add irq() and others

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

 



…
> +++ b/drivers/mmc/host/sdhci-uhs2.c
…
> +static bool sdhci_uhs2_request_done(struct sdhci_host *host)
> +{
…
> +	int i;
> +
> +	spin_lock_irqsave(&host->lock, flags);
…
> +	host->mrqs_done[i] = NULL;
> +
> +	spin_unlock_irqrestore(&host->lock, flags);
…

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

Regards,
Markus





[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux