megaraid: Fail resume if MSI-X re-initialization failed
authorAlexander Gordeev <agordeev@redhat.com>
Mon, 18 Aug 2014 06:01:43 +0000 (08:01 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:40 +0000 (09:09 -0700)
commitdd0881281d98e7d3d5e34224058a5d1389241126
tree0b14ad009a2f0d80d3ce9c560d47b02299816ad7
parent18fce3c440c762ab4dfb6156bbd3c0beb0f67f17
megaraid: Fail resume if MSI-X re-initialization failed

Currently the driver fails to analize MSI-X re-enablement
status on resuming and always assumes the success. This
update checks the MSI-X initialization result and fails
to resume if MSI-Xs re-enablement failed.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Acked-by: Kashyap Desai <Kashyap.desai@avagotech.com>
Cc: Neela Syam Kolli <megaraidlinux@lsi.com>
Cc: linux-scsi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas_base.c