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

From: Markus Elfring
Date: Fri Sep 13 2024 - 11:22:25 EST



> +++ 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