Patchwork [3.11,58/70,SCSI] mpt2sas: Don't disable device twice at suspend.

mail settings
Submitter Luis Henriques
Date May 7, 2014, 1:13 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/346647/
State New
Headers show


Luis Henriques - May 7, 2014, 1:13 p.m. -stable review patch.  If anyone has any objections, please let me know.


From: Tyler Stachecki <>

commit af61e27c3f77c7623b5335590ae24b6a5c323e22 upstream.

On suspend, _scsih_suspend calls mpt2sas_base_free_resources, which
in turn calls pci_disable_device if the device is enabled prior to
suspending. However, _scsih_suspend also calls pci_disable_device

Thus, in the event that the device is enabled prior to suspending,
pci_disable_device will be called twice. This patch removes the
duplicate call to pci_disable_device in _scsi_suspend as it is both
unnecessary and results in a kernel oops.

Signed-off-by: Tyler Stachecki <>
Signed-off-by: James Bottomley <>
Signed-off-by: Luis Henriques <>
 drivers/scsi/mpt2sas/mpt2sas_scsih.c | 1 -
 1 file changed, 1 deletion(-)


diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 5100476..029dbbb 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -8287,7 +8287,6 @@  _scsih_suspend(struct pci_dev *pdev, pm_message_t state)
-	pci_disable_device(pdev);
 	pci_set_power_state(pdev, device_state);
 	return 0;