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

Commit b5b335db authored by Naitik Bharadiya's avatar Naitik Bharadiya Committed by Gerrit - the friendly Code Review server
Browse files

drivers: qpnp-smbcharger: Fix USB3.0 device does not enumerate in SS mode



The max speed for the USB device is high speed. So
the device is always enumerated in high speed indpendent
of the connection. Fix this by setting the EXTCON_USB_SPEED
to 1 which in turn sets the max speed as super speed.

Change-Id: I9bf935add569f70c14bf9cd4197d6e86163da6f5
Signed-off-by: default avatarNaitik Bharadiya <bharad@codeaurora.org>
parent 78a2fca7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -422,6 +422,7 @@ enum wake_reason {
static const unsigned int smbchg_extcon_cable[] = {
	EXTCON_USB,
	EXTCON_USB_HOST,
	EXTCON_USB_SPEED,
	EXTCON_NONE,
};

@@ -4794,10 +4795,12 @@ static void handle_usb_insertion(struct smbchg_chip *chip)

	/* Only notify USB if it's not a charger */
	if (usb_supply_type == POWER_SUPPLY_TYPE_USB ||
			usb_supply_type == POWER_SUPPLY_TYPE_USB_CDP)
			usb_supply_type == POWER_SUPPLY_TYPE_USB_CDP) {
		extcon_set_cable_state_(chip->extcon, EXTCON_USB,
				chip->usb_present);

		extcon_set_cable_state_(chip->extcon, EXTCON_USB_SPEED,
				chip->usb_present);
	}
	/* Notify the USB psy if OV condition is not present */
	if (!chip->usb_ov_det) {
		/*