]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: palmas: Fix boot up state of VBUS when using GPIO detection
authorRoger Quadros <rogerq@ti.com>
Wed, 15 Jun 2016 08:12:05 +0000 (11:12 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 15 Jun 2016 08:17:22 +0000 (17:17 +0900)
commit74f1bf67d2a191ea4668aff7f62601ded2806c2e
tree75aa6cb0cf756484b8516b01e8a1200606a60fe6
parent0491ad2600d2055b3241c61eb7ebbce5f94258a0
extcon: palmas: Fix boot up state of VBUS when using GPIO detection

If USB cable is connected prior to boot, we don't get any interrupts
so we must manually check the VBUS state and report it during probe.
If we don't do it then USB controller will never know that peripheral
cable was connected till the user unplugs and replugs the cable.

Fixes: 157900cc8e3d ("extcon: palmas: Add the support for VBUS detection by using GPIO")
Cc: stable@vger.kernel.org
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-palmas.c