소스 검색

fsl: update CRC after setting EEPROM identifier

The "mac id" command is used to initialize the EEPROM data to a specific
format, but it was not updating the CRC.  This didn't cause any real
problems, because writing the data to the EEPROM will always update the
CRC anyway, but it did result in a bogus CRC warning.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Timur Tabi 14 년 전
부모
커밋
3fee334c85
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      board/freescale/common/sys_eeprom.c

+ 1 - 0
board/freescale/common/sys_eeprom.c

@@ -361,6 +361,7 @@ int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #else
 #else
 		memcpy(e.id, "CCID", sizeof(e.id));
 		memcpy(e.id, "CCID", sizeof(e.id));
 #endif
 #endif
+		update_crc();
 		return 0;
 		return 0;
 	}
 	}