linux-stable/drivers/gpu/drm/pl111
Guenter Roeck 4d3811a60e drm/pl111: Initialize clock spinlock early
[ Upstream commit 3e01ae2612 ]

The following warning is seen on systems with broken clock divider.

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 1 Comm: swapper Not tainted 5.1.0-09698-g1fb3b52 #1
Hardware name: ARM Integrator/CP (Device Tree)
[<c0011be8>] (unwind_backtrace) from [<c000ebb8>] (show_stack+0x10/0x18)
[<c000ebb8>] (show_stack) from [<c07d3fd0>] (dump_stack+0x18/0x24)
[<c07d3fd0>] (dump_stack) from [<c0060d48>] (register_lock_class+0x674/0x6f8)
[<c0060d48>] (register_lock_class) from [<c005de2c>]
	(__lock_acquire+0x68/0x2128)
[<c005de2c>] (__lock_acquire) from [<c0060408>] (lock_acquire+0x110/0x21c)
[<c0060408>] (lock_acquire) from [<c07f755c>] (_raw_spin_lock+0x34/0x48)
[<c07f755c>] (_raw_spin_lock) from [<c0536c8c>]
	(pl111_display_enable+0xf8/0x5fc)
[<c0536c8c>] (pl111_display_enable) from [<c0502f54>]
	(drm_atomic_helper_commit_modeset_enables+0x1ec/0x244)

Since commit eedd6033b4 ("drm/pl111: Support variants with broken clock
divider"), the spinlock is not initialized if the clock divider is broken.
Initialize it earlier to fix the problem.

Fixes: eedd6033b4 ("drm/pl111: Support variants with broken clock divider")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1557758781-23586-1-git-send-email-linux@roeck-us.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-15 11:54:00 +02:00
..
Kconfig
Makefile drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_debugfs.c
pl111_display.c drm/pl111: Initialize clock spinlock early 2019-06-15 11:54:00 +02:00
pl111_drm.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_drv.c drm/pl111: Replace drm_dev_unref with drm_dev_put 2018-07-17 11:24:44 -07:00
pl111_nomadik.c drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_nomadik.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_versatile.c drm/pl111: fix possible object reference leak 2019-05-31 06:46:24 -07:00
pl111_versatile.h
pl111_vexpress.c drm/pl111: Make sure of_device_id tables are NULL terminated 2018-09-10 16:01:22 -04:00
pl111_vexpress.h drm/pl111: Fix module probe bug 2018-05-04 00:13:41 +02:00