Uwe Kleine-König
16a8e2fbb2
spi-mux: Fix false-positive lockdep splats
...
io_mutex is taken by spi_setup() and spi-mux's .setup() callback calls
spi_setup() which results in a nested lock of io_mutex.
add_lock is taken by spi_add_device(). The device_add() call in there
can result in calling spi-mux's .probe() callback which registers its
own spi controller which in turn results in spi_add_device() being
called again.
To fix this initialize the controller's locks already in
spi_alloc_controller() to give spi_mux_probe() a chance to set the
lockdep subclass.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211013133710.2679703-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-10-14 13:32:19 +01:00
..
2021-02-11 13:15:12 +00:00
2021-08-17 13:36:04 +01:00
2021-08-17 13:36:04 +01:00
2021-04-20 17:26:40 +01:00
2021-07-29 13:02:28 -07:00
2021-04-20 17:26:40 +01:00
2020-11-23 20:42:05 +00:00
2020-12-07 14:18:59 +00:00
2020-08-18 17:52:37 +01:00
2020-07-17 16:38:54 +01:00
2021-05-24 09:51:38 +01:00
2021-10-01 19:34:55 +01:00
2021-01-22 16:26:21 +00:00
2021-03-12 14:30:42 +00:00
2021-03-10 12:25:12 +00:00
2021-03-12 14:30:43 +00:00
2021-07-20 13:34:05 +01:00
2021-08-03 18:27:25 +01:00
2021-10-11 13:20:23 +01:00
2021-06-01 14:03:12 +01:00
2021-03-10 12:46:05 +00:00
2021-08-05 20:18:10 +01:00
2021-07-19 12:58:44 +01:00
2019-09-04 17:17:27 +01:00
2020-06-16 00:38:39 +01:00
2019-10-15 11:51:57 +01:00
2021-02-04 18:45:59 +00:00
2021-08-19 18:20:10 +01:00
2021-08-24 20:53:24 +01:00
2021-04-09 13:43:57 +01:00
2021-02-12 12:41:49 +00:00
2020-12-09 12:14:22 +00:00
2020-10-08 23:00:18 +01:00
2021-05-10 13:07:52 +01:00
2020-10-08 23:00:06 +01:00
2020-12-09 12:14:22 +00:00
2021-08-03 18:27:24 +01:00
2021-03-12 14:30:48 +00:00
2021-07-19 16:56:14 +01:00
2020-08-23 17:36:59 -05:00
2021-08-10 13:22:19 +01:00
2021-03-12 14:30:49 +00:00
2021-04-09 13:43:59 +01:00
2020-07-17 00:55:25 +01:00
2021-06-01 14:03:12 +01:00
2021-07-14 16:37:58 +01:00
2020-12-07 14:18:54 +00:00
2021-06-07 16:24:12 +01:00
2021-04-12 17:07:38 +01:00
2020-11-02 15:53:25 +00:00
2021-09-01 15:25:28 -07:00
2021-03-24 19:51:09 +00:00
2020-09-17 19:56:02 +01:00
2021-05-20 18:00:34 +01:00
2021-05-10 13:07:53 +01:00
2019-09-04 17:18:35 +01:00
2021-06-14 15:05:00 +01:00
2021-07-22 16:02:22 +01:00
2020-07-17 16:38:48 +01:00
2021-05-20 18:00:37 +01:00
2021-05-20 18:00:36 +01:00
2021-05-20 18:00:35 +01:00
2021-10-01 19:34:56 +01:00
2020-12-07 14:18:59 +00:00
2021-03-24 19:51:07 +00:00
2021-10-14 13:32:19 +01:00
2021-08-12 12:19:19 +01:00
2020-11-18 18:00:26 +00:00
2020-12-07 14:19:00 +00:00
2021-05-11 15:42:48 +01:00
2021-10-02 01:31:49 +01:00
2021-05-11 15:42:49 +01:00
2021-06-01 18:33:33 +01:00
2021-05-20 17:58:33 +01:00
2021-06-01 18:33:33 +01:00
2021-08-16 13:28:14 +01:00
2019-09-04 17:20:52 +01:00
2021-08-10 13:22:20 +01:00
2021-05-10 13:07:52 +01:00
2021-05-20 18:00:40 +01:00
2021-05-18 14:05:35 +01:00
2021-05-21 13:13:42 +01:00
2021-07-22 12:41:19 +01:00
2021-05-18 14:05:35 +01:00
2021-03-16 10:14:11 +05:30
2021-04-09 13:44:03 +01:00
2020-12-07 14:18:55 +00:00
2021-02-04 18:45:57 +00:00
2021-08-23 16:41:08 +01:00
2021-09-03 13:31:49 +01:00
2021-01-11 16:39:09 +00:00
2021-06-23 16:33:52 +01:00
2020-08-19 21:40:14 +02:00
2020-10-24 10:33:08 -07:00
2021-04-15 16:07:58 +01:00
2021-05-21 13:13:33 +01:00
2019-10-15 11:51:57 +01:00
2021-06-23 16:33:53 +01:00
2021-03-12 14:30:45 +00:00
2019-11-04 13:26:11 +00:00
2021-03-23 17:19:45 +00:00
2021-08-26 12:09:38 +01:00
2021-05-12 13:01:43 +01:00
2020-11-12 15:16:35 +00:00
2021-06-25 14:08:26 +01:00
2021-08-20 13:07:27 +01:00
2020-07-27 14:55:21 +01:00
2021-06-23 11:48:36 +01:00
2021-02-03 16:23:07 +00:00
2021-03-12 14:30:46 +00:00
2021-09-27 18:38:10 +01:00
2021-08-05 16:42:54 +01:00
2021-05-10 13:17:19 +01:00
2021-03-10 12:25:09 +00:00
2021-05-10 13:17:16 +01:00
2021-05-11 15:42:52 +01:00
2019-10-15 11:51:57 +01:00
2020-09-17 19:56:01 +01:00
2019-09-04 17:23:28 +01:00
2019-10-01 12:35:18 +01:00
2021-08-26 13:42:44 +01:00
2021-04-16 13:44:15 +01:00
2021-10-14 13:32:19 +01:00
2021-09-27 12:59:15 +01:00