OSDN Git Service

usb_bam: Fix usb bam_type assignment during suspend
authorManu Gautam <mgautam@codeaurora.org>
Wed, 6 Mar 2019 10:54:06 +0000 (16:24 +0530)
committerNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 07:42:37 +0000 (00:42 -0700)
commit241848b52cbefe372435388ce81128419a746f28
treed265e768f0125152a654d6f402b21411d330507b
parent1d7f0b6416a38b05ba80ada1ccf98b2826641865
usb_bam: Fix usb bam_type assignment during suspend

Driver incorrectly uses bam_mode (device/host) as bam_type
(dwc3/CI). This logic will work as long as bus-suspend
happens for dwc3 in device mode with BAM function but will
fail with CI core in device mode. However host mode BAM
pipes are no longer supported. Fix this by using proper
variable for bam_type instead of cur_bam_mode.

Change-Id: Id3b2bf3e578b5c339c46c940645b439dfafd28fb
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Link: https://source.codeaurora.org/quic/la/kernel/msm-4.9/commit/?id=077bb02a08aee79cc25bf12af1d109db7bdb8519
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
drivers/platform/msm/usb_bam.c