Re: [PATCH] mfd/rk8xx: fix sleep during RCU read side critical section
From: Eric Anderson
Date: Fri Oct 30 2026 - 00:28:40 EST
On Thu, Oct 29, 2026 at 12:22 PM Pavel Skripkin <paskripkin@xxxxxxxxx> wrote:
> SPI does not support atomic transfers, so it's dangerous to call from
> atomic notif chains, since it can cause stall during reboot on
> orangepi5 (see trace below).
For my curiosity, is the hang during reboot/shutdown random or consistent?
You are explicitly mentioning reboot, although the stack trace is for
shutdown. I'd have expected reboot to have always been broken for you.
In my change I noticed that reboot and shutdown didn't agree on
whether to use _PREPARE, and my change adjusted shutdown to agree with
reboot. Since you apparently need the opposite, prior to my change I'd
assume shutdown was working but reboot broken.
> I don't have rk3288 board to test. However, I strongly suspect that
> patch does not affect your case.
I'll test it this weekend. I suspect it would work fine on Veyron/rk3288.