From: "Pali Rohár" <pali.rohar@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: "Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
"Ulf Hansson" <ulf.hansson@linaro.org>,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org
Subject: Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT
Date: Fri, 15 May 2015 23:22:37 +0200 [thread overview]
Message-ID: <201505152322.37739@pali> (raw)
In-Reply-To: <2523437.y90mKuWhc3@wuerfel>
[-- Attachment #1: Type: Text/Plain, Size: 1123 bytes --]
On Friday 15 May 2015 23:19:44 Arnd Bergmann wrote:
> On Friday 15 May 2015 23:14:48 Pali Rohár wrote:
> > diff --git a/drivers/mmc/host/omap_hsmmc.c
> > b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644
> > --- a/drivers/mmc/host/omap_hsmmc.c
> > +++ b/drivers/mmc/host/omap_hsmmc.c
> > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data
> > *of_get_hsmmc_pdata(struct device *dev)
> >
> > if (of_find_property(np, "ti,needs-special-hs-handling",
> > NULL))
> >
> > pdata->features |= HSMMC_HAS_HSPE_SUPPORT;
> >
> > + of_property_read_string(np, "slot-name", &pdata->name);
> > +
> >
> > return pdata;
> >
> > }
>
> This property needs to be documented in
> Documentation/devicetree/bindings/mmc/mmc.txt and preferably the
> implementation moved into mmc_of_parse.
>
> We should not have an interface like this specific to one driver.
>
> Arnd
Interface is already present for platform data code (which do not use
DT). So "pdata->name" is not DT specific...
--
Pali Rohár
pali.rohar@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2015-05-15 21:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 21:14 [PATCH 0/2] omap_hsmmc: Supports slot-name also in DT Pali Rohár
2015-05-15 21:14 ` [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property " Pali Rohár
2015-05-15 21:19 ` Arnd Bergmann
2015-05-15 21:22 ` Pali Rohár [this message]
2015-05-15 21:25 ` Arnd Bergmann
2015-05-18 15:06 ` Tony Lindgren
2015-05-18 15:07 ` Arnd Bergmann
2015-12-25 12:53 ` Pali Rohár
2015-12-28 14:14 ` Arnd Bergmann
2015-12-28 14:28 ` Pali Rohár
2015-12-28 14:41 ` Arnd Bergmann
2015-12-28 14:54 ` Pali Rohár
2015-12-28 14:55 ` Arnd Bergmann
2016-01-02 15:22 ` Pali Rohár
2016-01-02 22:57 ` Arnd Bergmann
2016-01-02 23:03 ` Pali Rohár
2016-01-02 23:17 ` Arnd Bergmann
2015-05-15 21:14 ` [PATCH 2/2] omap3-n900.dts: Add slot-name properties for mmc devices Pali Rohár
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=201505152322.37739@pali \
--to=pali.rohar@gmail.com \
--cc=arnd@arndb.de \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
--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).