diff options
author | Witold Sadowski <wsadowski@marvell.com> | 2022-12-19 06:42:48 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-26 23:23:21 +0000 |
commit | e8bb8f19e73a1e855e54788f8673b9b49e46b5cd (patch) | |
tree | b29e5e49e8ac41daf341a777e5f475d72a3f552a /drivers/spi/spidev.c | |
parent | b24cded8c065d7cef8690b2c7b82b828cce57708 (diff) | |
download | linux-e8bb8f19e73a1e855e54788f8673b9b49e46b5cd.tar.gz linux-e8bb8f19e73a1e855e54788f8673b9b49e46b5cd.tar.bz2 linux-e8bb8f19e73a1e855e54788f8673b9b49e46b5cd.zip |
spi: cadence: Fix busy cycles calculation
If xSPI is in x2/x4/x8 mode to calculate busy
cycles, busy bits count must be divided by the number
of lanes.
If opcommand is using 8 busy bits, but SPI is
in x4 mode, there will be only 2 busy cycles.
Signed-off-by: Witold Sadowski <wsadowski@marvell.com>
Reviewed-by: Chandrakala Chavva <cchavva@marvell.com>
Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20221219144254.20883-2-wsadowski@marvell.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spidev.c')
0 files changed, 0 insertions, 0 deletions