Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: usb-gpio: Don't miss event during suspend/resume

We must check for ID/VBUS changes during resume irrespective
of whether our device wakeup is enabled or not.

Without this we seem to be missing ID/VBUS events after
system suspend/resume.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Roger Quadros and committed by
Chanwoo Choi
8680b4d1 98fd0792

+2 -3
+2 -3
drivers/extcon/extcon-usb-gpio.c
··· 281 281 if (info->vbus_gpiod) 282 282 enable_irq(info->vbus_irq); 283 283 284 - if (!device_may_wakeup(dev)) 285 - queue_delayed_work(system_power_efficient_wq, 286 - &info->wq_detcable, 0); 284 + queue_delayed_work(system_power_efficient_wq, 285 + &info->wq_detcable, 0); 287 286 288 287 return ret; 289 288 }