mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
mmc: sdhci-of-arasan: Parse disable-cqe
Add support to disable cqe function if disable-cqe is assigned by firmware. Change-Id: Iac2826c4b986c122510af1594c971c4135bafc34 Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
@@ -1630,8 +1630,11 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
|
||||
sdhci_arasan_hs400_enhanced_strobe;
|
||||
host->mmc_host_ops.start_signal_voltage_switch =
|
||||
sdhci_arasan_voltage_switch;
|
||||
sdhci_arasan->has_cqe = true;
|
||||
host->mmc->caps2 |= MMC_CAP2_CQE;
|
||||
|
||||
if (!of_property_read_bool(np, "disable-cqe")) {
|
||||
sdhci_arasan->has_cqe = true;
|
||||
host->mmc->caps2 |= MMC_CAP2_CQE;
|
||||
}
|
||||
|
||||
if (!of_property_read_bool(np, "disable-cqe-dcmd"))
|
||||
host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
|
||||
|
||||
Reference in New Issue
Block a user