diff options
| author | Roman Guskov <[email protected]> | 2020-12-21 12:35:32 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-12-21 17:18:52 +0000 |
| commit | a590370d918fc66c62df6620445791fbe840344a (patch) | |
| tree | 3974e762369f18c4e2ccf7fda522d98d10924327 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | spi: spi-geni-qcom: Print an error when we timeout setting the CS (diff) | |
| download | kernel-a590370d918fc66c62df6620445791fbe840344a.tar.gz kernel-a590370d918fc66c62df6620445791fbe840344a.zip | |
spi: stm32: FIFO threshold level - fix align packet size
if cur_bpw <= 8 and xfer_len < 4 then the value of fthlv will be 1 and
SPI registers content may have been lost.
* If SPI data register is accessed as a 16-bit register and DSIZE <= 8bit,
better to select FTHLV = 2, 4, 6 etc
* If SPI data register is accessed as a 32-bit register and DSIZE > 8bit,
better to select FTHLV = 2, 4, 6 etc, while if DSIZE <= 8bit,
better to select FTHLV = 4, 8, 12 etc
Signed-off-by: Roman Guskov <[email protected]>
Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller")
Reviewed-by: Marek Vasut <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
