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

Skip to content
Commit 56503fc3 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Kishor PK
Browse files

USB: phy: msm: Fix bad magic error during probe



Currently driver is taking write_lock spinlock before it is initialized
during driver probe. This is resulting in below bad magic error:

[    8.318372] BUG: rwlock bad magic on CPU#0, swapper/0/1, f3b804c8
[    8.323425] CPU: 0 PID: 1 Comm: swapper/0 Tainted:
				GW3.10.49-g12458e7-00068-g031be2e #1
[    8.332467] [<c010bcec>] (unwind_backtrace+0x0/0x11c)
[    8.341053] [<c0109948>] (show_stack+0x10/0x14)
[    8.349735] [<c0350dcc>] (do_raw_write_lock+0x20/0xc0)
[    8.359543] [<c0a97704>] (_raw_write_lock_irqsave+0x20/0x28)
[    8.369781] [<c0553960>] (msm_otg_dbg_log_event+0x40/0x110)
[    8.379504] [<c0553a50>] (msm_otg_bus_vote+0x20/0x184)
[    8.388707] [<c055ca08>] (msm_otg_probe+0x47c/0x1b44)

Fix the error by initializing before acquiring spinlock.

Change-Id: Ib65082a87f46b82a69ecc4a666d073675b633b67
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: default avatarKishor PK <kpbhat@codeaurora.org>
parent 83420b2d
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