Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22eea1b8 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: smb135x-charger: Use UNKNOWN usb type for APSD failure



The driver forces the USB type to SDP when APSD failure happens.
The USB driver uses software based detection if the type is set
to UNKNOWN.

Use UNKNOWN instead of SDP in case of failure.

Change-Id: I03bf62253655c1822240d592d0444cc8c7a4ba06
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 8b253e07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@ static enum power_supply_type usb_type_enum[] = {
	POWER_SUPPLY_TYPE_UNKNOWN,	/* bit 5 */
	POWER_SUPPLY_TYPE_USB_DCP,	/* bit 6 */
	POWER_SUPPLY_TYPE_USB_CDP,	/* bit 7 */
	POWER_SUPPLY_TYPE_USB,		/* bit 8 error case, report SDP */
	POWER_SUPPLY_TYPE_UNKNOWN,	/* bit 8 error case, report UNKNWON */
};

/* helper to return enum power_supply_type of USB type */