From: Heiko Stuebner <heiko@sntech.de>
To: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
shawn.lin@rock-chips.com, ulf.hansson@linaro.org,
adrian.hunter@intel.com,
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
Michal Simek <michal.simek@xilinx.com>,
Douglas Anderson <dianders@chromium.org>,
Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Viresh Kumar <viresh.kumar@linaro.org>,
Jeffy Chen <jeffy.chen@rock-chips.com>,
Shunqian Zheng <zhengsq@rock-chips.com>,
Ezequiel Garcia <ezequiel@collabora.com>,
Randy Li <ayaka@soulik.info>, Tony Xie <tony.xie@rock-chips.com>,
Vicente Bergas <vicencb@gmail.com>,
Klaus Goger <klaus.goger@theobroma-systems.com>,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-rockchip@lists
Subject: Re: [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers
Date: Fri, 01 Mar 2019 19:17:25 +0100 [thread overview]
Message-ID: <9535423.1mel94qINy@phil> (raw)
In-Reply-To: <20190301164349.60589-1-christoph.muellner@theobroma-systems.com>
Am Freitag, 1. März 2019, 17:43:45 CET schrieb Christoph Muellner:
> 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 surpress the feature activation,
> by specifying the property disable-cqe-dcmd.
>
> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Patch subject is needs improvement :-) .
I did scratch my head a lot regarding "where is the code change"
until I actually looked into the patch itself, so you probably want
mmc: sdhci-of-arasan: Add DTS property to disable DCMDs
or similar instead of "dt-bindings: ..." here to match the subsystem.
Heiko
> ---
> 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);
>
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Cc: mark.rutland@arm.com, ulf.hansson@linaro.org,
Viresh Kumar <viresh.kumar@linaro.org>,
shawn.lin@rock-chips.com, adrian.hunter@intel.com,
Tony Xie <tony.xie@rock-chips.com>,
Klaus Goger <klaus.goger@theobroma-systems.com>,
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
Michal Simek <michal.simek@xilinx.com>,
linux-rockchip@lists.infradead.org,
Shunqian Zheng <zhengsq@rock-chips.com>,
devicetree@vger.kernel.org, Randy Li <ayaka@soulik.info>,
Jeffy Chen <jeffy.chen@rock-chips.com>,
Vicente Bergas <vicencb@gmail.com>,
robh+dt@kernel.org, Ezequiel Garcia <ezequiel@collabora.com>,
linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org,
Douglas Anderson <dianders@chromium.org>,
linux-kernel@vger.kernel.org,
Enric Balletbo i Serra <enric.balletbo@collabora.com>
Subject: Re: [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers
Date: Fri, 01 Mar 2019 19:17:25 +0100 [thread overview]
Message-ID: <9535423.1mel94qINy@phil> (raw)
In-Reply-To: <20190301164349.60589-1-christoph.muellner@theobroma-systems.com>
Am Freitag, 1. März 2019, 17:43:45 CET schrieb Christoph Muellner:
> 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 surpress the feature activation,
> by specifying the property disable-cqe-dcmd.
>
> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Patch subject is needs improvement :-) .
I did scratch my head a lot regarding "where is the code change"
until I actually looked into the patch itself, so you probably want
mmc: sdhci-of-arasan: Add DTS property to disable DCMDs
or similar instead of "dt-bindings: ..." here to match the subsystem.
Heiko
> ---
> 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);
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
shawn.lin@rock-chips.com, ulf.hansson@linaro.org,
adrian.hunter@intel.com,
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
Michal Simek <michal.simek@xilinx.com>,
Douglas Anderson <dianders@chromium.org>,
Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Viresh Kumar <viresh.kumar@linaro.org>,
Jeffy Chen <jeffy.chen@rock-chips.com>,
Shunqian Zheng <zhengsq@rock-chips.com>,
Ezequiel Garcia <ezequiel@collabora.com>,
Randy Li <ayaka@soulik.info>, Tony Xie <tony.xie@rock-chips.com>,
Vicente Bergas <vicencb@gmail.com>,
Klaus Goger <klaus.goger@theobroma-systems.com>,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers
Date: Fri, 01 Mar 2019 19:17:25 +0100 [thread overview]
Message-ID: <9535423.1mel94qINy@phil> (raw)
In-Reply-To: <20190301164349.60589-1-christoph.muellner@theobroma-systems.com>
Am Freitag, 1. März 2019, 17:43:45 CET schrieb Christoph Muellner:
> 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 surpress the feature activation,
> by specifying the property disable-cqe-dcmd.
>
> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Patch subject is needs improvement :-) .
I did scratch my head a lot regarding "where is the code change"
until I actually looked into the patch itself, so you probably want
mmc: sdhci-of-arasan: Add DTS property to disable DCMDs
or similar instead of "dt-bindings: ..." here to match the subsystem.
Heiko
> ---
> 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);
>
next prev parent reply other threads:[~2019-03-01 18:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-01 16:43 [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers Christoph Muellner
2019-03-01 16:43 ` Christoph Muellner
2019-03-01 16:43 ` [PATCH 2/3] dt-bindings: mmc: Add a new property disable-cqe-dcmd Christoph Muellner
2019-03-01 16:43 ` Christoph Muellner
2019-03-01 16:45 ` Philipp Tomsich
2019-03-01 16:45 ` Philipp Tomsich
2019-03-01 16:45 ` Philipp Tomsich
2019-03-01 16:43 ` [PATCH 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller Christoph Muellner
2019-03-01 16:43 ` Christoph Muellner
2019-03-02 0:47 ` [PATCH 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.【请注意,邮件由linux-mmc-owner@vger.kernel.org代发】 Shawn Lin
2019-03-02 0:47 ` Shawn Lin
[not found] ` <185f44f1-c41d-cb67-d5c2-5878c05516ba-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2019-03-02 8:26 ` Christoph Müllner
2019-03-02 8:26 ` Christoph Müllner
2019-03-02 8:26 ` Christoph Müllner
2019-03-01 18:17 ` Heiko Stuebner [this message]
2019-03-01 18:17 ` [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers Heiko Stuebner
2019-03-01 18:17 ` Heiko Stuebner
2019-03-01 18:19 ` Christoph Müllner
2019-03-01 18:19 ` Christoph Müllner
2019-03-01 18:19 ` Christoph Müllner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9535423.1mel94qINy@phil \
--to=heiko@sntech.de \
--cc=adrian.hunter@intel.com \
--cc=ayaka@soulik.info \
--cc=christoph.muellner@theobroma-systems.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=enric.balletbo@collabora.com \
--cc=ezequiel@collabora.com \
--cc=jeffy.chen@rock-chips.com \
--cc=klaus.goger@theobroma-systems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-rockchip@lists \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=philipp.tomsich@theobroma-systems.com \
--cc=robh+dt@kernel.org \
--cc=shawn.lin@rock-chips.com \
--cc=tony.xie@rock-chips.com \
--cc=ulf.hansson@linaro.org \
--cc=vicencb@gmail.com \
--cc=viresh.kumar@linaro.org \
--cc=zhengsq@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.