[PATCH v5 0/3] mfd: tps65217: Handle IRQ initialization errors
From: Жамбакиев Радий Рикардинович
Date: Fri Oct 02 2026 - 07:37:13 EST
From: Radiy Zhambakiev <r.zhambakiev@xxxxxxxxxxxxxxxxx>
The TPS65217 MFD driver does not validate the outcome of IRQ
initialisation and failed write of the interrupt mask leaves
the software mask out of sync with the hardware.
On top of that the irq_domain is torn down in the wrong order: the
remove callback disposes the mappings and removes the domain before
the MFD children are unbound.
This series plugs the probe error paths and moves the domain and
wake-up teardown into devres, registered right after the domain is
created.
Changes since v4:
- No functional changes; more code-style fixes requested by
Lee Jones.
- Reword cover-letter as it was repeating text from the patches.
Link: https://lore.kernel.org/all/20260917103312.92624-1-r.zhambakiev@xxxxxxxxxxxxxxxxx/
Radiy Zhambakiev (3):
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
mfd: tps65217: Check return value when masking interrupt sources
mfd: tps65217: Use devres for IRQ domain and wake teardown
drivers/mfd/tps65217.c | 69 +++++++++++++++++++++++++++++-------------
1 file changed, 48 insertions(+), 21 deletions(-)
--
2.53.0