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

Skip to content
Commit 9f75ffb3 authored by Jack Pham's avatar Jack Pham Committed by Gerrit - the friendly Code Review server
Browse files

usb: msm: bam: Avoid usb_bam_get_connection_idx error



msm_bam_device_lpm_ok() specifically has to check if the QDSS
pipe is still active or not. However, if the QDSS function
has not been activated, the call to usb_bam_get_qdss_idx()
will always spit a log error message. This check is to handle
the QDSS disconnection-in-progress case to avoid prematurely
going into LPM; however there is already another mechanism in
place for the connection-in-progress case, so use that instead.
Have the QDSS driver call msm_bam_set_qdss_usb_active() to set
and clear the flag as needed.

While at it, downgrade some print messages from KERN_ERR to
KERN_INFO and remove a redundant one to reduce logspam.

CRs-Fixed: 778998
Change-Id: I641f0857538a37dca85d5d45f9077009201e9caa
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
parent cb6af3ac
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