On Tue, Feb 7, 2012 at 1:48 PM, Adrian Hunter <[email protected]> wrote:

> Let drivers specify the use of high-capacity erase size.
>
> Signed-off-by: Adrian Hunter <[email protected]>
(...)
> @@ -949,7 +949,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
>         * If enhanced_area_en is TRUE, host needs to enable ERASE_GRP_DEF
>         * bit.  This bit will be lost every time after a reset or power off.
>         */
> -       if (card->ext_csd.enhanced_area_en) {
> +       if (card->ext_csd.enhanced_area_en ||
> +           (card->ext_csd.rev >= 3 && (host->caps2 & MMC_CAP2_HC_ERASE_SZ))) 
> {

It looks like there is a bug fix hidden inside this patch, is it not?
The comparison for card->ext_csd.rev >= 3 was not there before,
and looks like it's fixing something and should go into stable even,
is that correct?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to