diff options
author | Bruce Chen <bruce.chen@unisoc.com> | 2022-03-03 15:36:03 +0800 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-05-13 17:03:40 +0900 |
commit | 68be7a5f281d50ee6572c8475ac6f1f99e0b1d1a (patch) | |
tree | 5d50b2ad1129f5551142f47ebb4a6820422a94d6 /drivers/extcon | |
parent | 6506f6a0208d684e77832ccd83684ee5f259a19a (diff) | |
download | linux-68be7a5f281d50ee6572c8475ac6f1f99e0b1d1a.tar.gz linux-68be7a5f281d50ee6572c8475ac6f1f99e0b1d1a.tar.bz2 linux-68be7a5f281d50ee6572c8475ac6f1f99e0b1d1a.zip |
extcon: usb-gpio: Remove disable irq operation in system sleep
If disable vbus/id irq, it will lead to wakeup system fail
in unisoc platform. In unisoc platform, Irq enable and irq
wakeup are the same interrupt line. So remove disable vbus/id
irq operation is a way to solve the issue.
Signed-off-by: Bruce Chen <bruce.chen@unisoc.com>
Acked-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-usb-gpio.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index f2b65d967384..40d967a11e87 100644 --- a/drivers/extcon/extcon-usb-gpio.c +++ b/drivers/extcon/extcon-usb-gpio.c @@ -226,16 +226,6 @@ static int usb_extcon_suspend(struct device *dev) } } - /* - * We don't want to process any IRQs after this point - * as GPIOs used behind I2C subsystem might not be - * accessible until resume completes. So disable IRQ. - */ - if (info->id_gpiod) - disable_irq(info->id_irq); - if (info->vbus_gpiod) - disable_irq(info->vbus_irq); - if (!device_may_wakeup(dev)) pinctrl_pm_select_sleep_state(dev); @@ -267,11 +257,6 @@ static int usb_extcon_resume(struct device *dev) } } - if (info->id_gpiod) - enable_irq(info->id_irq); - if (info->vbus_gpiod) - enable_irq(info->vbus_irq); - queue_delayed_work(system_power_efficient_wq, &info->wq_detcable, 0); |