linux-stable/drivers/power
Samuel Holland 564c05da08 power: supply: axp20x_usb_power: Init work before enabling IRQs
[ Upstream commit b5e8642ed9 ]

The IRQ handler calls mod_delayed_work() on power->vbus_detect. However,
that work item is not initialized until after the IRQs are enabled. If
an IRQ is already pending when the driver is probed, the driver calls
mod_delayed_work() on an uninitialized work item, which causes an oops.

Fixes: bcfb7ae3f5 ("power: supply: axp20x_usb_power: Only poll while offline")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:59 +01:00
..
reset power: reset: at91-sama5d2_shdwc: fix wkupdbc mask 2021-03-04 11:37:57 +01:00
supply power: supply: axp20x_usb_power: Init work before enabling IRQs 2021-03-04 11:37:59 +01:00
Kconfig PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00
Makefile PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00