Re: + sdhci-add-no-hi-speed-bit-quirk-support.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 11, 2010 at 9:42 AM, Ben Dooks <ben-linux@xxxxxxxxx> wrote:
> On Thu, Jun 10, 2010 at 01:43:19PM -0700, akpm@xxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxx>
>>
>> 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@xxxxxxxxxxx>
>> Cc: <linux-mmc@xxxxxxxxxxxxxxx>
>> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>> ---
>>
>>  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@xxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx
>> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux