Renesas R-Car SoCs have their spinlocks inside a unit called MFIS. Up to R-Car Gen4, there was only one MFIS unit on the SoC. Gen5, though, has multiple instances and, thus, multiple spinlock providers. The spinlocks are meant for specific cases (AP<->AP, AP<->RT, AP<->SCP...). For development on these systems, it is helpful to have an overview of registered spinlocks in debugfs. This series adds support for that. One preparational patch, and one patch with the desired functionality.
A branch for testing is here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/mfis/hwspinlock It has been tested on a SparrowHawk board (R-Car V4H) and an Ironhide board (R-Car X5H). Looking forward to comments. Wolfram Sang (2): hwspinlock: reverse logic for used channels hwspinlock: add summary in debugfs drivers/hwspinlock/hwspinlock_core.c | 110 +++++++++++++++++++++++---- 1 file changed, 95 insertions(+), 15 deletions(-) -- 2.51.0

