scsi: hisi_sas: disable dlvry queues once at reset for v2 hw
authorJohn Garry <john.garry@huawei.com>
Tue, 6 Sep 2016 15:36:16 +0000 (23:36 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 16:54:17 +0000 (12:54 -0400)
The Delivery queue enable register should only be written to once at
reset for v2 hw.

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>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c

index 25e7c58612c853f8f552899c8737cf1e43763bc0..aca2b80a54b72d341053cc800f08b42302782c3c 100644 (file)
@@ -685,9 +685,7 @@ static int reset_hw_v2_hw(struct hisi_hba *hisi_hba)
        else
                reset_val = 0x7ffff;
 
-       /* Disable all of the DQ */
-       for (i = 0; i < HISI_SAS_MAX_QUEUES; i++)
-               hisi_sas_write32(hisi_hba, DLVRY_QUEUE_ENABLE, 0);
+       hisi_sas_write32(hisi_hba, DLVRY_QUEUE_ENABLE, 0);
 
        /* Disable all of the PHYs */
        for (i = 0; i < hisi_hba->n_phy; i++) {