[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2D2515D6-1E11-4EA3-B016-EC37A9E3091D@theobroma-systems.com>
Date: Mon, 25 Mar 2019 14:39:14 +0100
From: Christoph Müllner
<christoph.muellner@...obroma-systems.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Heiko Stuebner <heiko@...ech.de>,
Shawn Lin <shawn.lin@...k-chips.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Philipp Tomsich <philipp.tomsich@...obroma-systems.com>,
Michal Simek <michal.simek@...inx.com>,
Viresh Kumar <viresh.kumar@...aro.org>,
Enric Balletbo i Serra <enric.balletbo@...labora.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Douglas Anderson <dianders@...omium.org>,
Tony Xie <tony.xie@...k-chips.com>,
Randy Li <ayaka@...lik.info>,
Vicente Bergas <vicencb@...il.com>,
Ezequiel Garcia <ezequiel@...labora.com>,
Klaus Goger <klaus.goger@...obroma-systems.com>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
DTML <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
"open list:ARM/Rockchip SoC..." <linux-rockchip@...ts.infradead.org>
Subject: Re: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable
DCMDs.
> On 25.03.2019, at 14:27, Ulf Hansson <ulf.hansson@...aro.org> wrote:
>
> On Fri, 22 Mar 2019 at 12:39, Christoph Muellner
> <christoph.muellner@...obroma-systems.com> wrote:
>>
>> Direct commands (DCMDs) are an optional feature of eMMC 5.1's command
>> queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI,
>> which exposes a control register bit to enable the feature.
>> The current implementation sets this bit unconditionally.
>>
>> This patch allows to suppress the feature activation,
>> by specifying the property disable-cqe-dcmd.
>>
>> Signed-off-by: Christoph Muellner <christoph.muellner@...obroma-systems.com>
>> Signed-off-by: Philipp Tomsich <philipp.tomsich@...obroma-systems.com>
>> Acked-by: Adrian Hunter <adrian.hunter@...el.com>
>
> Applied for next, thanks!
>
> Perhaps both patch1 and patch2 should be tagged for stable? Then
> please tell me and I can add a tag.
Hi Ulf,
yes tagging for stable would be nice.
I guess, the following would fit:
Fixes: 84362d79f436 ("mmc: sdhci-of-arasan: Add CQHCI support for arasan,sdhci-5.1")
Thanks,
Christoph
>
> Kind regards
> Uffe
>
>
>
>> ---
>> drivers/mmc/host/sdhci-of-arasan.c | 5 ++++-
>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
>> index c9e3e050ccc8..88dc3f00a5be 100644
>> --- a/drivers/mmc/host/sdhci-of-arasan.c
>> +++ b/drivers/mmc/host/sdhci-of-arasan.c
>> @@ -832,7 +832,10 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
>> host->mmc_host_ops.start_signal_voltage_switch =
>> sdhci_arasan_voltage_switch;
>> sdhci_arasan->has_cqe = true;
>> - host->mmc->caps2 |= MMC_CAP2_CQE | MMC_CAP2_CQE_DCMD;
>> + host->mmc->caps2 |= MMC_CAP2_CQE;
>> +
>> + if (!of_property_read_bool(np, "disable-cqe-dcmd"))
>> + host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
>> }
>>
>> ret = sdhci_arasan_add_host(sdhci_arasan);
>> --
>> 2.11.0
>>
Powered by blists - more mailing lists