| Submitter | Simon Glass |
|---|---|
| Date | Dec. 26, 2012, 10:28 p.m. |
| Message ID | <1356560913-2205-11-git-send-email-sjg@chromium.org> |
| Download | mbox | patch |
| Permalink | /patch/208231/ |
| State | Superseded, archived |
| Delegated to: | Simon Glass |
| Headers | show |
Comments
Patch
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 31f9482..17defa4 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -166,6 +166,11 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, return NULL; } + /* + * Yes this controller can only write a small number of bytes at + * once! The limit is typically 64 bytes. + */ + ich->slave.max_write_size = ctlr.databytes; ich->speed = max_hz; return &ich->slave;
This SPI controller can only write 64 bytes at a time. Add this restriction in so that 'sf write' works correct for blocks larger than 64 bytes. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/spi/ich.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)