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.
Change-Id: I641f0857538a37dca85d5d45f9077009201e9caa
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment