]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: add quirks for be to le byte swapping
authorAngelo Dureghello <angelo.dureghello@timesys.com>
Mon, 18 May 2020 19:17:40 +0000 (21:17 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:15 +0000 (11:22 +0200)
commit01137d6df8d49b8553caaf920795eff11d507233
tree546c4d95d1214b1cb621b926f8ec6a90fa452584
parentba8b94ac7a2a902e75600d4dc0712a238507945a
mmc: sdhci: add quirks for be to le byte swapping

Some controller as the ColdFire eshdc may require an endianness
byte swap, because DMA read endianness is not configurable.

Facilitate using the bounce buffer for this by adding
->copy_to_bounce_buffer().

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200518191742.1251440-2-angelo.dureghello@timesys.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h