From: Dong Aisheng <b29396@freescale.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Shawn Guo <shawn.guo@linaro.org>,
linux-mmc <linux-mmc@vger.kernel.org>,
Chris Ball <chris@printf.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 6/7] mmc: sdhci-esdhc-imx: add imx6sx support
Date: Thu, 18 Sep 2014 13:35:01 +0800 [thread overview]
Message-ID: <20140918053457.GA15363@shlinux1.ap.freescale.net> (raw)
In-Reply-To: <CAPDyKFo5TfuQyb-ECDR+uzCfwio3guY+7LPxHzHXLNBacMbW_A@mail.gmail.com>
On Thu, Sep 18, 2014 at 12:29:52AM +0200, Ulf Hansson wrote:
> On 3 September 2014 14:05, Dong Aisheng <b29396@freescale.com> wrote:
> > The imx6sx usdhc is derived from imx6sl, the difference is minor.
> > imx6sx have the errata ESDHC_FLAG_ERR004536 fixed.
> > So introduce a new compatible string for imx6sx to distinguish them.
> >
> > Signed-off-by: Dong Aisheng <b29396@freescale.com>
>
> Hi Dong,
>
> This one has checkpatch errors due to missing DT documentation.
>
The original binding doc is writing in the format of:
Required properties:
-- compatible : Should be "fsl,<chip>-esdhc"
It just provides a rule and does not provide the specific compatible string.
So i did not update the doc before.
But i think it's better to fix it to avoid future warning again.
Can you help add below patch before this commit or do you need me
to resend the patch series again with this patch added?
>From 467b84e5ffcba543b9ac88913b1d2dc1159dfa72 Mon Sep 17 00:00:00 2001
From: Dong Aisheng <b29396@freescale.com>
Date: Thu, 18 Sep 2014 13:11:03 +0800
Subject: [PATCH 6/8] mmc: sdhci-esdhc-imx: using specific compatible string
in binding doc
Using specific compatible string in binding doc to make the binding
more clear.
It's also used to avoid checkpatch warning in the future like follows:
0005-mmc-sdhci-do-not-enable-card-cd-wakeup-for-gpio-case.patch has no obvious style problems and is ready for submission.
WARNING: DT compatible string "fsl,imx6sx-usdhc" appears un-documented -- check ./Documentation/devicetree/bindings/
+ { .compatible = "fsl,imx6sx-usdhc", .data = &usdhc_imx6sx_data, },
total: 0 errors, 1 warnings, 18 lines checked
Signed-off-by: Dong Aisheng <b29396@freescale.com>
---
.../devicetree/bindings/mmc/fsl-imx-esdhc.txt | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
index 9046ba06..c415d34 100644
--- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
+++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
@@ -7,7 +7,14 @@ This file documents differences between the core properties described
by mmc.txt and the properties used by the sdhci-esdhc-imx driver.
Required properties:
-- compatible : Should be "fsl,<chip>-esdhc"
+- compatible : Should be "fsl,<chip>-esdhc", the supported chips include
+ "fsl,imx25-esdhc"
+ "fsl,imx35-esdhc"
+ "fsl,imx51-esdhc"
+ "fsl,imx53-esdhc"
+ "fsl,imx6q-usdhc"
+ "fsl,imx6sl-usdhc"
+ "fsl,imx6sx-usdhc"
Optional properties:
- fsl,cd-controller : Indicate to use controller internal card detection
--
1.7.8
Regards
Dong Aisheng
> Kind regards
> Uffe
>
> > ---
> > drivers/mmc/host/sdhci-esdhc-imx.c | 6 ++++++
> > 1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> > index dc0e384..87179c4 100644
> > --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> > @@ -150,6 +150,11 @@ static struct esdhc_soc_data usdhc_imx6sl_data = {
> > | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_ERR004536,
> > };
> >
> > +static struct esdhc_soc_data usdhc_imx6sx_data = {
> > + .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
> > + | ESDHC_FLAG_HAVE_CAP1,
> > +};
> > +
> > struct pltfm_imx_data {
> > u32 scratchpad;
> > struct pinctrl *pinctrl;
> > @@ -190,6 +195,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] = {
> > { .compatible = "fsl,imx35-esdhc", .data = &esdhc_imx35_data, },
> > { .compatible = "fsl,imx51-esdhc", .data = &esdhc_imx51_data, },
> > { .compatible = "fsl,imx53-esdhc", .data = &esdhc_imx53_data, },
> > + { .compatible = "fsl,imx6sx-usdhc", .data = &usdhc_imx6sx_data, },
> > { .compatible = "fsl,imx6sl-usdhc", .data = &usdhc_imx6sl_data, },
> > { .compatible = "fsl,imx6q-usdhc", .data = &usdhc_imx6q_data, },
> > { /* sentinel */ }
> > --
> > 1.7.8
> >
next prev parent reply other threads:[~2014-09-18 5:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 12:04 [PATCH 0/7] mmc: sdhci/imx: a few clean up and fixes Dong Aisheng
2014-09-03 12:04 ` [PATCH 1/7] mmc: sdhci-esdhc-imx: remove duplicated lines Dong Aisheng
2014-09-03 12:04 ` [PATCH 2/7] mmc: sdhci-esdhc-imx: usdhc does not have missing card interrupt issue Dong Aisheng
2014-09-03 12:04 ` [PATCH 3/7] mmc: sdhci-esdhc-imx: add ADMA Length Mismatch errata fix Dong Aisheng
2014-09-03 12:05 ` [PATCH 4/7] mmc: sdhci: do not enable card detect interrupt for gpio cd type Dong Aisheng
2014-09-03 12:05 ` [PATCH 5/7] mmc: sdhci: do not enable card cd wakeup for gpio case Dong Aisheng
2014-09-03 12:05 ` [PATCH 6/7] mmc: sdhci-esdhc-imx: add imx6sx support Dong Aisheng
2014-09-17 22:29 ` Ulf Hansson
2014-09-18 5:35 ` Dong Aisheng [this message]
2014-09-19 17:54 ` Ulf Hansson
2014-09-03 12:05 ` [PATCH 7/7] mmc: sdhci-esdhc-imx: add quirk SDHCI_QUIRK2_BROKEN_HS200 for imx6qdl Dong Aisheng
2014-09-03 12:34 ` [PATCH 0/7] mmc: sdhci/imx: a few clean up and fixes Fabio Estevam
2014-09-03 12:19 ` Dong Aisheng
2014-09-04 5:07 ` Shawn Guo
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=20140918053457.GA15363@shlinux1.ap.freescale.net \
--to=b29396@freescale.com \
--cc=chris@printf.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=shawn.guo@linaro.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;
as well as URLs for NNTP newsgroup(s).