diff options
| author | Marek Vasut <[email protected]> | 2020-04-04 12:45:05 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2020-04-22 20:41:56 +0800 |
| commit | 145429aac05b399c3543ebb86799f4ed753328c4 (patch) | |
| tree | 961a177256e8227f7d71d29a0804c0e2bac3a92a /scripts/cleanpatch | |
| parent | d2661d8e9f9e83cb15ab981cb42e84c51bd85c2d (diff) | |
mmc: Add option to adjust b_max before long read
Add getter function which permits adjusting the maximum number of
blocks that could be read in a single sustained read transfer based
on the location of the source/target buffer and length, before such
transfer starts.
This is mainly useful on systems which have various DMA restrictions
for different memory locations, e.g. DMA limited to 32bit addresses,
and where a bounce buffer is used to work around such restrictions.
Since the U-Boot bounce buffer is mallocated, it's size is limited
by the malloc area size, and the read transfer to such a buffer must
also be limited. However, as not all areas are limited equally, the
b_max should be adjusted accordinly as needed to avoid degrading
performance unnecessarily.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions
