Merge "usb: gadget: f_gsi: Fix alternate index returned by gsi_get_alt"
This commit is contained in:
commit
0b4cfe3827
1 changed files with 4 additions and 1 deletions
|
@ -1727,7 +1727,10 @@ static int gsi_get_alt(struct usb_function *f, unsigned intf)
|
||||||
{
|
{
|
||||||
struct f_gsi *gsi = func_to_gsi(f);
|
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;
|
return 0;
|
||||||
else if (intf == gsi->data_id)
|
else if (intf == gsi->data_id)
|
||||||
return gsi->data_interface_up;
|
return gsi->data_interface_up;
|
||||||
|
|
Loading…
Add table
Reference in a new issue