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

Details

Provenance
mmelAuthored on Oct 7 2021, 6:42 PM
Differential Revision
D30387: Make the code consistent with the comments
Parents
rG89ec6dcce03b: stress2: Added a regression test
Branches
Unknown
Tags
Unknown