]> git.sur5r.net Git - u-boot/commitdiff
fsl: update CRC after setting EEPROM identifier
authorTimur Tabi <timur@freescale.com>
Wed, 9 Feb 2011 19:40:51 +0000 (13:40 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 10 Feb 2011 05:30:39 +0000 (23:30 -0600)
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>
board/freescale/common/sys_eeprom.c

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