You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
761 B

  1. From 1307f0efca4acdff036b5b3a60847f7528cd7b6f Mon Sep 17 00:00:00 2001
  2. From: Stephane Fillod <f8cfe@free.fr>
  3. Date: Mon, 14 Jan 2019 17:50:50 +0100
  4. Subject: [PATCH] Fix parsing of Product Revision and Serial Number
  5. According to MMC Standard (similar to SDCard Standard).
  6. Signed-off-by: Stephane Fillod <f8cfe@free.fr>
  7. Acked-by: Avri Altman <avri.altman@wdc.com>
  8. ---
  9. lsmmc.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. --- a/lsmmc.c
  12. +++ b/lsmmc.c
  13. @@ -562,7 +562,7 @@ void print_mmc_cid(struct config *config
  14. unsigned int crc;
  15. parse_bin(cid, "8u6r2u8u48a4u4u32u4u4u7u1r",
  16. - &mid, &cbx, &oid, &pnm[0], &psn, &prv_major, &prv_minor,
  17. + &mid, &cbx, &oid, &pnm[0], &prv_major, &prv_minor, &psn,
  18. &mdt_year, &mdt_month, &crc);
  19. pnm[6] = '\0';