Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1256495
| From | Chaotian Jing <chaotian.jing@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 01/10] mmc: core: Add DT bindings for eMMC hardware reset support |
| Date | 2015-10-27 07:30 +0100 |
| Message-ID | <qo5VE-1MC-21@gated-at.bofh.it> (permalink) |
| References | <qo5VE-1MC-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Sometime only need set MMC_CAP_HW_RESET for one of MMC hosts, So set it in device tree is better. Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/core/host.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 0384fc3..f693baf 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -37,6 +37,7 @@ Optional properties: - sd-uhs-sdr104: SD UHS SDR104 speed is supported - sd-uhs-ddr50: SD UHS DDR50 speed is supported - cap-power-off-card: powering off the card is safe +- cap-mmc-hw-reset: eMMC hardware reset is supported - cap-sdio-irq: enable SDIO IRQ signalling on this interface - full-pwr-cycle: full power cycle of the card is supported - mmc-ddr-1_8v: eMMC high-speed DDR mode(1.8V I/O) is supported diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index abd933b..04fdc2f 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -507,6 +507,8 @@ int mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_UHS_DDR50; if (of_property_read_bool(np, "cap-power-off-card")) host->caps |= MMC_CAP_POWER_OFF_CARD; + if (of_property_read_bool(np, "cap-mmc-hw-reset")) + host->caps |= MMC_CAP_HW_RESET; if (of_property_read_bool(np, "cap-sdio-irq")) host->caps |= MMC_CAP_SDIO_IRQ; if (of_property_read_bool(np, "full-pwr-cycle")) -- 1.8.1.1.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/10] Add tune support of Mediatek MMC driver Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 03/10] mmc: mediatek: make cmd_ints_mask to const Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 10/10] arm64: dts: mediatek: add HS200/HS400/SDR50/SDR104 support Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 01/10] mmc: core: Add DT bindings for eMMC hardware reset support Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 05/10] mmc: mediatek: fix got GPD checksum error interrupt when data transfer Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 04/10] mmc: mediatek: change the argument "ddr" to "timing" Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 [PATCH v3 08/10] mmc: mmc: extend the mmc_send_tuning() Chaotian Jing <chaotian.jing@mediatek.com> - 2015-10-27 07:30 +0100 Re: [PATCH v3 00/10] Add tune support of Mediatek MMC driver Ulf Hansson <ulf.hansson@linaro.org> - 2015-10-27 11:00 +0100
csiph-web