]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:32:51 +0000 (09:32 +0200)
commit49fe4ce4f41b395440fcbbf3e7d0c067d87d56fc
tree3af9eaa84ce501113aff08bbd3eb752abc34082e
parent1d59b750575635205fe952bf3bc54fb1b955b622
mmc: sdhci: add quirks for be to le byte swapping

[ Upstream commit e93577ecde8f3cbd12a2eaa0522d5c85e0dbdd53 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h