aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPatrice Chotard <[email protected]>2022-01-17 13:17:44 +0100
committerMark Brown <[email protected]>2022-01-19 16:47:41 +0000
commite4d63473d3110afd170e6e0e48494d3789d26136 (patch)
tree75cf7bcc23132cc633cde265ac8aba455b88cb6b /net/lapb/lapb_timer.c
parent44ea62813f0ab3d718de480504f4dfd0bdd01858 (diff)
spi: stm32-qspi: Update spi registering
Some device driver need to communicate to qspi device during the remove process, qspi controller must be functional when spi_unregister_master() is called. To ensure this, replace devm_spi_register_master() by spi_register_master() and spi_unregister_master() is called directly in .remove callback before stopping the qspi controller. This issue was put in evidence using kernel v5.11 and later with a spi-nor which supports the software reset feature introduced by commit d73ee7534cc5 ("mtd: spi-nor: core: perform a Soft Reset on shutdown") Fixes: c530cd1d9d5e ("spi: spi-mem: add stm32 qspi controller") Signed-off-by: Patrice Chotard <[email protected]> Cc: <[email protected]> # 5.8.x Reviewed-by: Lukas Wunner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions