]> 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)
commitcda655f96c29795e25a3dc658a58b10f14925493
tree49ae3f095d0785d496604f5079443d5ccddaacb6
parent31f5f3215363816f783e14d113a03b279181bd22
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