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

Commit 8fc3d34f authored by Vamsi Krishna Samavedam's avatar Vamsi Krishna Samavedam
Browse files

usb: dwc3: Add support to force speed to ssp



Currently only super and high speed can be forced. Add support to
force super speed plus speed (ssp) so that speed can be switched between
high to super to ssp in any order.

Change-Id: Ie675e39fb577282c4eba88946a40ca54046692b2
Signed-off-by: default avatarVamsi Krishna Samavedam <vskrishn@codeaurora.org>
parent 5fc5eb5f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3258,6 +3258,8 @@ static ssize_t speed_store(struct device *dev, struct device_attribute *attr,
		req_speed = USB_SPEED_HIGH;
	else if (sysfs_streq(buf, "super"))
		req_speed = USB_SPEED_SUPER;
	else if (sysfs_streq(buf, "ssp"))
		req_speed = USB_SPEED_SUPER_PLUS;
	else
		return -EINVAL;