projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103da06
)
mmc: mmc_spi: parse speed mode options
author
Christian Löhle
<CLoehle@hyperstone.com>
Thu, 31 Mar 2022 07:28:47 +0000
(07:28 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 26 Apr 2022 12:05:19 +0000
(14:05 +0200)
Since SD and MMC Highspeed modes are also valid for SPI let's parse
them too.
Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20c6efa9a4c7423bbfb9352705c4a53a@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/of_mmc_spi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/of_mmc_spi.c
b/drivers/mmc/host/of_mmc_spi.c
index
3629550
..
bf54776
100644
(file)
--- a/
drivers/mmc/host/of_mmc_spi.c
+++ b/
drivers/mmc/host/of_mmc_spi.c
@@
-70,6
+70,10
@@
struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi)
} else {
oms->pdata.caps |= MMC_CAP_NEEDS_POLL;
}
+ if (device_property_read_bool(dev, "cap-sd-highspeed"))
+ oms->pdata.caps |= MMC_CAP_SD_HIGHSPEED;
+ if (device_property_read_bool(dev, "cap-mmc-highspeed"))
+ oms->pdata.caps |= MMC_CAP_MMC_HIGHSPEED;
dev->platform_data = &oms->pdata;
return dev->platform_data;