Skip to contentSkip to conversation

Fix parsing of Product Revision and Serial Number

PATCH Ulf Hansson 1 participant 1 message Mar 31, 2021 3 messages not in the archive MMC, SD and SDIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1351172418.3304142.1547483917896.JavaMail.root@zimbra64-e11.priv.proxad.net

A message that is not in the archive (sent off-list or not yet received): 1823652044.3512532.1547484650178.JavaMail.root@zimbra64-e11.priv.proxad.net

A message that is not in the archive (sent off-list or not yet received): SN6PR04MB49257FCC0D21341EDB735C1FFC810@SN6PR04MB4925.namprd04.prod.outlook.com

Ulf Hansson

author Applied
#3 lore raw
Quoted 7 lines · Avri Altman
Quoted 5 lines

According to MMC Standard (similar to SDCard Standard).

Applied to git.kernel.org/pub/scm/utils/mmc/mmc-utils.git master, thanks!

Kind regards
Uffe

Quoted 17 lines
Quoted 17 lines

---

Rem: the field parsing order is fine in print_sd_cid().

lsmmc.c +1 -1
index 9737b37..98c0c4d 100644
@@ -550,7 +582,7 @@ void print_mmc_cid(struct config *config, char *cid)
      unsigned int crc;
 
      parse_bin(cid, "8u6r2u8u48a4u4u32u4u4u7u1r",
-             &mid, &cbx, &oid, &pnm[0], &psn, &prv_major, &prv_minor,
+             &mid, &cbx, &oid, &pnm[0], &prv_major, &prv_minor, &psn,
              &mdt_year, &mdt_month, &crc);
 
      pnm[6] = '\0';