aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2021-10-13 15:37:10 +0200
committerMark Brown <[email protected]>2021-10-14 13:32:19 +0100
commit16a8e2fbb2d49111004efc1c7342e083eafabeb0 (patch)
treeec9c22b3f88095ffa7e4885b9dfa7ba5ced1ab06 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent6098475d4cb48d821bdf453c61118c56e26294f0 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions