Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f66b9523 authored by Mayank Rana's avatar Mayank Rana
Browse files

u_bam_data: Fix fast USB PO/PI case with ECM/RNDIS functionality



u_bam_data driver is one who provides USB cable disconnect and connect
notification to tethered function's IPA driver. With very fast USB PO/PI
case, it is seen that current way of using is_ipa_usb_connected flag is
not being updated although USB IPA driver is being connected. Due to this
on USB cable disconnect, USB IPA driver is not being teared down. Rename
is_ipa_usb_connected flag to is_net_interface_up to convey what is being
used for. Fix this issue by using this flag from bam_data_start_rx_tx()
API instead of bam2bam_data_connect_work() API for ECM/RNDIS. For MBIM,
it is not required to consider this flag as teth_bridge_init() is being
called in atomic context, teth_bridge_connect() is NO OPS API.

CRs-Fixed: 729725
Change-Id: I1ed6955ce7157fe120b98bde64c6931854b2dfeb
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 2e272c5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment