forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mmc/host/sdhci.c
....@@ -1134,6 +1134,8 @@
11341134 }
11351135 }
11361136
1137
+ sdhci_config_dma(host);
1138
+
11371139 if (host->flags & SDHCI_REQ_USE_DMA) {
11381140 int sg_cnt = sdhci_pre_dma_transfer(host, data, COOKIE_MAPPED);
11391141
....@@ -1152,8 +1154,6 @@
11521154 sdhci_set_sdma_addr(host, sdhci_sdma_address(host));
11531155 }
11541156 }
1155
-
1156
- sdhci_config_dma(host);
11571157
11581158 if (!(host->flags & SDHCI_REQ_USE_DMA)) {
11591159 int flags;