Skip to content
Commit 980fe1ab authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bin Meng
Browse files

x86: tangier: Fix off-by-one error when preparing CSRT



Intel iDMA 32-bit controller has 17 bits for the maximum block size value.
Due to nature of the binary number representation the maximum value is
2^17 - 1. The original code misses the latter part in equation.

Fixes: 5e99fde3 ("x86: tangier: Populate CSRT for shared DMA controller")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 0c6352ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment