[PATCH net-next v3 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC
Andrew Lunn
andrew at lunn.ch
Tue Dec 1 09:23:42 PST 2026
> +/* Protect the list of MDIO providers, keyed by their shared syscon regmap. */
> +static DEFINE_MUTEX(syna_mdio_lock);
> +static LIST_HEAD(syna_mdio_owners);
A linked list seems a bit over the top. syna_dwmac_claim_mdio() could
use test_and_set_bit(), which is atomic, no need for a mutex, and if
the bit is already set, return EINVAL. The release method can probably
use clear_bit().
Andrew
---
pw-bot: cr
Andrew
More information about the linux-arm-kernel
mailing list