usb: usb_bam: notify completion on hsic consumer upon connect

This change fix a bug in which a re-connection of hsic bam pipes should
have notify completion to the ipa resource manager in case hsic consumer
request, that happened earlier, resulted in EINPROGRESS.

CRs-Fixed: 511820
Change-Id: Ib24eebd66482b59dbbb016469f8db1536d49273c
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
msm: 9625: Avoid sending IPA request to RPM

IPA bandwidth request should be handled solely by Apps.

Change-Id: Iccb6558f9dfb619401f1939b55282857cdec0fbf
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
Merge "usb: usb_bam: notify completion on hsic consumer upon connect"
Merge "msm: 9625: Avoid sending IPA request to RPM"
usb: gadget: u_bam: Delay suspend sequence until connect sequence finished

Suspend sequence can also start as a result of cable disconnection.
When connecting and disconnecting the cable fast enough, it can
result in a race condition between the connect and the suspend sequences.
As a result of that, both suspend and connect would not finish, which
will leave IPA resource manager in invalid state.
This fix guarantee that the suspend sequence will only start after
calling teth_bridge_connect, which means connect sequence can finish
successfully.

CRs-Fixed: 511697
Change-Id: Ie2303d1080d40e9fa23db489482004933f3f21e2
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
Merge "usb: gadget: u_bam: Delay suspend sequence until connect sequence finished"
usb: gadget: u_bam: Lock access to port_usb in start/stop transfers

Add protection to access to port_usb fields in start/stop transfers.
Otherwise the functions might compete with disconnect sequence
and null dereference might occur.

Change-Id: I7e62ddd98adc414cadf426daae900c5db04939ee
Signed-off-by: Lena Salman <esalman@codeaurora.org>
Merge "usb: gadget: u_bam: Lock access to port_usb in start/stop transfers"