commit | a6f2c7fff90a6fe7a31e764a21b65a809fafa765 | [log] [tgz] |
---|---|---|
author | John Garry <john.garry@huawei.com> | Tue Sep 06 23:36:19 2016 +0800 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Wed Sep 14 12:54:18 2016 -0400 |
tree | 6867b78c86a632969ce1b5cb2dc74df0809deb11 | |
parent | 09fe9ecb18a7add9b05928151998692d96338e41 [diff] |
scsi: hisi_sas: set dma mask before allocate DMA memory The device DMA mask was being set after the bulk of the DMA allocations in the driver init, so potentially DMA allocates fail. To resolve, relocate before allocating the DMA memory when initialising the driver. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>