Skip to content
Commit d7ac27ce authored by Witold Sadowski's avatar Witold Sadowski Committed by Ruiqiang Hao
Browse files

spi: cadence: Fix busy cycles calculation



commit 52b522d7be2e77e8854a47bf0ee1fa6f5702372b from
git@git.assembla.com:cavium/WindRiver.linux.git

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>
Change-Id: I95f42e762e283c360e6369cb00af0ad49f96e603
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/67406
Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 9191a938
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