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:
Pierre Ossman <drzeus@drzeus.cx>
Showing
- drivers/mmc/core/core.c 28 additions, 1 deletiondrivers/mmc/core/core.c
- drivers/mmc/core/sdio_io.c 98 additions, 1 deletiondrivers/mmc/core/sdio_io.c
- drivers/net/wireless/libertas/if_sdio.c 7 additions, 13 deletionsdrivers/net/wireless/libertas/if_sdio.c
- include/linux/mmc/core.h 1 addition, 0 deletionsinclude/linux/mmc/core.h
- include/linux/mmc/sdio_func.h 3 additions, 1 deletioninclude/linux/mmc/sdio_func.h
Loading
Please register or sign in to comment