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

Commit aa08f200 authored by Umang Agrawal's avatar Umang Agrawal Committed by Guru Das Srinagesh
Browse files

power: smb5-lib: Report HS mode for uUSB connector



Currently, for extcon notification, smb5 driver always reports SS
mode irrespective of the connector type. However, uUSB connector
supports only HS mode. Hence, change the extcon notification flow
to report HS mode for uUSB connector.

Change-Id: I870941b1e63fc8043a8e8f6cf80174996a2b65b8
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 83a82dec
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -322,11 +322,14 @@ static void smblib_notify_extcon_props(struct smb_charger *chg, int id)
		val.intval = ((prop_val.intval == 2) ? 1 : 0);
		extcon_set_property(chg->extcon, id,
				EXTCON_PROP_USB_TYPEC_POLARITY, val);
	}

		val.intval = true;
		extcon_set_property(chg->extcon, id,
				EXTCON_PROP_USB_SS, val);
	} else if (chg->connector_type == POWER_SUPPLY_CONNECTOR_MICRO_USB) {
		val.intval = false;
		extcon_set_property(chg->extcon, id,
				EXTCON_PROP_USB_SS, val);
	}
}

static void smblib_notify_device_mode(struct smb_charger *chg, bool enable)