MMC may wrongly regconize 2GB eMMC as high capacity
authorRaffaele Recalcati <lamiaposta71@gmail.com>
Wed, 23 Mar 2011 04:06:50 +0000 (04:06 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 13 Apr 2011 12:09:04 +0000 (07:09 -0500)
commit8511cd84ab2749c8edf41d123f365a1d2353528e
tree02102c27f040a69107e7423e241b39df6d76fbcf
parent5db2fe3ad9bdf4f32d72dbf2d3e3042bcd137a52
MMC may wrongly regconize 2GB eMMC as high capacity

Hi Terry,

> So I guess:
> mmc_init calls mmc_send_op_cond  that set  high_capacity,
> than it calls mmc_startup, that, with MMC_CMD_SEND_CSD  command, set
> the capacity, using values in CSD register.
> So I guess that mmc_change_freq should not recalculate high_capacity.
>
> It seems better, isn't it?
>
> Regards,
> Raffaele
>

Finally I think that it is enough to apply the following patch in order
to fix the issue.

Regards,
Raffaele

Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c