Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/ata/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,10 @@ static void ahci_zx_led_remove_quirk(struct pci_dev *pdev)
if (target_p0_dev && p1_mmio_tmp)
break;
}

if (sata_pdev)
pci_dev_put(sata_pdev);

if (target_p0_dev) {
sata_host = pci_get_drvdata(target_p0_dev);
Comment on lines +1844 to 1848
sata_hpriv = sata_host ? sata_host->private_data : NULL;
Expand All @@ -1865,6 +1869,8 @@ static void ahci_zx_led_init_quirk(struct pci_dev *pdev, struct ahci_host_priv *
if (err) /* MSR read failed */
return;

pr_info("ahci: zx led quirk init\n");

Comment on lines +1872 to +1873
hpriv->sx_index = 0xFF;
hpriv->px_index = 0xFF;
hpriv->p1_mmio = NULL;
Expand Down Expand Up @@ -1906,6 +1912,8 @@ static void ahci_zx_led_init_quirk(struct pci_dev *pdev, struct ahci_host_priv *
break;
}
}
if (sata_pdev)
pci_dev_put(sata_pdev);
}
#else
static inline void ahci_zx_led_remove_quirk(struct pci_dev *pdev) { }
Expand Down
Loading