Commit e31cfa9f authored by Thomas Betker's avatar Thomas Betker Committed by Michal Simek
Browse files

spi: zynq-qspi: Fix bits_per_word handling



The Zynq QSPI driver supports only 8-bit transfers
(which is exactly what is required by flash drivers),
not 32-bit transfers.Note that bits_per_word does not refer to
the width of the TXD and RXD registers, but to the alignment
and byte order of tx_buf and rx_buf;see the comment for
'struct spi_transfer' in include/linux/spi/spi.h.
*   Check qspi->bits_per_word in xqspips_setup().
*   Check transfer->bits_per_word in xqspips_work_queue().
*   Remove the check in xqspips_transfer().

Signed-off-by: default avatarThomas Betker <thomas.betker@rohde-schwarz.com>
Reviewed-by: default avatarHarini Katakam <harinik@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 1dbc805f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment