Skip to content
Unverified Commit e8bb8f19 authored by Witold Sadowski's avatar Witold Sadowski Committed by Mark Brown
Browse files

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: default avatarWitold Sadowski <wsadowski@marvell.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20221219144254.20883-2-wsadowski@marvell.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b24cded8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment