Skip to content

Fix SDHCI to clear BWR before refilling the PIO write buffer - #939

Merged
danielinux merged 1 commit into
wolfSSL:masterfrom
dgarske:sdhci_pio_write
Oct 22, 2026
Merged

danielinux merged 1 commit into
wolfSSL:masterfrom
dgarske:sdhci_pio_write

Conversation

@dgarske

@dgarske dgarske commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

BWR is W1C and the PIO write loop never acked it, so it refilled on a stale flag and hung above 4 KB.
The sdhci-disk mock latched BWR for the whole transfer; it now raises it per block and rejects an unacked refill, so the hang is caught hosted.
Tested on VMK180: 512 B to 1 MB write/read-back verified, then a signed 16 MB FIT booted from SD.

@dgarske dgarske self-assigned this Oct 15, 2026
@dgarske
dgarske requested a review from danielinux October 15, 2026 04:30
@dgarske dgarske removed their assignment Oct 15, 2026
@danielinux
danielinux merged commit 08f20f8 into wolfSSL:master Oct 22, 2026
486 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants