usb: gadget: mbim: Prevent duplicate reconnection of bam

Connect bam only once per cable connection to prevent
failure of data pipes work that might be caused by
multiple bam connections.
To ensure it, check bam endpoint descriptors and
connect bam only if they are not initialized yet.

CRs-fixed: 403117
Change-Id: I18fe1af5576176f0a82c3dd7afb3b96c388b06e0
Signed-off-by: Anna Perel <aperel@codeaurora.org>
1 file changed