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

Skip to content
Commit 31983a30 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

msm: rpm-smd: Fix spinlock bad magic for msm_rpm_sleep_notifier



The msm_rpm_sleep_notifier is an atomic notifier head and needs
to be initialized with the appropriate macro to initialize the
spinlock.

BUG: spinlock bad magic on CPU#0, swapper/0/1
 lock: msm_rpm_sleep_notifier, .magic: 00000000, .owner: swapper/0/1,
 .owner_cpu: 0
[<c0016988>] (unwind_backtrace+0x0/0x13c) from [<c025f284>]
[<c025f284>] (do_raw_spin_unlock+0xa8/0xe8) from [<c057f244>]
[<c057f244>] (_raw_spin_unlock_irqrestore+0x24/0x6c) from [<c0084c88>]
[<c0084c88>] (atomic_notifier_chain_register+0x68/0x70) from [<c0570570>]
[<c0570570>] (msm_lpmrs_probe+0x1b0/0x22c) from [<c02c8af8>]
[<c02c8af8>] (platform_drv_probe+0x18/0x1c) from [<c02c74f4>]
[<c02c74f4>] (driver_probe_device+0xbc/0x360) from [<c02c782c>]
[<c02c782c>] (__driver_attach+0x94/0x98) from [<c02c59b4>]
[<c02c59b4>] (bus_for_each_dev+0x54/0x80) from [<c02c62b4>]
[<c02c62b4>] (bus_add_driver+0x214/0x2fc) from [<c02c7d58>]
[<c02c7d58>] (driver_register+0x78/0x180) from [<c077a804>]
[<c077a804>] (msm_8974_add_drivers+0x14/0x58) from [<c077a8f0>]
[<c077a8f0>] (msm_dt_init+0x60/0x68) from [<c07736f0>]
[<c07736f0>] (customize_machine+0x20/0x28) from [<c0008718>]
[<c0008718>] (do_one_initcall+0x34/0x184) from [<c0770340>]
[<c0770340>] (kernel_init+0x114/0x1c0) from [<c00106c4>]

Change-Id: If4cdddf02ce33b61056a904a9caed2f0b43c6970
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 3c4ea125
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