Re: [PATCH 3/3] drivers/mmc/host: Add realtek sdmmc interface driver

From: Borislav Petkov
Date: Mon Jul 23 2012 - 12:52:26 EST


On Mon, Jul 23, 2012 at 05:42:51PM +0800, wei_wang@xxxxxxxxxxxxxx wrote:
> +static void realtek_init_host(struct realtek_sdmmc *host)
> +{
> + struct mmc_host *mmc = host->mmc;
> +
> + mmc->f_min = 250000;
> + mmc->f_max = 208000000;
> + mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
> + mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED |
> + MMC_CAP_MMC_HIGHSPEED | MMC_CAP_BUS_WIDTH_TEST |
> + MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
> + MMC_CAP_MAX_CURRENT_200 | MMC_CAP_MAX_CURRENT_400 |
> + MMC_CAP_MAX_CURRENT_600 | MMC_CAP_MAX_CURRENT_800;

drivers/mmc/host/rtsx_sdmmc.c: In function ârealtek_init_hostâ:
drivers/mmc/host/rtsx_sdmmc.c:263:3: error: âMMC_CAP_MAX_CURRENT_200â undeclared (first use in this function)
drivers/mmc/host/rtsx_sdmmc.c:263:3: note: each undeclared identifier is reported only once for each function it appears in
drivers/mmc/host/rtsx_sdmmc.c:263:29: error: âMMC_CAP_MAX_CURRENT_400â undeclared (first use in this function)
drivers/mmc/host/rtsx_sdmmc.c:264:3: error: âMMC_CAP_MAX_CURRENT_600â undeclared (first use in this function)
drivers/mmc/host/rtsx_sdmmc.c:264:29: error: âMMC_CAP_MAX_CURRENT_800â undeclared (first use in this function)
make[3]: *** [drivers/mmc/host/rtsx_sdmmc.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2

This happens when I enable CONFIG_MMC_REALTEK to build rtsx_sdmmc.c

Config attached.

--
Regards/Gruss,
Boris.

Attachment: config.gz
Description: Binary data