OSDN Git Service

extcon: usb-gpio: Don't miss event during suspend/resume
authorRoger Quadros <rogerq@ti.com>
Mon, 11 Apr 2016 14:04:45 +0000 (17:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:23:18 +0000 (06:23 +0200)
commit1e647cf23fb28b83c431411dd2f67b2947550e13
tree8e7cdd003506a004e40e7aab2f73aba11840dbe5
parent7f69a980f6351e4390cc32341499abb13182e8c3
extcon: usb-gpio: Don't miss event during suspend/resume

commit 04c080080855ce84dcd490a2e04805608a21085d upstream.

Pin state might have changed during suspend/resume while
our interrupts were disabled and if device doesn't support wakeup.

Scan for change during resume for such case.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-usb-gpio.c