aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-03-18 14:26:34 +0200
committerVinod Koul <vinod.koul@intel.com>2016-04-04 09:42:00 -0700
commit2d4d689f3ec56ad1eca6c899f418aeb6c0cf43ca (patch)
treee5cca5d0988e059421dcbf39687dd3da6ad4c371 /lib/string_helpers.c
parentLinux 4.6-rc1 (diff)
downloadlinux-dev-2d4d689f3ec56ad1eca6c899f418aeb6c0cf43ca.tar.xz
linux-dev-2d4d689f3ec56ad1eca6c899f418aeb6c0cf43ca.zip
dmaengine: hsu: allow more than 3 descriptors
Current code allows only up to 3 descriptors to be programmed to the hardware since it is used wrong calculations. Change % to min_t() to allow as many descriptors as user supplied. At once it could be programmed up to 4 descriptors due to hardware limitations. The issue was found under stress test, so it might not bother ordinary users. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions