HomeFreeBSD

dwmmc: Calculate the maximum transaction length correctly.

Description

dwmmc: Calculate the maximum transaction length correctly.

We should reserve two descriptors (not MMC_SECTORS) for potentially
unaligned (so bounced) buffer fragments, one for the starting fragment
and one for the ending fragment.

Submitted by: kjopek@gmail.com
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D30387

(cherry picked from commit dfb7360222856e7e4f5e0e5564281a25af63319c)

Details

Provenance
mmelAuthored on Oct 7 2021, 6:42 PM
Differential Revision
D30387: Make the code consistent with the comments
Parents
rG8e3cc69a4e4a: booti: Enable loading the kernel image to any address aligned to 2 MB
Branches
Unknown
Tags
Unknown