diff mbox

[U-Boot,2/4] spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN

Message ID 1453028210-10139-3-git-send-email-christophe-h.ricard@st.com
State Accepted
Commit 674f3609aad39f099a5c3605643a6be124504b96
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Christophe Ricard Jan. 17, 2016, 10:56 a.m. UTC
In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---

 drivers/spi/spi-uclass.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Jan. 21, 2016, 2:46 a.m. UTC | #1
On 17 January 2016 at 03:56, Christophe Ricard
<christophe.ricard@gmail.com> wrote:
> In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default.
>
> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
> ---
>
>  drivers/spi/spi-uclass.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Jagan Teki Feb. 10, 2016, 7:19 p.m. UTC | #2
On 21 January 2016 at 08:16, Simon Glass <sjg@chromium.org> wrote:
> On 17 January 2016 at 03:56, Christophe Ricard
> <christophe.ricard@gmail.com> wrote:
>> In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default.
>>
>> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
>> ---
>>
>>  drivers/spi/spi-uclass.c | 1 +
>>  1 file changed, 1 insertion(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Jagan Teki <jteki@openedev.com>
diff mbox

Patch

diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 677c020..5561f36 100644
--- 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;
 }