On Thu, Mar 31, 2022 at 11:49 PM <niravkumar.l.rabara@xxxxxxxxx> wrote: > > From: Niravkumar L Rabara <niravkumar.l.rabara@xxxxxxxxx> > > Altera hardware mutex soft IP provides hardware assistance for > synchronization and mutual exclusion between processors in > asymmetric/symmetric multiprocessing (AMP/SMP) system or > multi processes/threads in uniprocessor system. > > Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@xxxxxxxxx> > --- > .../bindings/misc/altera-hwmutex.yaml | 47 +++ > drivers/misc/Kconfig | 6 + > drivers/misc/Makefile | 1 + > drivers/misc/altera_hwmutex.c | 321 ++++++++++++++++++ > include/linux/altera_hwmutex.h | 42 +++ Why does this use a custom interface rather than the generic drivers/hwspinlock/ subsystem? Arnd