Merge "usb: gadget: gsi: Kick state machine with MESSAGE_PACKET_FILTER for RNDIS"

This commit is contained in:
Linux Build Service Account 2016-09-15 22:51:49 -07:00 committed by Gerrit - the friendly Code Review server
commit 4ab368becd

View file

@ -1959,14 +1959,14 @@ static int gsi_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
if (gsi->prot_id == IPA_USB_ECM)
gsi->d_port.cdc_filter = DEFAULT_FILTER;
post_event(&gsi->d_port, EVT_CONNECT_IN_PROGRESS);
/*
* For RNDIS the event is posted from the flow control
* handler which is invoked when the host sends the
* GEN_CURRENT_PACKET_FILTER message.
*/
if (gsi->prot_id != IPA_USB_RNDIS)
post_event(&gsi->d_port, EVT_HOST_READY);
post_event(&gsi->d_port,
EVT_CONNECT_IN_PROGRESS);
queue_work(gsi->d_port.ipa_usb_wq,
&gsi->d_port.usb_ipa_w);
}