]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spi: zynqmp_gqspi: do not round immediate_data field
authorWojciech Tatarski <wtatarski@antmicro.com>
Fri, 26 Apr 2019 15:09:03 +0000 (17:09 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Jun 2019 10:47:15 +0000 (12:47 +0200)
commitc379a08eb5211efa8defd7fa321c9cce91910b0e
tree69210e617dfe4fefb31c72a7c17b8ae203049428
parentd7432d93b4a88a0c4adc6143932bb6a64f15a9f5
spi: zynqmp_gqspi: do not round immediate_data field

Immediate_data is 8 bit value in generic FIFO command. When fields
data_xfer=1 and exponent=0 this field specifies the absolute number of data
bytes to read into the RXFIFO. Values from range 0xfd to 0xff are rounded
up to 0x100. It causes overwriting the next bit field which is data_xfer.
According to Zynq US+ TRM only DMA transfers should be word aligned. So
there is no reason to round up the immediate_data field.

Signed-off-by: Wojciech Tatarski <wtatarski@antmicro.com>
Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
Tested-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynqmp_gqspi.c