[PATCH v3 05/14] ASoC: rockchip: i2s: Fix concurrency between tx/rx

Mark Brown broonie at kernel.org
Thu Aug 26 05:52:06 PDT 2021


On Thu, Aug 26, 2021 at 12:01:51PM +0800, Sugar Zhang wrote:

> +/* tx/rx ctrl lock */
> +static DEFINE_SPINLOCK(lock);
> +

Why is this a global and not part of the driver data?  It's also not
clear to me why this is a spinlock and not a mutex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20210826/8b2f8fd2/attachment.sig>


More information about the Linux-rockchip mailing list