Skip to content

Commit

Permalink
bcm2835-mmc: Add option to disable MMC_QUIRK_BLK_NO_CMD23
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 18, 2015
1 parent 622cc72 commit d34769d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/mmc/core/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
/* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
* Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
*/
extern unsigned mmc_debug;
if (!(mmc_debug & (1<<13)))
card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
}
EXPORT_SYMBOL(mmc_fixup_device);
2 changes: 1 addition & 1 deletion drivers/mmc/host/bcm2835-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pr_debug(DRIVER_NAME " [%s()]: " f, __func__, ## x)
#define BCM2835_VCMMU_SHIFT (0x7E000000 - BCM2708_PERI_BASE)


static unsigned mmc_debug;
/*static */unsigned mmc_debug;

struct bcm2835_host {
spinlock_t lock;
Expand Down

0 comments on commit d34769d

Please sign in to comment.