aacraid: Start adapter after updating number of MSIX vectors
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Tue, 26 Apr 2016 06:31:12 +0000 (23:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Apr 2016 23:08:24 +0000 (19:08 -0400)
The adapter has to be started after updating the number of MSIX Vectors

Fixes: ecc479e00db8 (aacraid: Set correct MSIX count for EEH recovery)
Cc: stable@vger.kernel.org
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c

index ff6caab8cc8b7c7105d465963b4f84579d1c771e..79a1cec1a51f8638f4313d4764a43374d6e666f5 100644 (file)
@@ -1431,8 +1431,8 @@ static int aac_acquire_resources(struct aac_dev *dev)
                /* After EEH recovery or suspend resume, max_msix count
                 * may change, therfore updating in init as well.
                 */
-               aac_adapter_start(dev);
                dev->init->Sa_MSIXVectors = cpu_to_le32(dev->max_msix);
+               aac_adapter_start(dev);
        }
        return 0;