usb: chipidea: usbmisc: add power lost check for imx6sx
authorLi Jun <jun.li@nxp.com>
Thu, 13 Oct 2022 15:14:40 +0000 (23:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Oct 2022 12:34:53 +0000 (14:34 +0200)
commit04ff4d31af40e268c6cde78814be465a6412212d
treedb07fdc3b914df4ebc18aa8e867765dd00288f4a
parentb332d6d5c804085ac26d2e7e1a953b59b49644f3
usb: chipidea: usbmisc: add power lost check for imx6sx

imx6sx mega off can shutdown domain power supply if none of peripheral
in this domain is registered as wakeup source, this patch add related
codes to check if power is lost.

Signed-off-by: Li Jun <jun.li@nxp.com>
Link: https://lore.kernel.org/r/20221013151442.3262951-7-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/usbmisc_imx.c