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

Commit 5e0f216a authored by Ido Shayevitz's avatar Ido Shayevitz Committed by Stephen Boyd
Browse files

gadget: f_mtp: Don't use config_ep_by_speed() for the intr endpoint

Google made this change in the 3.4 upgrade but we didn't make the
change on our side because the endpoint wasn't choosing a speed
before.
parent fc429982
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1216,11 +1216,7 @@ static int mtp_function_set_alt(struct usb_function *f,
		usb_ep_disable(dev->ep_in);
		return ret;
	}

	ret = config_ep_by_speed(cdev->gadget, f, dev->ep_intr);
	if (ret)
		return ret;

	dev->ep_intr->desc = &mtp_intr_desc;
	ret = usb_ep_enable(dev->ep_intr);
	if (ret) {
		usb_ep_disable(dev->ep_out);