dmaengine: bcm-sba-raid: Common flags for sba_request state and fence
authorAnup Patel <anup.patel@broadcom.com>
Tue, 22 Aug 2017 09:56:52 +0000 (15:26 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:14:24 +0000 (16:44 +0530)
commit57a285085985c80ee0c7baa9938f28cf7e6d69fe
tree0b1c85e891412660b1512dadcc16efe026955d3c
parente4274cfa422b50c5b74434f4f23d9163626a01f4
dmaengine: bcm-sba-raid: Common flags for sba_request state and fence

This patch merges sba_request state and fence into common
sba_request flags. The sba_request flags not only saves
memory but it can also be extended in-future without adding
new members.

We also make each sba_request state as separate bit in
sba_request flags to help debugging situations where a
sba_request is accidently in two states.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm-sba-raid.c