hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/mmc/host/sdhci-xenon.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for Marvell Xenon SDHC as a platform device
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Author: Hu Ziji <huziji@marvell.com>
78 * Date: 2016-8-24
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation version 2.
129 *
1310 * Inspired by Jisheng Zhang <jszhang@marvell.com>
1411 * Special thanks to Video BG4 project team.
....@@ -243,16 +240,6 @@
243240 {
244241 /* Wait for 5ms after set 1.8V signal enable bit */
245242 usleep_range(5000, 5500);
246
-
247
- /*
248
- * For some reason the controller's Host Control2 register reports
249
- * the bit representing 1.8V signaling as 0 when read after it was
250
- * written as 1. Subsequent read reports 1.
251
- *
252
- * Since this may cause some issues, do an empty read of the Host
253
- * Control2 register here to circumvent this.
254
- */
255
- sdhci_readw(host, SDHCI_HOST_CONTROL2);
256243 }
257244
258245 static const struct sdhci_ops sdhci_xenon_ops = {
....@@ -656,7 +643,7 @@
656643 priv->restore_needed = false;
657644 }
658645
659
- ret = sdhci_runtime_resume_host(host);
646
+ ret = sdhci_runtime_resume_host(host, 0);
660647 if (ret)
661648 goto out;
662649 return 0;
....@@ -685,6 +672,7 @@
685672 static struct platform_driver sdhci_xenon_driver = {
686673 .driver = {
687674 .name = "xenon-sdhci",
675
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
688676 .of_match_table = sdhci_xenon_dt_ids,
689677 .pm = &sdhci_xenon_dev_pm_ops,
690678 },