]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/apple-aic: Only access system registers on SoCs which provide them
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sun, 1 Sep 2024 03:40:07 +0000 (11:40 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Sep 2024 18:43:30 +0000 (20:43 +0200)
commit59fc20ba70294d2c5f620ad6206aa661ce7718d6
tree8614ccd0e1642e410d65ef8545e16f4305cafe4c
parenta845342e6e5fb4937564f93cc88e00c732286fe3
irqchip/apple-aic: Only access system registers on SoCs which provide them

Starting from the A11 (T8015) SoC, Apple introuced system registers for
fast IPI and UNCORE PMC control. These sysregs do not exist on earlier
A7-A10 SoCs and trying to access them results in an instant crash.

Restrict sysreg access within the AIC driver to configurations where
use_fast_ipi is true to allow AIC to function properly on A7-A10 SoCs.

Co-developed-by: Nick Chan <towinchenmi@gmail.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/all/20240901034143.12731-5-towinchenmi@gmail.com
drivers/irqchip/irq-apple-aic.c