Skip to content
Snippets Groups Projects
Unverified Commit 27e7db56 authored by Saravana Kannan's avatar Saravana Kannan Committed by Mark Brown
Browse files

spi: Don't have controller clean up spi device before driver unbind


When a spi device is unregistered and triggers a driver unbind, the
driver might need to access the spi device. So, don't have the
controller clean up the spi device before the driver is unbound. Clean
up the spi device after the driver is unbound.

Fixes: c7299fea ("spi: Fix spi device unregister flow")
Reported-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Tested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210505164734.175546-1-saravanak@google.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6b695469
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment