Re: [PATCH v7 2/3] firmware: add Exynos ACPM protocol driver

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

 



…
> +++ b/drivers/firmware/samsung/exynos-acpm.c
> @@ -0,0 +1,771 @@
…
> +static int acpm_dequeue_by_polling(struct acpm_chan *achan,
> +				   const struct acpm_xfer *xfer)
> +{
…
> +	do {
> +		mutex_lock(&achan->rx_lock);
> +		ret = acpm_get_rx(achan, xfer);
> +		mutex_unlock(&achan->rx_lock);
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&achan->rx_lock);”?
https://elixir.bootlin.com/linux/v6.13.1/source/include/linux/mutex.h#L201

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