]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
spi: fix explicit controller deregistration
authorMark Brown <broonie@kernel.org>
Mon, 20 Apr 2026 11:39:35 +0000 (12:39 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 20 Apr 2026 11:39:35 +0000 (12:39 +0100)
commitce76a36223b853dcb6e76da6f1c4f745c3f3f7ba
tree5279ad5fb253319025123f1e2ec7cedc66f3eace
parent51942b77f443ac3f1b4628c2f5f7dea8a7fe654f
parent9d72732fe70c11424bc90ed466c7ccfa58b42a9a
spi: fix explicit controller deregistration

Johan Hovold <johan@kernel.org> says:

Turns out we have a few drivers that get the tear down ordering wrong
also when not using device managed registration (cf. [1] and [2]).

Fix this to avoid issues like system errors due to unclocked accesses,
NULL-pointer dereferences, hangs or failed I/O during during
deregistration (e.g. when powering down devices).

Johan

[1] https://lore.kernel.org/lkml/20260409120419.388546-2-johan@kernel.org/
[2] https://lore.kernel.org/lkml/20260410081757.503099-1-johan@kernel.org/
MAINTAINERS
drivers/spi/spi-cadence-quadspi.c