scsi: hisi_sas: fix calls to dma_set_mask_and_coherent()
authorHannes Reinecke <hare@suse.de>
Mon, 18 Feb 2019 07:34:25 +0000 (08:34 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Feb 2019 02:44:40 +0000 (21:44 -0500)
commitd9a00459effc30f6de2cdd887b64f15c6c54ae71
tree4ee1ff5bf240ac4016d4ecd3b4bfd608ef297d9e
parent732f3238dcf27acb92959a99b7923dc49395980e
scsi: hisi_sas: fix calls to dma_set_mask_and_coherent()

The change to use dma_set_mask_and_coherent() incorrectly made a second
call with the 32 bit DMA mask value when the call with the 64 bit DMA
mask value succeeded.

[mkp: fixed commit message]

Fixes: e4db40e7a1a2 ("scsi: hisi_sas: use dma_set_mask_and_coherent")
Cc: <stable@vger.kernel.org>
Suggested-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c