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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux