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

Commit 1942794a authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: pd: release SS lane only if USB host is started"

parents ebd07eec aa3aa443
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -564,11 +564,14 @@ static int usbpd_release_ss_lane(struct usbpd *pd,
		goto err_exit;
	}

	if (pd->peer_usb_comm) {
		ret = extcon_blocking_sync(pd->extcon, EXTCON_USB_HOST, 0);
		if (ret) {
		usbpd_err(&pd->dev, "err(%d) for releasing ss lane", ret);
			usbpd_err(&pd->dev, "err(%d) for releasing ss lane",
					ret);
			goto err_exit;
		}
	}

	pd->ss_lane_svid = hdlr->svid;