mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mmc: uniphier-sd: avoid using broken DMA RX channel
host->chan_rx is NULL when UNIPHIER_SD_CAP_BROKEN_DMA_RX quirk flag is set. In this case, it should not set up DMA. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Wolfram Sang <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
b7ced87746
commit
90f8354140
1 changed files with 3 additions and 0 deletions
|
|
@ -252,6 +252,9 @@ static void uniphier_sd_internal_dma_start(struct tmio_mmc_host *host,
|
|||
u32 dma_mode;
|
||||
int sg_len;
|
||||
|
||||
if ((data->flags & MMC_DATA_READ) && !host->chan_rx)
|
||||
goto force_pio;
|
||||
|
||||
if (WARN_ON(host->sg_len != 1))
|
||||
goto force_pio;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue