Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1443214 > unrolled thread
| Started by | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| First post | 2016-07-14 10:30 +0200 |
| Last post | 2016-07-18 13:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 2/2] mmc: core: expose MMC_CAP2_NO_* to dt Shawn Lin <shawn.lin@rock-chips.com> - 2016-07-14 10:30 +0200
Re: [PATCH v2 2/2] mmc: core: expose MMC_CAP2_NO_* to dt Ulf Hansson <ulf.hansson@linaro.org> - 2016-07-18 13:30 +0200
| From | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| Date | 2016-07-14 10:30 +0200 |
| Subject | [PATCH v2 2/2] mmc: core: expose MMC_CAP2_NO_* to dt |
| Message-ID | <rUKbX-7dQ-127@gated-at.bofh.it> |
The reason for why we expose these to dt is that some of
the controller is unable to send special cmd type due to
the hw limitation.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---
Changes in v2:
- amend the commit msg
drivers/mmc/core/host.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index d7e86f9..98f25ff 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -315,6 +315,12 @@ int mmc_of_parse(struct mmc_host *host)
host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR;
if (of_property_read_bool(np, "mmc-hs400-enhanced-strobe"))
host->caps2 |= MMC_CAP2_HS400_ES;
+ if (of_property_read_bool(np, "no-sdio"))
+ host->caps2 |= MMC_CAP2_NO_SDIO;
+ if (of_property_read_bool(np, "no-sd"))
+ host->caps2 |= MMC_CAP2_NO_SD;
+ if (of_property_read_bool(np, "no-mmc"))
+ host->caps2 |= MMC_CAP2_NO_MMC;
host->dsr_req = !of_property_read_u32(np, "dsr", &host->dsr);
if (host->dsr_req && (host->dsr & ~0xffff)) {
--
2.3.7
[toc] | [next] | [standalone]
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Date | 2016-07-18 13:30 +0200 |
| Message-ID | <rWeUi-5vO-23@gated-at.bofh.it> |
| In reply to | #1443214 |
On 14 July 2016 at 10:26, Shawn Lin <shawn.lin@rock-chips.com> wrote:
> The reason for why we expose these to dt is that some of
> the controller is unable to send special cmd type due to
> the hw limitation.
>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Thanks, applied for next!
Kind regards
Uffe
>
> ---
>
> Changes in v2:
> - amend the commit msg
>
> drivers/mmc/core/host.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index d7e86f9..98f25ff 100644
> --- a/drivers/mmc/core/host.c
> +++ b/drivers/mmc/core/host.c
> @@ -315,6 +315,12 @@ int mmc_of_parse(struct mmc_host *host)
> host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR;
> if (of_property_read_bool(np, "mmc-hs400-enhanced-strobe"))
> host->caps2 |= MMC_CAP2_HS400_ES;
> + if (of_property_read_bool(np, "no-sdio"))
> + host->caps2 |= MMC_CAP2_NO_SDIO;
> + if (of_property_read_bool(np, "no-sd"))
> + host->caps2 |= MMC_CAP2_NO_SD;
> + if (of_property_read_bool(np, "no-mmc"))
> + host->caps2 |= MMC_CAP2_NO_MMC;
>
> host->dsr_req = !of_property_read_u32(np, "dsr", &host->dsr);
> if (host->dsr_req && (host->dsr & ~0xffff)) {
> --
> 2.3.7
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web