summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2015-02-26 10:45:22 +0800
committerJagannadha Sutradharudu Teki <[email protected]>2015-03-30 01:42:49 +0530
commit52091ad146d766cdc5ccd65430b2a4e5cb7aec32 (patch)
treefe337a4e09d6e9a10207d58c0f1f0dedb365013a /include
parent1478aeb32dcf57fdd01fd9efc3e3ab0083450cc3 (diff)
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: 501943696ea4 (spi: designware_spi: Fix detecting FIFO depth) Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Pavel Machek <[email protected]> Reviewed-by: Jagannadha Sutradharudu Teki <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions