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

Skip to content
Commit a57d02db authored by Eric Holmberg's avatar Eric Holmberg Committed by Stephen Boyd
Browse files

msm: rmnet: fix open failure due to duplicate platform driver open



The state of the RMNET channel is tracked internally as 0
(uninitialized), ACTIVE and INACTIVE.  When an RMNET channel is opened,
if it is uninitialized, then the BAM DMUX channel is opened and the
platform device is registered.  When the channel is closed, the state is
set to inactive.

Because the INACTIVE flag is defined internally as 0, the open test
incorrectly assumes that the channel is uninitialized and attempts to
re-open the BAM DMUX channel and register the platform device.  The BAM
DMUX open is a no-op in this case, but the platform driver registration
fails, causing a failure to be returned.

Change the INACTIVE value to 2 to differentiate between uninitialized
and inactive.

CRs-Fixed: 519289
Change-Id: I8263dc52166962483f164e95a93984e120dc3efb
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent c07c0d8f
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