* [v2] mmc: sdhci-brcmstb: Remove incorrect capability
@ 2016-08-29 9:17 Jaedon Shin
2016-08-29 11:13 ` Ulf Hansson
0 siblings, 1 reply; 3+ messages in thread
From: Jaedon Shin @ 2016-08-29 9:17 UTC (permalink / raw)
To: Al Cooper, Adrian Hunter, Ulf Hansson
Cc: Florian Fainelli, linux-mmc, bcm-kernel-feedback-list,
Jaedon Shin
Removes incorrect 64-bit ADMA capability on Broadcom MIPS based SoCs.
The MIPS based BRCMSTB SDHCI host controllers are using ADMA only, but
the several chipsets have a incorrect capability about ADMA 64-bit.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
---
drivers/mmc/host/sdhci-brcmstb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c
index cce10fe3e19e..683bfc2af512 100644
--- a/drivers/mmc/host/sdhci-brcmstb.c
+++ b/drivers/mmc/host/sdhci-brcmstb.c
@@ -98,6 +98,8 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
* properties through mmc_of_parse().
*/
host->caps = sdhci_readl(host, SDHCI_CAPABILITIES);
+ if (IS_ENABLED(CONFIG_MIPS))
+ host->caps &= ~SDHCI_CAN_64BIT;
host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
SDHCI_SUPPORT_DDR50);
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [v2] mmc: sdhci-brcmstb: Remove incorrect capability
2016-08-29 9:17 [v2] mmc: sdhci-brcmstb: Remove incorrect capability Jaedon Shin
@ 2016-08-29 11:13 ` Ulf Hansson
2016-08-29 12:01 ` Jaedon Shin
0 siblings, 1 reply; 3+ messages in thread
From: Ulf Hansson @ 2016-08-29 11:13 UTC (permalink / raw)
To: Jaedon Shin
Cc: Al Cooper, Adrian Hunter, Florian Fainelli, linux-mmc,
bcm-kernel-feedback-list
On 29 August 2016 at 11:17, Jaedon Shin <jaedon.shin@gmail.com> wrote:
> Removes incorrect 64-bit ADMA capability on Broadcom MIPS based SoCs.
> The MIPS based BRCMSTB SDHCI host controllers are using ADMA only, but
> the several chipsets have a incorrect capability about ADMA 64-bit.
>
> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
> ---
> drivers/mmc/host/sdhci-brcmstb.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c
> index cce10fe3e19e..683bfc2af512 100644
> --- a/drivers/mmc/host/sdhci-brcmstb.c
> +++ b/drivers/mmc/host/sdhci-brcmstb.c
> @@ -98,6 +98,8 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
> * properties through mmc_of_parse().
> */
> host->caps = sdhci_readl(host, SDHCI_CAPABILITIES);
> + if (IS_ENABLED(CONFIG_MIPS))
I thought we agreed on using a specific DT compatible string to
distinguish what to do here was better? No?
> + host->caps &= ~SDHCI_CAN_64BIT;
> host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
> host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
> SDHCI_SUPPORT_DDR50);
> --
> 2.9.3
>
Kind regards
Uffe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [v2] mmc: sdhci-brcmstb: Remove incorrect capability
2016-08-29 11:13 ` Ulf Hansson
@ 2016-08-29 12:01 ` Jaedon Shin
0 siblings, 0 replies; 3+ messages in thread
From: Jaedon Shin @ 2016-08-29 12:01 UTC (permalink / raw)
To: Ulf Hansson
Cc: Jaedon Shin, Al Cooper, Adrian Hunter, Florian Fainelli,
linux-mmc, bcm-kernel-feedback-list
Hi Ulf,
2016. 8. 29., 오후 8:13, Ulf Hansson <ulf.hansson@linaro.org> 작성:
>
> On 29 August 2016 at 11:17, Jaedon Shin <jaedon.shin@gmail.com> wrote:
>> Removes incorrect 64-bit ADMA capability on Broadcom MIPS based SoCs.
>> The MIPS based BRCMSTB SDHCI host controllers are using ADMA only, but
>> the several chipsets have a incorrect capability about ADMA 64-bit.
>>
>> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
>> ---
>> drivers/mmc/host/sdhci-brcmstb.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c
>> index cce10fe3e19e..683bfc2af512 100644
>> --- a/drivers/mmc/host/sdhci-brcmstb.c
>> +++ b/drivers/mmc/host/sdhci-brcmstb.c
>> @@ -98,6 +98,8 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
>> * properties through mmc_of_parse().
>> */
>> host->caps = sdhci_readl(host, SDHCI_CAPABILITIES);
>> + if (IS_ENABLED(CONFIG_MIPS))
>
> I thought we agreed on using a specific DT compatible string to
> distinguish what to do here was better? No?
My mistake. please drop this patch.
The v3 patch should have new compatible string “brcm,bcm7445-sdhci”. The BCM7445 is
initial and typical 28nm generation ARM SoC. I’ll be send updated patch next day.
Thanks,
Jaedon
>
>> + host->caps &= ~SDHCI_CAN_64BIT;
>> host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
>> host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
>> SDHCI_SUPPORT_DDR50);
>> --
>> 2.9.3
>>
>
> Kind regards
> Uffe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-29 12:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 9:17 [v2] mmc: sdhci-brcmstb: Remove incorrect capability Jaedon Shin
2016-08-29 11:13 ` Ulf Hansson
2016-08-29 12:01 ` Jaedon Shin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox