Re: [PATCH v2 1/2] spi: add new_device/delete_device sysfs interface
From: Mark Brown
Date: Thu Apr 30 2026 - 22:16:05 EST
On Sat, Apr 25, 2026 at 05:34:24PM +0000, Vishwaroop A wrote:
> + mutex_lock(&ctlr->add_lock);
> + status = __spi_add_device(spi, NULL);
> + if (status) {
> + mutex_unlock(&ctlr->add_lock);
> + spi_dev_put(spi);
> + return status;
> + }
The locking on unregistration is conditional on SPI_DYNAMIC - I think
this feature needs to be dependent on SPI_DYNAMIC since it's adding a
new way of dynamically instantiating and removing SPI devices.
Attachment:
signature.asc
Description: PGP signature