S2: wait for SPI to become idle (#3382)

This commit is contained in:
Dániel Buga 2025-04-14 15:18:44 +02:00 committed by GitHub
parent 0876bac6c5
commit 89d5a78da4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1407,7 +1407,7 @@ mod dma {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
if self.0.interrupts().contains(SpiInterrupt::TransferDone) {
#[cfg(esp32)]
#[cfg(any(esp32, esp32s2))]
// Need to poll for done-ness even after interrupt fires.
if self.0.busy() {
cx.waker().wake_by_ref();