Re: [PATCH] mmc: sdhci-brcmstb: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA

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

 



Hi Ulf,

> On Aug 19, 2016, at 10:44 PM, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
> 
> On 19 August 2016 at 04:25, Jaedon Shin <jaedon.shin@xxxxxxxxx> wrote:
>> Hi Alan,
>> 
>> On Aug 18, 2016, at 11:27 PM, Alan Cooper <alcooperx@xxxxxxxxx> wrote:
>>> 
>>> It would be better to make this a MIPS only setting because this issue
>>> only exists for MIPS chips and some newer ARM chips will support 64
>>> bit DMA.
>>> Also, since there's been a general effort to reduce the use QUIRKs,
>>> you could clear the SDHCI_CAN_64BIT in CAPS1 instead of using the
>>> QUIRK.
>>> 
>>> @@ -101,6 +101,9 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
>>>       host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
>>>       host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
>>>                       SDHCI_SUPPORT_DDR50);
>>> +#if defined(CONFIG_MIPS)
>>> +       host->caps1 &= ~SDHCI_CAN_64BIT;
>>> +#endif
>>>       host->quirks |= SDHCI_QUIRK_MISSING_CAPS |
>>>               SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
>> 
>> It's better to me, but we should use host->cap instead of host->cap1. I will update
>> patch with your comment.
> 
> Please, then also send this to the public linux-mmc list.
> 
> Kind regards
> Uffe
> 

I'm sorry I could not add the public linux-mmc list this mail thread, but 
I have already sent the updated patch with linux-mmc.

https://patchwork.kernel.org/patch/9289189/

Thanks,
Jaedon

>> 
>> Thanks,
>> Jaedon
>> 
>>> 
>>> 
>>> Al
>>> 
>>> On Thu, Aug 18, 2016 at 4:24 AM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
>>>> On 08/08/16 04:58, Jaedon Shin wrote:
>>>>> Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA quirk for Broadcom BRCMSTB SoCs. The
>>>>> Broadcom ARM and MIPS based BRCMSTB SDHCI host controllers are using
>>>>> ADMA, but the several chipsets have a incorrect capability about ADMA
>>>>> 64-bit.
>>>>> 
>>>>> Signed-off-by: Jaedon Shin <jaedon.shin@xxxxxxxxx>
>>>> 
>>>> Acked-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>
>>>> 
>>>>> ---
>>>>> drivers/mmc/host/sdhci-brcmstb.c | 1 +
>>>>> 1 file changed, 1 insertion(+)
>>>>> 
>>>>> diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c
>>>>> index cce10fe3e19e..704267000ef0 100644
>>>>> --- a/drivers/mmc/host/sdhci-brcmstb.c
>>>>> +++ b/drivers/mmc/host/sdhci-brcmstb.c
>>>>> @@ -103,6 +103,7 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
>>>>>                     SDHCI_SUPPORT_DDR50);
>>>>>     host->quirks |= SDHCI_QUIRK_MISSING_CAPS |
>>>>>             SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
>>>>> +     host->quirks2 |= SDHCI_QUIRK2_BROKEN_64_BIT_DMA;
>>>>> 
>>>>>     res = sdhci_add_host(host);
>>>>>     if (res)

--
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