|
@@ -621,8 +621,11 @@ static void ahci_pci_save_initial_config(struct pci_dev *pdev,
|
|
static int ahci_pci_reset_controller(struct ata_host *host)
|
|
static int ahci_pci_reset_controller(struct ata_host *host)
|
|
{
|
|
{
|
|
struct pci_dev *pdev = to_pci_dev(host->dev);
|
|
struct pci_dev *pdev = to_pci_dev(host->dev);
|
|
|
|
+ int rc;
|
|
|
|
|
|
- ahci_reset_controller(host);
|
|
|
|
|
|
+ rc = ahci_reset_controller(host);
|
|
|
|
+ if (rc)
|
|
|
|
+ return rc;
|
|
|
|
|
|
if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
|
|
if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
|
|
struct ahci_host_priv *hpriv = host->private_data;
|
|
struct ahci_host_priv *hpriv = host->private_data;
|