Skip to content

Commit c03ac5e

Browse files
palistorulf
authored andcommitted
mmc: core: Do not export MMC_NAME= and MODALIAS=mmc:block for SDIO cards
SDIO non-combo cards are not handled by mmc_block driver and do not have accessible CID register which is used for MMC_NAME= construction. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Marek Behún <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent dbdea70 commit c03ac5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/mmc/core/bus.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ mmc_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
9393
return retval;
9494
}
9595

96+
/*
97+
* SDIO (non-combo) cards are not handled by mmc_block driver and do not
98+
* have accessible CID register which used by mmc_card_name() function.
99+
*/
100+
if (card->type == MMC_TYPE_SDIO)
101+
return 0;
102+
96103
retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card));
97104
if (retval)
98105
return retval;

0 commit comments

Comments
 (0)