linux/drivers/reset
Tyler Baker e3c75d412b reset: sunxi: fix spinlock initialization
commit 41544f9f38 upstream.

Call spin_lock_init() before the spinlocks are used, both in early init
and probe functions preventing a lockdep splat.

I have been observing lockdep complaining [1] during boot on my a80 optimus [2]
when CONFIG_PROVE_LOCKING has been enabled. This patch resolves the splat,
and has been tested on a few other sunxi platforms without issue.

[1] http://storage.kernelci.org/next/next-20150107/arm-multi_v7_defconfig+CONFIG_PROVE_LOCKING=y/lab-tbaker/boot-sun9i-a80-optimus.html
[2] http://kernelci.org/boot/?a80-optimus

Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-01-22 16:33:34 +00:00
..
sti driver: reset: sti: add keyscan for stih416 2014-05-21 14:27:05 +02:00
core.c reset: Add of_reset_control_get 2014-02-03 10:19:40 +01:00
Kconfig drivers: reset: STi SoC system configuration reset controller support 2014-03-11 10:47:23 +00:00
Makefile reset: add driver for socfpga 2014-04-25 17:40:08 -05:00
reset-socfpga.c reset: add driver for socfpga 2014-04-25 17:40:08 -05:00
reset-sunxi.c reset: sunxi: fix spinlock initialization 2015-01-22 16:33:34 +00:00