[U-Boot] [PATCH 03/11] dm: spi: Correct status register access width
Simon Glass
sjg at chromium.org
Sun Jun 7 16:50:34 CEST 2015
The status register is a single byte, so use byte access when writing to it,
to avoid updating the control register also.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/spi/ich.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index 6b6cfbf..a8b4d0d 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -477,7 +477,7 @@ static int ich_spi_xfer(struct udevice *dev, unsigned int bitlen,
if (ret < 0)
return ret;
- ich_writew(ctlr, SPIS_CDS | SPIS_FCERR, ctlr->status);
+ ich_writeb(ctlr, SPIS_CDS | SPIS_FCERR, ctlr->status);
spi_setup_type(trans, using_cmd ? bytes : 0);
opcode_index = spi_setup_opcode(ctlr, trans);
--
2.2.0.rc0.207.ga3a616c
More information about the U-Boot
mailing list