[lvc-project] [PATCH v5 0/3] mfd: tps65217: Handle IRQ initialization errors

Жамбакиев Радий Рикардинович r.zhambakiev at prosoftsystems.ru
Fri Oct 2 14:36:49 MSK 2026


From: Radiy Zhambakiev <r.zhambakiev at prosoftsystems.ru>

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@prosoftsystems.ru/

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



More information about the lvc-project mailing list