Skip to content
Commit ad3868b2 authored by Pierre Ossman's avatar Pierre Ossman
Browse files

mmc,sdio: helper function for transfer padding



There are a lot of crappy controllers out there that cannot handle
all the request sizes that the MMC/SD/SDIO specifications require.
In case the card driver can pad the data to overcome the problems,
this commit adds a helper that calculates how much that padding
should be.

A corresponding helper is also added for SDIO, but it can also deal
with all the complexities of splitting up a large transfer efficiently.

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent e2d26477
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment