diff options
author | Khairul Anuar Romli <khairul.anuar.romli@altera.com> | 2025-08-26 08:33:58 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-09-01 13:37:27 +0100 |
commit | 7446284023e8ef694fb392348185349c773eefb3 (patch) | |
tree | 81e6c8dde6d6e596f47cfecf0c32934b75ac2eb7 /scripts/generate_rust_target.rs | |
parent | 89e7353f522f5cf70cb48c01ce2dcdcb275b8022 (diff) |
spi: cadence-quadspi: Implement refcount to handle unbind during busy
driver support indirect read and indirect write operation with
assumption no force device removal(unbind) operation. However
force device removal(removal) is still available to root superuser.
Unbinding driver during operation causes kernel crash. This changes
ensure driver able to handle such operation for indirect read and
indirect write by implementing refcount to track attached devices
to the controller and gracefully wait and until attached devices
remove operation completed before proceed with removal operation.
Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@altera.com>
Reviewed-by: Niravkumar L Rabara <nirav.rabara@altera.com>
Link: https://patch.msgid.link/8704fd6bd2ff4d37bba4a0eacf5eba3ba001079e.1756168074.git.khairul.anuar.romli@altera.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions