]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:28:51 +0000 (15:28 +0200)
commitec5482d22c67296ea5cbc2d89ab7e5867a9e10e3
treeef051db83e42b48a3bd0bfc425e43d342d9dd8cc
parent9913a07850e0f89f49e08918b5953934c40b7ded
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