diff mbox

[U-Boot,1/2] sunxi: mmc: Always declare High Capacity capability

Message ID 1424376202-9151-1-git-send-email-hdegoede@redhat.com
State Accepted
Delegated to: Pantelis Antoniou
Headers show

Commit Message

Hans de Goede Feb. 19, 2015, 8:03 p.m. UTC
High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
tablet, so always set it thereby fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/mmc/sunxi_mmc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Comments

Ian Campbell Feb. 21, 2015, 10:32 a.m. UTC | #1
On Thu, 2015-02-19 at 21:03 +0100, Hans de Goede wrote:
> High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
> capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
> tablet, so always set it thereby fixing this.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Acked-by: Ian Campbell <ijc@hellion.org.uk>
Pantelis Antoniou Feb. 23, 2015, 5:45 p.m. UTC | #2
Hi Hans,

> On Feb 19, 2015, at 22:03 , Hans de Goede <hdegoede@redhat.com> wrote:
> 
> High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
> capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
> tablet, so always set it thereby fixing this.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/mmc/sunxi_mmc.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
> index ebfec7c..2233545 100644
> --- a/drivers/mmc/sunxi_mmc.c
> +++ b/drivers/mmc/sunxi_mmc.c
> @@ -449,11 +449,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)
> 
> 	cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
> 	cfg->host_caps = MMC_MODE_4BIT;
> -	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
> -#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
> -    defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN9I)
> -	cfg->host_caps |= MMC_MODE_HC;
> -#endif
> +	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
> 	cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
> 
> 	cfg->f_min = 400000;
> -- 
> 2.1.0

Thanks, applied.

— Pantelis
Hans de Goede Feb. 24, 2015, 9:02 a.m. UTC | #3
Hi,

On 23-02-15 18:45, Pantelis Antoniou wrote:
> Hi Hans,
>
>> On Feb 19, 2015, at 22:03 , Hans de Goede <hdegoede@redhat.com> wrote:
>>
>> High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
>> capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
>> tablet, so always set it thereby fixing this.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>> drivers/mmc/sunxi_mmc.c | 6 +-----
>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
>> index ebfec7c..2233545 100644
>> --- a/drivers/mmc/sunxi_mmc.c
>> +++ b/drivers/mmc/sunxi_mmc.c
>> @@ -449,11 +449,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)
>>
>> 	cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
>> 	cfg->host_caps = MMC_MODE_4BIT;
>> -	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
>> -#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
>> -    defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN9I)
>> -	cfg->host_caps |= MMC_MODE_HC;
>> -#endif
>> +	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
>> 	cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
>>
>> 	cfg->f_min = 400000;
>> --
>> 2.1.0
>
> Thanks, applied.

Thanks, but since this was touching only sunxi code this has already been
merged through the sunxi tree, if you rebase on the latest master this
should drop from your tree.

Regards,

Hans
Hans de Goede Feb. 24, 2015, 11:39 a.m. UTC | #4
Hi,

On 24-02-15 10:02, Hans de Goede wrote:
> Hi,
>
> On 23-02-15 18:45, Pantelis Antoniou wrote:
>> Hi Hans,
>>
>>> On Feb 19, 2015, at 22:03 , Hans de Goede <hdegoede@redhat.com> wrote:
>>>
>>> High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
>>> capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
>>> tablet, so always set it thereby fixing this.
>>>
>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>> ---
>>> drivers/mmc/sunxi_mmc.c | 6 +-----
>>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
>>> index ebfec7c..2233545 100644
>>> --- a/drivers/mmc/sunxi_mmc.c
>>> +++ b/drivers/mmc/sunxi_mmc.c
>>> @@ -449,11 +449,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)
>>>
>>>     cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
>>>     cfg->host_caps = MMC_MODE_4BIT;
>>> -    cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
>>> -#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
>>> -    defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN9I)
>>> -    cfg->host_caps |= MMC_MODE_HC;
>>> -#endif
>>> +    cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
>>>     cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
>>>
>>>     cfg->f_min = 400000;
>>> --
>>> 2.1.0
>>
>> Thanks, applied.
>
> Thanks, but since this was touching only sunxi code this has already been
> merged through the sunxi tree, if you rebase on the latest master this
> should drop from your tree.

Ah I see that Tom has already pulled from your tree too, so now the patch
is upstream through both pulls, which git handles without problems, so
we're good here.

Regards,

Hans
diff mbox

Patch

diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index ebfec7c..2233545 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -449,11 +449,7 @@  struct mmc *sunxi_mmc_init(int sdc_no)
 
 	cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
 	cfg->host_caps = MMC_MODE_4BIT;
-	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
-#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
-    defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN9I)
-	cfg->host_caps |= MMC_MODE_HC;
-#endif
+	cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
 	cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
 
 	cfg->f_min = 400000;