diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2018-03-22 13:50:44 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-03-22 23:01:35 +0530 |
commit | fc282c7bcb6a622ce1a0cf82c55654dec5bcb0cd (patch) | |
tree | 0838cadd25803f9271dc6239a1c21404f221b62f /cmd/fdt.c | |
parent | c6b4f031d96a4e1d59761b294829b058b098f3df (diff) |
DW SPI: fix transmit only mode
In current implementation we get -ETIMEDOUT error when we try to use
transmit only mode (SPI_TMOD_TO)
This happens because in transmit only mode input FIFO never gets any data
which breaks our logic in dw_reader(): we are waiting until RX data will be
ready in dw_reader, but this newer happens, so we return with error.
Fix that by using SPI_TMOD_TR instead of SPI_TMOD_TO which allows to use
RX FIFO.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'cmd/fdt.c')
0 files changed, 0 insertions, 0 deletions