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

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

Merge "usb: f_gsi: Set alt to 1 for rndis, rmnet and dpl unconditionally"

parents b4d78d0c 742a9757
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2081,13 +2081,8 @@ static int gsi_set_alt(struct usb_function *f, unsigned int intf,
		/* for rndis and rmnet alt is always 0 update alt accordingly */
		if (gsi->prot_id == IPA_USB_RNDIS ||
				gsi->prot_id == IPA_USB_RMNET ||
				gsi->prot_id == IPA_USB_DIAG) {
			if (gsi->d_port.in_ep &&
				!gsi->d_port.in_ep->driver_data)
				gsi->prot_id == IPA_USB_DIAG)
				alt = 1;
			else
				alt = 0;
		}

		if (alt > 1)
			goto notify_ep_disable;