]> git.hungrycats.org Git - linux/commit
irqchip/renesas-rzg2l: Add macro to retrieve TITSR register offset based on register...
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Mon, 20 Nov 2023 11:18:17 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:44 +0000 (15:11 +0200)
commit9c7f7a5a210d87fed97009219d4c458bbb01a7be
tree0dde8342f855dcc9dd18d9ecba0a2ba655694715
parent82c198f54ead36d2d5b2c96d948b5fb63a37ba5e
irqchip/renesas-rzg2l: Add macro to retrieve TITSR register offset based on register's index

[ Upstream commit 2eca4731cc66563b3919d8753dbd74d18c39f662 ]

There are 2 TITSR registers available on the IA55 interrupt controller.

Add a macro that retrieves the TITSR register offset based on it's
index. This macro is useful in when adding suspend/resume support so both
TITSR registers can be accessed in a for loop.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20231120111820.87398-7-claudiu.beznea.uj@bp.renesas.com
Stable-dep-of: 853a6030303f ("irqchip/renesas-rzg2l: Prevent spurious interrupts when setting trigger type")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-renesas-rzg2l.c