]> Git Repo - linux.git/commit
regulator: da9211: Use irq handler when ready
authorRicardo Ribalda <[email protected]>
Sun, 27 Nov 2022 21:06:02 +0000 (22:06 +0100)
committerMark Brown <[email protected]>
Mon, 28 Nov 2022 16:54:36 +0000 (16:54 +0000)
commit02228f6aa6a64d588bc31e3267d05ff184d772eb
tree24073b2679be823c7a86faddf56bd7b94541bad8
parentb7b275e60bcd5f89771e865a8239325f86d9927d
regulator: da9211: Use irq handler when ready

If the system does not come from reset (like when it is kexec()), the
regulator might have an IRQ waiting for us.

If we enable the IRQ handler before its structures are ready, we crash.

This patch fixes:

[    1.141839] Unable to handle kernel read from unreadable memory at virtual address 0000000000000078
[    1.316096] Call trace:
[    1.316101]  blocking_notifier_call_chain+0x20/0xa8
[    1.322757] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.327823]  regulator_notifier_call_chain+0x1c/0x2c
[    1.327825]  da9211_irq_handler+0x68/0xf8
[    1.327829]  irq_thread+0x11c/0x234
[    1.327833]  kthread+0x13c/0x154

Signed-off-by: Ricardo Ribalda <[email protected]>
Reviewed-by: Adam Ward <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/regulator/da9211-regulator.c
This page took 0.049897 seconds and 4 git commands to generate.