From: Russell King - ARM Linux <linux@armlinux.org.uk>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: "mark.rutland@arm.com" <mark.rutland@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
BOUGH CHEN <haibo.chen@nxp.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
dl-linux-imx <linux-imx@nxp.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull
Date: Thu, 27 Dec 2018 12:22:55 +0000 [thread overview]
Message-ID: <20181227122254.GB26090@n2100.armlinux.org.uk> (raw)
In-Reply-To: <cff15a85-3f72-a8ea-2e5f-731963175fde@intel.com>
On Thu, Dec 27, 2018 at 10:01:24AM +0200, Adrian Hunter wrote:
> On 20/12/18 9:49 AM, BOUGH CHEN wrote:
> > i.MX6ULL has errata ERR010450, point out that due to SOC I/O
> > timing limitation, for eMMC HS200 and SD/SDIO 3.0 SDR104, the
> > clock rate can't exceed 150MHz. And for eMMC DDR52 and SD/SDIO
> > DDR50 mode, the clock rate can't exceed 45MHz.
> >
> > This patch add this limit for imx6ull.
> >
> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
>
> Apart from the kbuild test robot complaints (do they need to be fixed?):
>
> Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Nacked-by: Russell King <rmk+kernel@armlinux.org.uk>
The kbuild test robot complaints do need to be fixed first. They're
confusing because GCC produces quite a lot of garbage in its error
messages now. If you look at the patch, there's a hunk that has:
+ if (imx_data->socdata->flags & ESDHC_FLAG_ERR010450) {
+ if (imx_data->is_ddr)
+ clock = clock > 45000000 ? 45000000 : clock;
+ else
+ clock = clock > 150000000 ? 150000000 : clock;
+
which is missing a closing brace. This patch could not have been
build tested before it was mailed to the list, and the test robot
is highlighting that fact.
It may also be a good idea to encourage a different approach to the
above anyway:
if (imx_data->socdata->flags & ESDHC_FLAG_ERR010450) {
unsigned long max_clock;
max_clock = imx_data->is_ddr ? 45000000 : 150000000;
clock = max(clock, max_clock);
}
rather than open-coding the max() stuff in the driver.
Thanks.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
next prev parent reply other threads:[~2018-12-27 12:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 7:49 [PATCH 1/3] dt-bindings: mmc: fsl-imx-esdhc: add imx6ull compatible string BOUGH CHEN
2018-12-20 7:49 ` [PATCH 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull BOUGH CHEN
2018-12-22 21:33 ` kbuild test robot
2018-12-27 8:01 ` Adrian Hunter
2018-12-27 12:22 ` Russell King - ARM Linux [this message]
2018-12-28 2:40 ` BOUGH CHEN
2018-12-20 7:49 ` [PATCH 3/3] ARM: dts: imx6ull: change to use new compatible "fsl,imx6ull-usdhc" for usdhc BOUGH CHEN
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=20181227122254.GB26090@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=adrian.hunter@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=haibo.chen@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-mmc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=ulf.hansson@linaro.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox