* + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree
@ 2010-06-10 20:43 akpm
2010-06-11 0:42 ` Ben Dooks
0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2010-06-10 20:43 UTC (permalink / raw)
To: mm-commits; +Cc: kmpark, kyungmin.park, linux-mmc
The patch titled
SDHCI: add no hi-speed bit quirk support
has been added to the -mm tree. Its filename is
sdhci-add-no-hi-speed-bit-quirk-support.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: SDHCI: add no hi-speed bit quirk support
From: Kyungmin Park <kmpark@infradead.org>
Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
register.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/mmc/host/sdhci.c | 3 ++-
drivers/mmc/host/sdhci.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff -puN drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.c
--- a/drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support
+++ a/drivers/mmc/host/sdhci.c
@@ -1164,7 +1164,8 @@ static void sdhci_set_ios(struct mmc_hos
else
ctrl &= ~SDHCI_CTRL_4BITBUS;
- if (ios->timing == MMC_TIMING_SD_HS)
+ if (ios->timing == MMC_TIMING_SD_HS &&
+ !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
ctrl |= SDHCI_CTRL_HISPD;
else
ctrl &= ~SDHCI_CTRL_HISPD;
diff -puN drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.h
--- a/drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support
+++ a/drivers/mmc/host/sdhci.h
@@ -240,6 +240,8 @@ struct sdhci_host {
#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)
/* Controller cannot support End Attribute in NOP ADMA descriptor */
#define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26)
+/* Controller doesn't have HISPD bit field in HI-SPEED SD card */
+#define SDHCI_QUIRK_NO_HISPD_BIT (1<<27)
int irq; /* Device IRQ */
void __iomem * ioaddr; /* Mapped address */
_
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree
2010-06-10 20:43 + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree akpm
@ 2010-06-11 0:42 ` Ben Dooks
2010-06-11 3:25 ` Kyungmin Park
0 siblings, 1 reply; 5+ messages in thread
From: Ben Dooks @ 2010-06-11 0:42 UTC (permalink / raw)
To: akpm; +Cc: mm-commits, kmpark, kyungmin.park, linux-mmc
On Thu, Jun 10, 2010 at 01:43:19PM -0700, akpm@linux-foundation.org wrote:
>
> The patch titled
> SDHCI: add no hi-speed bit quirk support
> has been added to the -mm tree. Its filename is
> sdhci-add-no-hi-speed-bit-quirk-support.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: SDHCI: add no hi-speed bit quirk support
> From: Kyungmin Park <kmpark@infradead.org>
>
> Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
> register.
It would be nice for someone at Samsung to (a) explain the differences
from the base SDHCI spec for all their hardware (the databooks are often
vague in this area) and (b) for the information for the extra registers
this IP block has to be explained in more detail (and the platform code
checked for this too).
The CTRL2/CTRL3 registers definitions in the datasheets leave out useful
information such as how the feedback and filtering bits should be set
and how they depend on things such as the card type and bus speed.
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: <linux-mmc@vger.kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/mmc/host/sdhci.c | 3 ++-
> drivers/mmc/host/sdhci.h | 2 ++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff -puN drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.c
> --- a/drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support
> +++ a/drivers/mmc/host/sdhci.c
> @@ -1164,7 +1164,8 @@ static void sdhci_set_ios(struct mmc_hos
> else
> ctrl &= ~SDHCI_CTRL_4BITBUS;
>
> - if (ios->timing == MMC_TIMING_SD_HS)
> + if (ios->timing == MMC_TIMING_SD_HS &&
> + !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
> ctrl |= SDHCI_CTRL_HISPD;
> else
> ctrl &= ~SDHCI_CTRL_HISPD;
> diff -puN drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.h
> --- a/drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support
> +++ a/drivers/mmc/host/sdhci.h
> @@ -240,6 +240,8 @@ struct sdhci_host {
> #define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)
> /* Controller cannot support End Attribute in NOP ADMA descriptor */
> #define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26)
> +/* Controller doesn't have HISPD bit field in HI-SPEED SD card */
> +#define SDHCI_QUIRK_NO_HISPD_BIT (1<<27)
>
> int irq; /* Device IRQ */
> void __iomem * ioaddr; /* Mapped address */
> _
>
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree
2010-06-11 0:42 ` Ben Dooks
@ 2010-06-11 3:25 ` Kyungmin Park
2010-08-10 21:34 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Kyungmin Park @ 2010-06-11 3:25 UTC (permalink / raw)
To: Ben Dooks; +Cc: akpm, mm-commits, linux-mmc
On Fri, Jun 11, 2010 at 9:42 AM, Ben Dooks <ben-linux@fluff.org> wrote:
> On Thu, Jun 10, 2010 at 01:43:19PM -0700, akpm@linux-foundation.org wrote:
>>
>> The patch titled
>> SDHCI: add no hi-speed bit quirk support
>> has been added to the -mm tree. Its filename is
>> sdhci-add-no-hi-speed-bit-quirk-support.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: SDHCI: add no hi-speed bit quirk support
>> From: Kyungmin Park <kmpark@infradead.org>
>>
>> Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
>> register.
>
> It would be nice for someone at Samsung to (a) explain the differences
> from the base SDHCI spec for all their hardware (the databooks are often
> vague in this area) and (b) for the information for the extra registers
> this IP block has to be explained in more detail (and the platform code
> checked for this too).
I hope also.
Thank you,
Kyungmin Park
>
> The CTRL2/CTRL3 registers definitions in the datasheets leave out useful
> information such as how the feedback and filtering bits should be set
> and how they depend on things such as the card type and bus speed.
>
>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>> Cc: <linux-mmc@vger.kernel.org>
>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>> ---
>>
>> drivers/mmc/host/sdhci.c | 3 ++-
>> drivers/mmc/host/sdhci.h | 2 ++
>> 2 files changed, 4 insertions(+), 1 deletion(-)
>>
>> diff -puN drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.c
>> --- a/drivers/mmc/host/sdhci.c~sdhci-add-no-hi-speed-bit-quirk-support
>> +++ a/drivers/mmc/host/sdhci.c
>> @@ -1164,7 +1164,8 @@ static void sdhci_set_ios(struct mmc_hos
>> else
>> ctrl &= ~SDHCI_CTRL_4BITBUS;
>>
>> - if (ios->timing == MMC_TIMING_SD_HS)
>> + if (ios->timing == MMC_TIMING_SD_HS &&
>> + !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
>> ctrl |= SDHCI_CTRL_HISPD;
>> else
>> ctrl &= ~SDHCI_CTRL_HISPD;
>> diff -puN drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support drivers/mmc/host/sdhci.h
>> --- a/drivers/mmc/host/sdhci.h~sdhci-add-no-hi-speed-bit-quirk-support
>> +++ a/drivers/mmc/host/sdhci.h
>> @@ -240,6 +240,8 @@ struct sdhci_host {
>> #define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)
>> /* Controller cannot support End Attribute in NOP ADMA descriptor */
>> #define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26)
>> +/* Controller doesn't have HISPD bit field in HI-SPEED SD card */
>> +#define SDHCI_QUIRK_NO_HISPD_BIT (1<<27)
>>
>> int irq; /* Device IRQ */
>> void __iomem * ioaddr; /* Mapped address */
>> _
>>
>> 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.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree
2010-06-11 3:25 ` Kyungmin Park
@ 2010-08-10 21:34 ` Andrew Morton
2010-08-17 5:15 ` Kyungmin Park
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2010-08-10 21:34 UTC (permalink / raw)
To: Kyungmin Park; +Cc: Ben Dooks, linux-mmc
On Fri, 11 Jun 2010 12:25:32 +0900
Kyungmin Park <kmpark@infradead.org> wrote:
> On Fri, Jun 11, 2010 at 9:42 AM, Ben Dooks <ben-linux@fluff.org> wrote:
> > On Thu, Jun 10, 2010 at 01:43:19PM -0700, akpm@linux-foundation.org wrote:
> >>
> >> The patch titled
> >> __ __ __SDHCI: add no hi-speed bit quirk support
> >> has been added to the -mm tree. __Its filename is
> >> __ __ __sdhci-add-no-hi-speed-bit-quirk-support.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: SDHCI: add no hi-speed bit quirk support
> >> From: Kyungmin Park <kmpark@infradead.org>
> >>
> >> Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
> >> register.
> >
> > It would be nice for someone at Samsung to (a) explain the differences
> > from the base SDHCI spec for all their hardware (the databooks are often
> > vague in this area) and (b) for the information for the extra registers
> > this IP block has to be explained in more detail (and the platform code
> > checked for this too).
>
> I hope also.
Going back over this dicussion, I get the impression that nothing
really got resolved or finished. So it is far from clear that I should
send these:
s5pc110-sdhci-s3c-can-override-host-capabilities.patch
s5pc110-sdhci-s3c-support-on-s5pc110.patch
sdhci-add-no-hi-speed-bit-quirk-support.patch
upstream. Could we please revisit all of this ASAP?
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree
2010-08-10 21:34 ` Andrew Morton
@ 2010-08-17 5:15 ` Kyungmin Park
0 siblings, 0 replies; 5+ messages in thread
From: Kyungmin Park @ 2010-08-17 5:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Ben Dooks, linux-mmc
On Wed, Aug 11, 2010 at 6:34 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Fri, 11 Jun 2010 12:25:32 +0900
> Kyungmin Park <kmpark@infradead.org> wrote:
>
>> On Fri, Jun 11, 2010 at 9:42 AM, Ben Dooks <ben-linux@fluff.org> wrote:
>> > On Thu, Jun 10, 2010 at 01:43:19PM -0700, akpm@linux-foundation.org wrote:
>> >>
>> >> The patch titled
>> >> __ __ __SDHCI: add no hi-speed bit quirk support
>> >> has been added to the -mm tree. __Its filename is
>> >> __ __ __sdhci-add-no-hi-speed-bit-quirk-support.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: SDHCI: add no hi-speed bit quirk support
>> >> From: Kyungmin Park <kmpark@infradead.org>
>> >>
>> >> Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
>> >> register.
>> >
>> > It would be nice for someone at Samsung to (a) explain the differences
>> > from the base SDHCI spec for all their hardware (the databooks are often
>> > vague in this area) and (b) for the information for the extra registers
>> > this IP block has to be explained in more detail (and the platform code
>> > checked for this too).
>>
>> I hope also.
>
> Going back over this dicussion, I get the impression that nothing
> really got resolved or finished. So it is far from clear that I should
> send these:
>
> s5pc110-sdhci-s3c-can-override-host-capabilities.patch
Needed. since current sdhci only support 4-bit. but some board uses
the 8-bit buswidth.
> s5pc110-sdhci-s3c-support-on-s5pc110.patch
Needed. for s5pc110 & s5pc210.
> sdhci-add-no-hi-speed-bit-quirk-support.patch
>
> upstream. Could we please revisit all of this ASAP?
As System LSI don't explain it. we don't have a choice. but to fix the
current 2.6.36-rc1 issue. it should apply the
"sdhci-add-no-hi-speed-bit-quirk-support.patch"
I re-submit the against the latest kernel.
I check it's working on my goni & aquila board.
Thank you,
Kyungmin Park
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-17 5:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 20:43 + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree akpm
2010-06-11 0:42 ` Ben Dooks
2010-06-11 3:25 ` Kyungmin Park
2010-08-10 21:34 ` Andrew Morton
2010-08-17 5:15 ` Kyungmin Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox