|
@@ -726,6 +726,13 @@ static void dw_mci_ctrl_rd_thld(struct dw_mci *host, struct mmc_data *data)
|
|
|
|
|
|
WARN_ON(!(data->flags & MMC_DATA_READ));
|
|
WARN_ON(!(data->flags & MMC_DATA_READ));
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * CDTHRCTL doesn't exist prior to 240A (in fact that register offset is
|
|
|
|
+ * in the FIFO region, so we really shouldn't access it).
|
|
|
|
+ */
|
|
|
|
+ if (host->verid < DW_MMC_240A)
|
|
|
|
+ return;
|
|
|
|
+
|
|
if (host->timing != MMC_TIMING_MMC_HS200 &&
|
|
if (host->timing != MMC_TIMING_MMC_HS200 &&
|
|
host->timing != MMC_TIMING_UHS_SDR104)
|
|
host->timing != MMC_TIMING_UHS_SDR104)
|
|
goto disable;
|
|
goto disable;
|