Alexander Sverdlin
f9b2d3b703
regulator: tps65219: fix irq_data.rdev not being assigned
...
Commit 64a6b57749 ("regulator: tps65219: Remove debugging helper
function") removed the tps65219_get_rdev_by_name() helper along with
the irq_data.rdev assignment that depended on it. This left
irq_data.rdev uninitialized for all IRQs, causing undefined behavior
when regulator_notifier_call_chain() is called from the IRQ handler:
Internal error: Oops: 0000000096000004
pc : regulator_notifier_call_chain
lr : tps65219_regulator_irq_handler
Call trace:
regulator_notifier_call_chain
tps65219_regulator_irq_handler
handle_nested_irq
regmap_irq_thread
irq_thread_fn
irq_thread
kthread
ret_from_fork
Instead of restoring a dedicated lookup array, restructure the probe
function to combine regulator registration with IRQ registration in
the same loop. This way the rdev returned by devm_regulator_register()
is naturally available for assigning to irq_data.rdev without any
auxiliary data structure.
Non-regulator IRQs (SENSOR, TIMEOUT) that don't correspond to any
registered regulator are registered with rdev=NULL, and the IRQ handler
is protected with a NULL check to avoid crashing.
Cc: [email protected]
Closes: https://lore.kernel.org/all/[email protected] /
Reported-by: Francesco Dolcini <[email protected] >
Fixes: 64a6b57749 ("regulator: tps65219: Remove debugging helper function")
Signed-off-by: Alexander Sverdlin <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2026-05-18 10:52:24 +01:00
..
2024-06-28 15:41:11 +01:00
2025-06-22 01:39:51 +02:00
2026-04-09 20:19:34 +01:00
2025-02-06 11:27:24 +00:00
2025-04-14 11:22:40 +01:00
2024-11-12 13:08:35 +00:00
2025-11-17 00:14:20 +00:00
2023-07-25 12:14:27 +01:00
2023-08-24 21:43:28 +01:00
2025-03-19 12:28:26 +00:00
2025-05-22 10:57:46 +01:00
2025-11-26 21:21:57 +00:00
2026-04-09 20:19:35 +01:00
2024-08-06 15:24:01 +01:00
2026-01-27 10:13:37 +01:00
2026-04-07 15:24:11 +01:00
2025-11-26 18:44:30 +00:00
2026-04-10 11:52:40 +01:00
2026-03-23 16:03:25 +00:00
2026-02-26 18:55:37 +00:00
2026-03-23 22:38:55 +00:00
2024-09-10 12:40:38 +01:00
2024-09-10 12:44:03 +01:00
2024-09-10 12:44:04 +01:00
2023-10-09 13:14:23 +01:00
2026-03-12 23:16:17 +00:00
2026-03-24 19:37:45 +00:00
2024-05-27 01:32:50 +01:00
2024-09-09 18:27:02 +01:00
2024-11-12 13:08:35 +00:00
2026-03-30 15:44:06 +01:00
2026-01-12 16:23:16 +00:00
2024-01-04 20:02:06 +00:00
2025-06-16 13:26:23 +01:00
2026-02-21 17:09:51 -08:00
2026-03-23 16:19:53 +00:00
2026-03-17 18:07:36 +00:00
2025-07-03 12:22:35 +01:00
2024-09-13 14:57:08 +01:00
2025-11-26 18:44:26 +00:00
2025-11-26 18:44:26 +00:00
2025-11-26 18:44:26 +00:00
2024-09-30 01:11:41 +02:00
2025-11-07 09:37:49 +00:00
2024-09-30 01:11:42 +02:00
2024-03-25 00:48:18 +00:00
2026-05-11 09:44:58 +09:00
2023-10-17 21:38:48 +01:00
2023-08-10 15:44:46 +01:00
2024-02-15 13:41:11 +00:00
2024-05-27 01:32:50 +01:00
2024-05-27 01:32:50 +01:00
2024-05-27 01:32:50 +01:00
2024-03-06 14:03:32 +00:00
2024-02-15 13:41:10 +00:00
2023-09-11 01:31:25 +01:00
2023-06-19 12:59:45 +01:00
2026-01-13 12:07:09 +00:00
2024-05-27 01:32:50 +01:00
2024-10-10 12:16:58 +01:00
2024-05-27 01:32:50 +01:00
2024-05-27 01:32:50 +01:00
2024-05-27 01:32:50 +01:00
2024-09-13 14:57:07 +01:00
2024-08-14 18:21:44 +01:00
2024-02-26 13:46:37 +00:00
2025-05-26 14:01:29 +01:00
2025-06-08 23:29:48 +01:00
2026-03-05 19:03:51 +00:00
2024-05-29 11:24:22 +01:00
2023-07-25 12:14:27 +01:00
2026-04-10 13:56:21 +01:00
2026-04-09 20:19:32 +01:00
2025-12-14 19:37:48 +09:00
2024-08-29 14:20:30 +01:00
2024-09-10 12:44:11 +01:00
2025-09-15 19:27:50 +01:00
2024-08-01 12:50:10 +01:00
2023-09-22 19:01:38 +01:00
2024-08-13 12:41:44 +01:00
2025-06-30 16:06:40 +01:00
2024-09-09 18:27:01 +01:00
2024-02-26 13:46:55 +00:00
2023-08-09 12:52:44 +01:00
2024-05-27 01:32:50 +01:00
2026-03-30 15:45:37 +01:00
2025-11-05 13:28:44 +00:00
2026-04-09 20:19:32 +01:00
2025-11-26 18:44:30 +00:00
2023-07-18 15:11:31 +01:00
2024-04-09 16:22:59 +01:00
2026-03-01 23:48:17 +00:00
2025-07-24 18:04:38 +01:00
2025-06-23 13:12:31 +01:00
2026-02-21 20:03:00 -08:00
2023-11-13 01:26:31 +00:00
2023-07-14 20:52:54 +01:00
2026-03-10 14:52:42 +00:00
2024-09-10 12:44:13 +01:00
2024-05-27 01:32:50 +01:00
2025-09-05 14:20:37 +01:00
2026-02-22 23:53:49 +00:00
2026-03-12 16:31:57 +00:00
2026-03-02 16:56:59 +00:00
2024-09-10 12:44:14 +01:00
2024-05-27 01:32:50 +01:00
2023-09-11 01:30:10 +01:00
2024-05-27 01:32:50 +01:00
2024-02-19 16:59:34 +00:00
2023-10-17 21:38:48 +01:00
2024-09-30 01:11:44 +02:00
2025-05-19 11:41:48 +01:00
2023-07-14 20:52:54 +01:00
2025-11-20 17:29:07 +00:00
2025-08-24 22:41:04 +01:00
2025-08-13 19:06:29 +01:00
2026-05-06 21:26:30 +09:00
2023-08-18 16:21:44 +01:00
2023-08-08 15:23:12 +01:00
2023-12-06 13:14:54 +00:00
2025-11-18 18:55:22 +00:00
2026-04-09 20:19:31 +01:00
2024-05-16 13:36:42 +01:00
2025-08-07 10:07:06 +02:00
2025-06-17 12:50:30 +01:00
2024-06-10 15:39:29 +01:00
2024-07-29 01:19:05 +01:00
2025-08-19 16:52:47 +01:00
2025-06-30 12:15:38 +01:00
2023-07-14 20:52:54 +01:00
2025-07-16 11:15:26 +01:00
2025-12-19 08:32:06 +00:00
2024-03-25 00:48:23 +00:00
2025-11-27 11:41:00 +00:00
2025-03-17 17:35:52 +00:00
2026-04-09 20:19:33 +01:00
2023-08-08 15:23:11 +01:00
2026-02-16 16:30:47 +00:00
2025-04-07 12:53:34 +01:00
2025-09-01 14:04:18 +01:00
2024-05-27 01:32:50 +01:00
2026-02-22 23:53:44 +00:00
2023-10-17 21:38:48 +01:00
2024-05-27 01:32:22 +01:00
2025-07-04 13:09:53 +01:00
2023-11-13 01:26:32 +00:00
2024-05-09 17:44:01 +02:00
2025-10-15 21:52:32 +01:00
2024-05-27 01:32:50 +01:00
2025-06-30 16:06:39 +01:00
2025-07-07 23:32:39 +01:00
2024-01-23 15:05:13 +00:00
2025-07-14 14:44:05 +01:00
2025-06-30 12:15:39 +01:00
2025-08-11 14:08:52 +01:00
2025-08-11 14:08:51 +01:00
2024-03-25 00:48:25 +00:00
2024-03-25 00:48:26 +00:00
2024-09-10 12:44:09 +01:00
2023-08-18 22:06:52 +01:00
2024-03-25 19:28:27 +00:00
2026-02-23 14:52:16 +00:00
2023-07-14 20:52:54 +01:00
2026-05-18 10:52:24 +01:00
2023-08-08 15:23:10 +01:00
2023-07-14 20:52:54 +01:00
2023-07-14 20:52:54 +01:00
2024-11-12 13:08:35 +00:00
2024-11-12 13:08:35 +00:00
2023-07-14 20:52:54 +01:00
2023-07-14 20:52:54 +01:00
2024-11-12 13:08:35 +00:00
2024-04-10 18:48:59 +01:00
2024-07-29 01:19:04 +01:00
2024-11-12 13:08:35 +00:00
2024-09-09 21:08:42 +01:00