From: Mark Brown Date: Mon, 20 Apr 2026 11:39:35 +0000 (+0100) Subject: spi: fix explicit controller deregistration X-Git-Tag: v7.1-rc1~18^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce76a36223b853dcb6e76da6f1c4f745c3f3f7ba;p=thirdparty%2Fkernel%2Flinux.git spi: fix explicit controller deregistration Johan Hovold 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/ --- ce76a36223b853dcb6e76da6f1c4f745c3f3f7ba