usb: gadget: qc_ecm: Remove setting of cdev and func to NULL

If host doesn't support remote wakeup and while performing
bus suspend functionality, currently cdev and func are being
set to NULL from ecm_qc_bam_disconnect(). Due to which resuming
device would never able to re-established USB IPA BAM
functionality. Fix this issue by removing setting of cdev and
func to NULL using data_inteface_up flag to check this condition
which would handle case where suspend is being received before
SET_ALT(1) is sent from host.

Change-Id: I35076382916c3df720f256a2ac19c36c4da79407
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
usb: gadget: qc_ecm: Fix bus resume case after PC wakeup from sleep

With remote wakeup disable from host, USB IPA BAM Pipes are being
disconnected while performing USB bus suspend functionality and ECM
IPA driver is notified as USB cable disconnect event. On resume case,
those pipes are re-connected and ECM IPA driver is notified as USB
cable connect event. While performing USB IPA disconnect sequence,
ecm_mdm_ready_trigger is not being updated (i.e. set to false). Hence
on resume case received ECM network interface UP notification is
ignored to queue TX/RX transfers which results in no data transfer
between host and device for ECM interface. Fix this issue by setting
ecm_mdm_ready_trigger flag to false while performing USB bus suspend
functionality.

Change-Id: I2f0c3f4bbaedce8e7b9df6458b01bfe88ed9f8b7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Merge "usb: gadget: qc_ecm: Remove setting of cdev and func to NULL"
Merge "usb: gadget: qc_ecm: Fix bus resume case after PC wakeup from sleep"