android_kernel_sony_sdm845/drivers/extcon
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hans de Goede 6798f079b0 extcon: axp288: Use vbus-valid instead of -present to determine cable presence
[ Upstream commit 5757aca10146061befd168dab37fb0db1ccd8f73 ]

The vbus-present bit in the power status register also gets set to 1
when a usb-host cable (id-pin shorted to ground) is plugged in and a 5v
boost converter is supplying 5v to the otg usb bus.

This causes a "disconnect or unknown or ID event" warning in dmesg as
well as the extcon device to report the last detected charger cable
type as being connected even though none is connected.

This commit switches to checking the vbus-valid bit instead, which is
only 1 when both vbus is present and the vbus-path is enabled in the
vbus-path control register (the vbus-path gets disabled when a usb-host
cable is detected, to avoid the pmic drawing power from the 5v boost
converter).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-08 10:26:03 +02:00
..
devres.c extcon: Add resource-managed functions to register extcon notifier 2016-06-27 21:03:23 +09:00
extcon-adc-jack.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-arizona.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-axp288.c extcon: axp288: Use vbus-valid instead of -present to determine cable presence 2017-10-08 10:26:03 +02:00
extcon-gpio.c Merge branch 'next' into resolution 2016-09-15 16:45:20 +05:30
extcon-max3355.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max8997.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max14577.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max77693.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max77843.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-palmas.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-qcom-spmi-misc.c extcon: qcom-spmi-misc: Sync the extcon state on interrupt 2016-10-26 16:04:29 +09:00
extcon-rt8973a.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-sm5502.h extcon: sm5502: Move sm5502.h header file to extcon directory 2014-09-22 11:43:08 +09:00
extcon-usb-gpio.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon.c extcon: return error code on failure 2017-01-19 20:18:03 +01:00
Kconfig extcon: Add support for qcom SPMI PMIC USB id detection hardware 2016-09-13 11:26:26 +09:00
Makefile extcon: Add support for qcom SPMI PMIC USB id detection hardware 2016-09-13 11:26:26 +09:00