soc: renesas: rcar-mfis: add hwspinlock support
PATCH v3 1/1 soc: renesas: rcar-mfis: add hwspinlock support
Every MFIS instance has a block of hardware spinlocks. Add support for them. Gen4 has only one instance, so the base_id is always 0. Gen5 has multiple instances, so the base_id has to be encoded in the info description. Also being a provider, a hwspinlock-private header needs to be included. Work to refactor the headers is on-going, but will need many preparational steps. Until then, we need to live with the special include.
---
Changes since v2:
* dropped patch 1 because Geert already queued it
* add comment that flex array must be last (Geert)
* calc local_id in a less scary way (Geert)
drivers/soc/renesas/Kconfig | 2 +- drivers/soc/renesas/rcar-mfis.c | 54 ++++++++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 2 deletions(-)
drivers/soc/renesas/Kconfig +1 -1
@@ -468,7 +468,7 @@ endif # RISCV config RCAR_MFIS tristate "Renesas R-Car MFIS driver" depends on ARCH_RENESAS || COMPILE_TEST - depends on MAILBOX + depends on MAILBOX && HWSPINLOCK help Select this option to enable the Renesas R-Car MFIS core driver for the MFIS device found on SoCs like R-Car. On families like Gen5, this
drivers/soc/renesas/rcar-mfis.c +53 -1
108 lines not on this page · raw message
Signature · 1 line
2.47.3
Hi Wolfram,
Quoted 8 lines · Wolfram Sang
Every MFIS instance has a block of hardware spinlocks. Add support for them. Gen4 has only one instance, so the
base_idis always 0. Gen5 has multiple instances, so thebase_idhas to be encoded in the info description. Also being a provider, a hwspinlock-private header needs to be included. Work to refactor the headers is on-going, but will need many preparational steps. Until then, we need to live with the special include.
Quoted 7 lines
Signed-off-by Wolfram Sang <[email protected]>---
Changes since v2:
* dropped patch 1 because Geert already queued it
* add comment that flex array must be last (Geert)
* calclocal_idin a less scary way (Geert)
Thanks for the update!
Any feedback from the hwspinlock people? Can I queue this in renesas-devel?
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 18 lines · Geert Uytterhoeven
Quoted 8 lines · Wolfram Sang
Every MFIS instance has a block of hardware spinlocks. Add support for them. Gen4 has only one instance, so the
base_idis always 0. Gen5 has multiple instances, so thebase_idhas to be encoded in the info description. Also being a provider, a hwspinlock-private header needs to be included. Work to refactor the headers is on-going, but will need many preparational steps. Until then, we need to live with the special include.Quoted 7 lines
Signed-off-by Wolfram Sang <[email protected]>---
Changes since v2:
* dropped patch 1 because Geert already queued it
* add comment that flex array must be last (Geert)
* calclocal_idin a less scary way (Geert)
Quoted 6 lines
Thanks for the update!
Reviewed-by Geert Uytterhoeven <[email protected]>Any feedback from the hwspinlock people? Can I queue this in renesas-devel?
Queuing in renesas-devel for v7.4.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds