usb: gadget: f_gsi: Send 0 byte packet when both ctrl and data paths setup

Currently the driver notifies line state change to QTI for RmNet
interface on set_alt. As soon as QTI receives this 0 byte packet,
it queries USB driver for RmNet line state. This might still be 0
since gsi_setup for DTR state as 1 might not have been invoked by
this time. Also, the xdci_connect with IPA for RmNet/RmNet_v2x
might not have happened by this time, because of which IPA cannot
send proper ep_info to QTI. These can lead to data call failure.
Fix this by sending 0 byte packet to QTI for RmNet interfaces
only when both ctrl and data paths have been setup.

Change-Id: Ic569dc731885166f260857e4d194ac34ae0e62f4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
1 file changed