Anup Patel 5655e00f5c dmaengine: bcm-sba-raid: Allow arbitrary number free sba_request
Currently, we cannot have any arbitrary number of free sba_request
because sba_prealloc_channel_resources() allocates an array of
sba_request using devm_kcalloc() and kcalloc() cannot provide
memory beyond certain size.

This patch removes "reqs" (sba_request array) from sba_device
and makes "cmds" as variable array (instead of pointer) in
sba_request. This helps sba_prealloc_channel_resources() to
allocate sba_request and associated SBA command in one allocation
which in-turn allows arbitrary number of free sba_request.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2017-08-28 16:44:24 +05:30
..
2017-07-08 12:36:50 -07:00
2017-07-08 12:36:50 -07:00
2013-01-07 17:36:37 +01:00
2016-12-14 20:42:45 -08:00
2016-03-24 23:13:48 -07:00
2016-09-05 16:40:52 +05:30
2017-07-08 12:36:50 -07:00
2017-01-25 15:33:45 +05:30