]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: renesas_sdhi: Fix alignment check of sg buffer
authorMasaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Wed, 18 Apr 2018 18:20:59 +0000 (20:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:45 +0000 (15:08 +0200)
commitae275b9d606f92227f43603919dc3576380efdc1
tree0e77f652b23091968aabbe69b71d37eeff3b01a7
parenta028b435bf37fa091f701ee44e45cc152740fb8f
mmc: renesas_sdhi: Fix alignment check of sg buffer

Sometimes sg->offset is not used for buffer addresses allocated by
dma_map_sg(), so alignment checks should be done on the allocated buffer
addresses. Delete the alignment check for sg->offset that is done before
dma_map_sg(). Instead, it performs the alignment check for
sg->dma_address after dma_map_sg().

Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
[Niklas: broke this commit in two and tidied small style issue]
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
[rebased to mmc/next]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c