Commit eb8d8312 authored by Ido Shayevitz's avatar Ido Shayevitz
Browse files

usb: bam: don't wait to enable/disable endpoints on bam2bam work functions



Enable or disable the endpoints, also in case of bam2bam connection,
at the gbam_connect and gbam_disconnect APIs, rather then in the
bam2bam work functions.

This change fixes a race condition when there is a pending disconnect
in the bam2bam port's workqueue, therefore endpoints were not disabled
yet, while frmnet_set_alt is checking the state of the endpoints, which
are still enabled, therefore not queuing a connect work.

Change-Id: Ibc2eb9b8a747061c52132dbc112ce5e5525adc2c
CRs-Fixed: 397466
Signed-off-by: default avatarIdo Shayevitz <idos@codeaurora.org>
parent 91caea48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment