devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Shawn Guo <shawn.guo@freescale.com>,
	nicolas.pitre@linaro.org, linux-mmc@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org, linaro-dev@lists.linaro.org
Subject: Re: [PATCH 5/7] mmc: support sdhci-esdhc-imx as an OF device
Date: Thu, 17 Mar 2011 15:42:07 -0500	[thread overview]
Message-ID: <4D82721F.5060907@gmail.com> (raw)
In-Reply-To: <20110317202238.GF12824@angua.secretlab.ca>

On 03/17/2011 03:22 PM, Grant Likely wrote:
> [cc'ing linux-mmc to continue this discussion]
>
> On Wed, Mar 16, 2011 at 10:39:16PM +0800, Shawn Guo wrote:
>> On Tue, Mar 15, 2011 at 01:59:26PM -0600, Grant Likely wrote:
>>> On Mon, Mar 14, 2011 at 10:25:57PM +0800, Shawn Guo wrote:
>>>> Signed-off-by: Shawn Guo<shawn.guo@linaro.org>
>>>
>>> dt support can be added directly to sdchi-pltfm.c drivers now.  There
>>> is no longer any need to use sdhci-of-core.c any more.  For an
>>> example, see the patch titled "of/tegra: add sdhci device tree
>>> handling" in my devicetree/test branch.
>>>
>> I mentioned this a little bit in the cover letter of the patch set
>> as below.
>>
>> "This patch set is to support sdhci-esdhc-imx as an OF device.  As
>> there is already powerpc based esdhc OF support, it chose to add OF
>> support for imx esdhc driver in a different way from what sdhci-tegra
>> did."
>
> I should read your descriptions more carefully.  :-)
>
>> The tegra approach you made was one of the two options I had, and I
>> happened to love the another more, as it consolidates the eSDHC OF
>> driver for Freescale MPCxxx and i.MX family.
>
> Heh, I don't dispute the value of merging code.  However, with this
> approach it means that DT and non-DT imx platforms will be using
> different drivers for the same device.  Given the choices, I'd
> rather see the imx driver used in both DT and non-DT situations
> instead of sharing code with the powerpc version.  I've learnt the
> hard way that it is just too painful having two drivers for the same
> hardware; particularly when the only difference is the method used to
> probe them.
>
> Actually, what I'd *really* rather see is the powerpc code migrated
> over to sdhci_pltfm.c, and then have the imx compatible value added to
> it.  I'll make sure to get some help from the Freescale powerpc folks
> to test any patch you produce to that end.

Based on past experience, there will be differences between imx and ppc 
h/w even though it is the "same" block.

Rob

  reply	other threads:[~2011-03-17 20:42 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 14:25 [PATCH 0/7] support sdhci-esdhc-imx as an OF device Shawn Guo
     [not found] ` <1300112759-3495-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-03-14 14:25   ` [PATCH 1/7] mx51 enchance the sd/mmc HW timing compatibility on mx51 boards Shawn Guo
2011-03-14 14:25   ` [PATCH 2/7] arm/dt: add pad configurations for mx51 babbage Shawn Guo
     [not found]     ` <1300112759-3495-3-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-03-14 15:20       ` Rob Herring
     [not found]         ` <4D7E3230.6040505-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-14 15:53           ` Shawn Guo
     [not found]             ` <20110314155313.GC3674-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2011-03-15  0:57               ` Shawn Guo
2011-03-15  7:57           ` Grant Likely
2011-03-14 14:25   ` [PATCH 3/7] mmc: make the reference to sdhci_tegra_dt_pdata conditional Shawn Guo
     [not found]     ` <1300112759-3495-4-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-03-15  7:58       ` Grant Likely
     [not found]         ` <20110315075859.GL23050-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-03-17 19:59           ` Grant Likely
     [not found]             ` <AANLkTi=umf9nDpExLEBgJEMgUP-CJUUEbAQrQfdBw7Fd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-18  1:22               ` Shawn Guo
     [not found]                 ` <20110318012202.GA26951-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2011-03-18  4:58                   ` Grant Likely
2011-03-14 14:25   ` [PATCH 4/7] mmc: consolidate sdhci_pltfm_data and sdhci_of_data into one Shawn Guo
     [not found]     ` <1300112759-3495-5-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-03-15 19:55       ` Grant Likely
     [not found]         ` <20110315195513.GA20845-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-03-17  6:33           ` Shawn Guo
2011-03-17 20:29             ` Grant Likely
2011-03-14 14:25   ` [PATCH 5/7] mmc: support sdhci-esdhc-imx as an OF device Shawn Guo
     [not found]     ` <1300112759-3495-6-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-03-15 19:59       ` Grant Likely
     [not found]         ` <20110315195926.GB20845-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-03-16 14:39           ` Shawn Guo
2011-03-17 20:22             ` Grant Likely
2011-03-17 20:42               ` Rob Herring [this message]
2011-03-14 14:25   ` [PATCH 6/7] arm/dts: babbage: add device nodes for esdhc Shawn Guo
2011-03-14 14:25   ` [PATCH 7/7] dt: update fsl-esdhc bindings for imx esdhc OF support Shawn Guo
2011-03-14 15:46   ` [PATCH 0/7] support sdhci-esdhc-imx as an OF device 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=4D82721F.5060907@gmail.com \
    --to=robherring2@gmail.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linaro-dev@lists.linaro.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=nicolas.pitre@linaro.org \
    --cc=shawn.guo@freescale.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 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).