On 28.11.2026 16:04, Maciej S. Szmigiero wrote:
> I think for the issue at hand (S3 suspend/resume) currently the cleanest > and less intrusive solution is to unbind/rebind the driver as the > hibernation path already does.
Thanks, that helps. Just to make sure I read it right: do you mean unbinding before S3, as v2 did and as hibernation does, or v3's re-bind after resume once the modem is detected as rebooted? I'd prefer the latter. Unbinding before S3 runs the cleanup against a modem that is still running, so every suspend with traffic hits the cleanup bugs we discussed: with a strict IOMMU that's DMA faults, and without one the modem writes into freed memory. Hibernation has the same exposure, but it runs far less often than S3. After resume, the modem has lost power and holds none of the driver's memory, so the cleanup can't hit those bugs. v4 would drop the checks from v3 and keep only the detection on resume and the re-bind after it, plus one check that stops doorbells to the rebooted modem until the re-bind. In my testing without it, a doorbell from the old driver instance crashed the rebooted modem into CD_READY again.
> However, these fixes should go in separate patches from the S3 fix, > maybe even into separate patch series.
Agreed, the teardown fixes will be a separate series. Patch 1 is the one exception: the re-bind hits that use-after-free on every S3 with wwan0 up, so I'd keep it first in this series. If you'd rather have it sent on its own, I can do that. Thanks, David