[PATCH 5/7] soc: aspeed: Add eSPI flash channel support

Markus Elfring Markus.Elfring at web.de
Wed Jun 24 05:14:36 PDT 2026


…
> +++ b/drivers/soc/aspeed/espi/aspeed-espi.c
…
> +static void aspeed_espi_flash_rx_work(struct work_struct *work)
> +{
> +	struct aspeed_espi_flash *flash = container_of(work, struct aspeed_espi_flash, rx_work);
> +	struct aspeed_espi *espi = container_of(flash, struct aspeed_espi, flash);
> +
> +	mutex_lock(&flash->tx_mtx);
> +	aspeed_espi_flash_handle_lun(espi);
> +	mutex_unlock(&flash->tx_mtx);
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&flash->tx_mtx);”?
https://elixir.bootlin.com/linux/v7.1.1/source/include/linux/mutex.h#L253

Regards,
Markus



More information about the linux-arm-kernel mailing list