Re: [PATCH] Add Altera hardware mutex driver

Arnd Bergmann
2022-04-01T14:08:35Z

On Thu, Mar 31, 2022 at 11:49 PM <niravkumar.l.rabara@intel.com> wrote:
>
> From: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
>
> 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@intel.com>
> ---
> .../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