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

Commit 6f8c5d94 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_gsi: Fix alternate index returned by gsi_get_alt"

parents 67e0623b 0f8bb34e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2311,7 +2311,11 @@ static int gsi_get_alt(struct usb_function *f, unsigned intf)
{
	struct f_gsi *gsi = func_to_gsi(f);

	if (intf == gsi->ctrl_id)
	/* RNDIS, RMNET and DPL only support alt 0*/
	if (intf == gsi->ctrl_id ||
			gsi->prot_id == IPA_USB_RNDIS ||
			gsi->prot_id == IPA_USB_RMNET ||
			gsi->prot_id == IPA_USB_DIAG)
		return 0;
	else if (intf == gsi->data_id)
		return gsi->data_interface_up;