Re: [PATCH v3 1/7] mfd: syscon: Add reference counting and device managed support

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

 



…
> +++ b/drivers/mfd/syscon.c
…
> +static struct syscon *syscon_from_regmap(struct regmap *regmap)
+{
> +	struct syscon *entry, *syscon = NULL;
> +
> +	spin_lock(&syscon_list_slock);
> +
> +	list_for_each_entry(entry, &syscon_list, list)
…
> +	spin_unlock(&syscon_list_slock);
> +
> +	return syscon;
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(spinlock)(&syscon_list_slock);”?
https://elixir.bootlin.com/linux/v6.10-rc7/source/include/linux/spinlock.h#L561

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