linux_dsm_epyc7002/drivers/usb/common
Chunfeng Yun 8e8d910e9a usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
[ Upstream commit 880287910b1892ed2cb38977893b947382a09d21 ]

When power on system with OTG cable, IDDIG's interrupt arises before
the charger registration, it will cause a NULL pointer dereference,
fix the issue by registering the power supply before requesting
IDDIG/VBUS irq.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1621406386-18838-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:39 +02:00
..
common.c
common.h
debug.c
Kconfig
led.c
Makefile
ulpi.c
usb-conn-gpio.c
usb-otg-fsm.c