usb_bam: Acquire usb_bam_lock spinlock before lpm handshake spinlock
Currently driver is acquiring lpm handshake spinlock first before taking
usb_bam_lock spinlock in consumer request callback provided to IPA driver.
But releasing in reverse order. This could cause deadlock in corner case,
where as part of connect, notify_usb_connected() will be called with
usb_bam_lock acquired. If consumer request resource called from IPA driver,
first it takes lpm handshake spinlock and waits for other spinlock.
Hence fix the issue by acquiring usb_bam_lock first before taking lpm
handshake spinlock in consumer request resource callback provided to IPA
driver.
CRs-Fixed: 842842
Change-Id: I597a31720d25f4822869452213f99bb742d8e610
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment