Browse Source

Merge branch 'fixes' into next

Ulf Hansson 7 years ago
parent
commit
e828b53afd
2 changed files with 10 additions and 0 deletions
  1. 2 0
      drivers/mmc/core/card.h
  2. 8 0
      drivers/mmc/core/quirks.h

+ 2 - 0
drivers/mmc/core/card.h

@@ -75,9 +75,11 @@ struct mmc_fixup {
 #define EXT_CSD_REV_ANY (-1u)
 #define EXT_CSD_REV_ANY (-1u)
 
 
 #define CID_MANFID_SANDISK      0x2
 #define CID_MANFID_SANDISK      0x2
+#define CID_MANFID_ATP          0x9
 #define CID_MANFID_TOSHIBA      0x11
 #define CID_MANFID_TOSHIBA      0x11
 #define CID_MANFID_MICRON       0x13
 #define CID_MANFID_MICRON       0x13
 #define CID_MANFID_SAMSUNG      0x15
 #define CID_MANFID_SAMSUNG      0x15
+#define CID_MANFID_APACER       0x27
 #define CID_MANFID_KINGSTON     0x70
 #define CID_MANFID_KINGSTON     0x70
 #define CID_MANFID_HYNIX	0x90
 #define CID_MANFID_HYNIX	0x90
 
 

+ 8 - 0
drivers/mmc/core/quirks.h

@@ -52,6 +52,14 @@ static const struct mmc_fixup mmc_blk_fixups[] = {
 	MMC_FIXUP("MMC32G", CID_MANFID_TOSHIBA, CID_OEMID_ANY, add_quirk_mmc,
 	MMC_FIXUP("MMC32G", CID_MANFID_TOSHIBA, CID_OEMID_ANY, add_quirk_mmc,
 		  MMC_QUIRK_BLK_NO_CMD23),
 		  MMC_QUIRK_BLK_NO_CMD23),
 
 
+	/*
+	 * Some SD cards lockup while using CMD23 multiblock transfers.
+	 */
+	MMC_FIXUP("AF SD", CID_MANFID_ATP, CID_OEMID_ANY, add_quirk_sd,
+		  MMC_QUIRK_BLK_NO_CMD23),
+	MMC_FIXUP("APUSD", CID_MANFID_APACER, 0x5048, add_quirk_sd,
+		  MMC_QUIRK_BLK_NO_CMD23),
+
 	/*
 	/*
 	 * Some MMC cards need longer data read timeout than indicated in CSD.
 	 * Some MMC cards need longer data read timeout than indicated in CSD.
 	 */
 	 */