public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Kyungmin Park <kmpark@infradead.org>
Cc: Ben Dooks <ben-linux@fluff.org>,
	akpm@linux-foundation.org, mm-commits@vger.kernel.org,
	linux-mmc@vger.kernel.org
Subject: Re: + s5pc110-sdhci-s3c-can-override-host-capabilities.patch added to -mm tree
Date: Fri, 11 Jun 2010 04:48:32 +0100	[thread overview]
Message-ID: <20100611034830.GH3498@trinity.fluff.org> (raw)
In-Reply-To: <AANLkTim-ltyN6dj-eKUKXIMxOe18ipzvos6m68hGpSve@mail.gmail.com>

On Fri, Jun 11, 2010 at 12:24:00PM +0900, Kyungmin Park wrote:
> On Fri, Jun 11, 2010 at 9:34 AM, Ben Dooks <ben-linux@fluff.org> wrote:
> > On Thu, Jun 10, 2010 at 01:43:14PM -0700, akpm@linux-foundation.org wrote:
> >>
> >> The patch titled
> >>      s5pc110: SDHCI-s3c can override host capabilities
> >> has been added to the -mm tree.  Its filename is
> >>      s5pc110-sdhci-s3c-can-override-host-capabilities.patch
> >>
> >> Before you just go and hit "reply", please:
> >>    a) Consider who else should be cc'ed
> >>    b) Prefer to cc a suitable mailing list as well
> >>    c) Ideally: find the original patch on the mailing list and do a
> >>       reply-to-all to that, adding suitable additional cc's
> >>
> >> *** Remember to use Documentation/SubmitChecklist when testing your code ***
> >>
> >> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
> >> out what to do about this
> >>
> >> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
> >>
> >> ------------------------------------------------------
> >> Subject: s5pc110: SDHCI-s3c can override host capabilities
> >> From: Kyungmin Park <kmpark@infradead.org>
> >>
> >> Each board can override the default sdhci host capabilities.
> >> Some board has broken features by hardwares and support 8-bit bandwidth.
> >
> > I'd much rather see a mask to remove unsupported features than simply
> > override the already read hardware mask.
> 
> what do you mean? please see the Marek patch, each boards can use its
> own connection and configurations. So there's default caps (it's from
> you) and board can override it for their own purpose.

I'm having a rethink about the whole caps, it may not have been such a good
idea to do that way. Having the .caps fields means that each board that
needs to override it has to know all the caps for the controller meaning
it is much more difficult to share a standard platform data structure
across the system.

Note, for this we already have a max_width field, we could have easily
used that to force the 8bit capability off in the driver too.
 
> Thank you,
> Kyungmin Park
> 
> >
> >> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >> Cc: <linux-mmc@vger.kernel.org>
> >> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> >> ---
> >>
> >>  arch/arm/plat-samsung/dev-hsmmc.c  |    2 ++
> >>  arch/arm/plat-samsung/dev-hsmmc1.c |    2 ++
> >>  arch/arm/plat-samsung/dev-hsmmc2.c |    2 ++
> >>  3 files changed, 6 insertions(+)
> >>
> >> diff -puN arch/arm/plat-samsung/dev-hsmmc.c~s5pc110-sdhci-s3c-can-override-host-capabilities arch/arm/plat-samsung/dev-hsmmc.c
> >> --- a/arch/arm/plat-samsung/dev-hsmmc.c~s5pc110-sdhci-s3c-can-override-host-capabilities
> >> +++ a/arch/arm/plat-samsung/dev-hsmmc.c
> >> @@ -65,4 +65,6 @@ void s3c_sdhci0_set_platdata(struct s3c_
> >>               set->cfg_gpio = pd->cfg_gpio;
> >>       if (pd->cfg_card)
> >>               set->cfg_card = pd->cfg_card;
> >> +     if (pd->host_caps)
> >> +             set->host_caps = pd->host_caps;
> >>  }
> >> diff -puN arch/arm/plat-samsung/dev-hsmmc1.c~s5pc110-sdhci-s3c-can-override-host-capabilities arch/arm/plat-samsung/dev-hsmmc1.c
> >> --- a/arch/arm/plat-samsung/dev-hsmmc1.c~s5pc110-sdhci-s3c-can-override-host-capabilities
> >> +++ a/arch/arm/plat-samsung/dev-hsmmc1.c
> >> @@ -65,4 +65,6 @@ void s3c_sdhci1_set_platdata(struct s3c_
> >>               set->cfg_gpio = pd->cfg_gpio;
> >>       if (pd->cfg_card)
> >>               set->cfg_card = pd->cfg_card;
> >> +     if (pd->host_caps)
> >> +             set->host_caps = pd->host_caps;
> >>  }
> >> diff -puN arch/arm/plat-samsung/dev-hsmmc2.c~s5pc110-sdhci-s3c-can-override-host-capabilities arch/arm/plat-samsung/dev-hsmmc2.c
> >> --- a/arch/arm/plat-samsung/dev-hsmmc2.c~s5pc110-sdhci-s3c-can-override-host-capabilities
> >> +++ a/arch/arm/plat-samsung/dev-hsmmc2.c
> >> @@ -66,4 +66,6 @@ void s3c_sdhci2_set_platdata(struct s3c_
> >>               set->cfg_gpio = pd->cfg_gpio;
> >>       if (pd->cfg_card)
> >>               set->cfg_card = pd->cfg_card;
> >> +     if (pd->host_caps)
> >> +             set->host_caps = pd->host_caps;
> >>  }
> >> _
> >>
> >> Patches currently in -mm which might be from kmpark@infradead.org are
> >>
> >> mmc-recognize-csd-structure.patch
> >> mmc-recognize-csd-structure-fix.patch
> >> s5pc110-sdhci-s3c-can-override-host-capabilities.patch
> >> s5pc110-sdhci-s3c-support-on-s5pc110.patch
> >> sdhci-add-no-hi-speed-bit-quirk-support.patch
> >>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> > --
> > --
> > Ben
> >
> > Q:      What's a light-year?
> > A:      One-third less calories than a regular year.
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.


  reply	other threads:[~2010-06-11  3:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10 20:43 + s5pc110-sdhci-s3c-can-override-host-capabilities.patch added to -mm tree akpm
2010-06-11  0:34 ` Ben Dooks
2010-06-11  3:24   ` Kyungmin Park
2010-06-11  3:48     ` Ben Dooks [this message]
2010-06-11  4:23       ` Kyungmin Park

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=20100611034830.GH3498@trinity.fluff.org \
    --to=ben-linux@fluff.org \
    --cc=akpm@linux-foundation.org \
    --cc=kmpark@infradead.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mm-commits@vger.kernel.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