mfd: max77705: Setup the core driver as an interrupt controller
authorDzmitry Sankouski <dsankouski@gmail.com>
Tue, 9 Sep 2025 18:23:07 +0000 (21:23 +0300)
committerLee Jones <lee@kernel.org>
Wed, 1 Oct 2025 09:28:57 +0000 (10:28 +0100)
commit605c9820e44de2da7d67acf66484136561da63a2
tree8bb539012d898c5472197c6f90ac1e9b61382d9b
parentafe0f94992dbe6cc6a38fdb2c8ed2f0f265e3e6e
mfd: max77705: Setup the core driver as an interrupt controller

Current implementation describes only MFD's own topsys interrupts.
However, max77705 has a register which indicates interrupt source, i.e.
it acts as an interrupt controller. There's 4 interrupt sources in
max77705: topsys, charger, fuelgauge, usb type-c manager.

Setup max77705 MFD parent as an interrupt controller. Delete topsys
interrupts because currently unused.

Remove shared interrupt flag, because we're are an interrupt controller
now, and subdevices should request interrupts from us.

Fixes: c8d50f029748 ("mfd: Add new driver for MAX77705 PMIC")

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20250909-max77705-fix_interrupt_handling-v3-1-233c5a1a20b5@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77705.c