extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC
authorGeorge Cherian <george.cherian@ti.com>
Thu, 10 Oct 2013 18:48:39 +0000 (00:18 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 7 Jan 2014 02:54:27 +0000 (11:54 +0900)
commitb7d2d5be3c910fddd19cafa0861016712c665168
treefa1d11ccb1e00760732306e191d56ca5dbc5f885
parent5fbc77d6ebd0ab801273085bbf98fdaa66054ad8
extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC

Always cross check with the ID state and the source of interrupt.
Also add a case in which ID Source is ID_GND but LATCH state is set
wrongly. This uses the previous Link stat to determine the new state.

Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-palmas.c
This page took 0.024821 seconds and 5 git commands to generate.