]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi_internal_dmac: limit DMA RX for old SoCs
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 18 Apr 2018 18:20:57 +0000 (20:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 19 Apr 2018 12:57:17 +0000 (14:57 +0200)
commit43575614c9611af1b7f6dd6dbf36dc934caadbc1
tree49ae3f095d0785d496604f5079443d5ccddaacb6
parentf5ce08cbde776a67cbba9299e6b2e3fb38500610
mmc: renesas_sdhi_internal_dmac: limit DMA RX for old SoCs

Early revisions of certain SoCs cannot do multiple DMA RX streams in
parallel. To avoid data corruption, only allow one DMA RX channel and
fall back to PIO, if needed.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Nguyen Viet Dung <dung.nguyen.aj@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c