Re: [BUG] CMD52 sent as first command not CMD0

David Vrabel
2011-02-06T16:02:23Z

On 06/02/2011 01:50, Chris Ball wrote:
>
>
> Thanks. We have macros for this, but need to add one for combo cards.
> include/linux/mmc/card.h should get:
>
> #define mmc_card_sd_combo(c) ((c)->type == MMC_TYPE_SD_COMBO)

How about something like:

#define mmc_card_has_sdio(c) \
({ \
struct mmc_card *__card = (c); \
mmc_card_sdio(__card) && mmc_card_sd_combo(__card); \
})

And similarly

#define mmc_card_has_sd(c) ...

David