projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3963919
)
spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN
author
Christophe Ricard
<christophe.ricard@gmail.com>
Sun, 17 Jan 2016 10:56:48 +0000
(11:56 +0100)
committer
Jagan Teki
<jteki@openedev.com>
Tue, 23 Feb 2016 10:44:46 +0000
(16:14 +0530)
In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/spi/spi-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-uclass.c
b/drivers/spi/spi-uclass.c
index 677c020b110251fcac33251f5446c5eb80ede925..5561f36762f9c6e45eff240c5e377920b96a0482 100644
(file)
--- a/
drivers/spi/spi-uclass.c
+++ b/
drivers/spi/spi-uclass.c
@@
-158,6
+158,7
@@
static int spi_child_pre_probe(struct udevice *dev)
slave->max_hz = plat->max_hz;
slave->mode = plat->mode;
slave->mode_rx = plat->mode_rx;
+ slave->wordlen = SPI_DEFAULT_WORDLEN;
return 0;
}