]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: qcom-spmi-misc: Sync the extcon state on interrupt
authorStephen Boyd <stephen.boyd@linaro.org>
Tue, 18 Oct 2016 00:16:02 +0000 (17:16 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 26 Oct 2016 07:04:29 +0000 (16:04 +0900)
commitbf963cf6e0dcfbdff43b88972beed60610a6ce3c
tree3a716c73567b80cf866d88ee0d8794d9b02e6e2a
parentd3d68218da580b6108d3a76f1c034afe4931b1a3
extcon: qcom-spmi-misc: Sync the extcon state on interrupt

The driver was changed after submission to use the new style APIs
like extcon_set_state(). Unfortunately, that only sets the state,
and doesn't notify any consumers that the cable state has
changed. Use extcon_set_state_sync() here instead so that we
notify cable consumers of the state change. This fixes USB
host-device role switching on the db8074 platform.

Fixes: 786b9d88f6c7 ("extcon: Add support for qcom SPMI PMIC USB id detection hardware")
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-qcom-spmi-misc.c