Skip to content
Commit 52091ad1 authored by Axel Lin's avatar Axel Lin Committed by Jagannadha Sutradharudu Teki
Browse files

spi: designware_spi: revisit FIFO size detection again



By specification the FIFO size would be in a range 2-256 bytes. From TX Level
prospective it means we can set threshold in the range 0-(FIFO size - 1) bytes.
Hence there are currently two issues:
  a) FIFO size 2 bytes is actually skipped since TX Level is 1 bit and could be
     either 0 or 1 byte;
  b) FIFO size is incorrectly decreased by 1 which already done by meaning of
     TX Level register.

Fixes: 50194369 (spi: designware_spi: Fix detecting FIFO depth)
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarPavel Machek <pavel@denx.de>
Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
parent 1478aeb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment