[U-Boot] [PATCH] mmc_spi: fix big-endian support error on be_to_cpu16
Thomas Chou
thomas at wytron.com.tw
Mon Aug 31 04:05:02 CEST 2015
u-boot/drivers/mmc/mmc_spi.c:94: undefined reference to
`be_to_cpu16'
It should be cpu_to_be16.
Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
Cc: Yoshinori Sato <ysato at users.sourceforge.jp>
Cc: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
---
drivers/mmc/mmc_spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c
index 9032a73..37721ae 100644
--- a/drivers/mmc/mmc_spi.c
+++ b/drivers/mmc/mmc_spi.c
@@ -91,7 +91,7 @@ static uint mmc_spi_readdata(struct mmc *mmc, void *xbuf,
spi_xfer(spi, bsize * 8, NULL, buf, 0);
spi_xfer(spi, 2 * 8, NULL, &crc, 0);
#ifdef CONFIG_MMC_SPI_CRC_ON
- if (be_to_cpu16(cyg_crc16(buf, bsize)) != crc) {
+ if (cpu_to_be16(cyg_crc16(buf, bsize)) != crc) {
debug("%s: CRC error\n", mmc->cfg->name);
r1 = R1_SPI_COM_CRC;
break;
--
2.1.4
More information about the U-Boot
mailing list