Skip to content

Commit a3eda0e

Browse files
committed
Merge branch 'pci/devres'
- Update resource request API documentation to encourage callers to supply a driver name when requesting resources (Philipp Stanner) - Export pci_intx_unmanaged() and pcim_intx() (always managed) so callers of pci_intx() (which is sometimes managed) can explicitly choose the one they need (Philipp Stanner) - Convert drivers from pci_intx() to always-managed pcim_intx() or never-managed pci_intx_unmanaged(): amd_sfh, ata (ahci, ata_piix, pata_rdc, sata_sil24, sata_sis, sata_uli, sata_vsc), bnx2x, bna, ntb, qtnfmac, rtsx, tifm_7xx1, vfio, xen-pciback (Philipp Stanner) - Remove pci_intx_unmanaged() since pci_intx() is now always unmanaged and pcim_intx() is always managed (Philipp Stanner) * pci/devres: PCI: Remove devres from pci_intx() net/ethernet: Use never-managed version of pci_intx() HID: amd_sfh: Use always-managed version of pcim_intx() wifi: qtnfmac: use always-managed version of pcim_intx() ata: Use always-managed version of pci_intx() PCI/MSI: Use never-managed version of pci_intx() vfio/pci: Use never-managed version of pci_intx() misc: Use never-managed version of pci_intx() ntb: Use never-managed version of pci_intx() drivers/xen: Use never-managed version of pci_intx() PCI: Export pci_intx_unmanaged() and pcim_intx() PCI: Encourage resource request API users to supply driver name
2 parents 35f11c3 + dfa2f4d commit a3eda0e

File tree

13 files changed

+59
-89
lines changed

13 files changed

+59
-89
lines changed

drivers/ata/ahci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
19871987

19881988
if (ahci_init_msi(pdev, n_ports, hpriv) < 0) {
19891989
/* legacy intx interrupts */
1990-
pci_intx(pdev, 1);
1990+
pcim_intx(pdev, 1);
19911991
}
19921992
hpriv->irq = pci_irq_vector(pdev, 0);
19931993

drivers/ata/ata_piix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ static int piix_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
17251725
* message-signalled interrupts currently).
17261726
*/
17271727
if (port_flags & PIIX_FLAG_CHECKINTR)
1728-
pci_intx(pdev, 1);
1728+
pcim_intx(pdev, 1);
17291729

17301730
if (piix_check_450nx_errata(pdev)) {
17311731
/* This writes into the master table but it does not

drivers/ata/pata_rdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static int rdc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
340340
return rc;
341341
host->private_data = hpriv;
342342

343-
pci_intx(pdev, 1);
343+
pcim_intx(pdev, 1);
344344

345345
host->flags |= ATA_HOST_PARALLEL_SCAN;
346346

drivers/ata/sata_sil24.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
13171317

13181318
if (sata_sil24_msi && !pci_enable_msi(pdev)) {
13191319
dev_info(&pdev->dev, "Using MSI\n");
1320-
pci_intx(pdev, 0);
1320+
pcim_intx(pdev, 0);
13211321
}
13221322

13231323
pci_set_master(pdev);

drivers/ata/sata_sis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
290290
}
291291

292292
pci_set_master(pdev);
293-
pci_intx(pdev, 1);
293+
pcim_intx(pdev, 1);
294294
return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
295295
IRQF_SHARED, &sis_sht);
296296
}

drivers/ata/sata_uli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
221221
}
222222

223223
pci_set_master(pdev);
224-
pci_intx(pdev, 1);
224+
pcim_intx(pdev, 1);
225225
return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
226226
IRQF_SHARED, &uli_sht);
227227
}

drivers/ata/sata_vsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int vsc_sata_init_one(struct pci_dev *pdev,
384384
pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x80);
385385

386386
if (pci_enable_msi(pdev) == 0)
387-
pci_intx(pdev, 0);
387+
pcim_intx(pdev, 0);
388388

389389
/*
390390
* Config offset 0x98 is "Extended Control and Status Register 0"

drivers/hid/amd-sfh-hid/amd_sfh_pcie.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int amd_sfh_irq_init_v2(struct amd_mp2_dev *privdata)
122122
{
123123
int rc;
124124

125-
pci_intx(privdata->pdev, true);
125+
pcim_intx(privdata->pdev, true);
126126

127127
rc = devm_request_irq(&privdata->pdev->dev, privdata->pdev->irq,
128128
amd_sfh_irq_handler, 0, DRIVER_NAME, privdata);
@@ -248,7 +248,7 @@ static void amd_mp2_pci_remove(void *privdata)
248248
struct amd_mp2_dev *mp2 = privdata;
249249
amd_sfh_hid_client_deinit(privdata);
250250
mp2->mp2_ops->stop_all(mp2);
251-
pci_intx(mp2->pdev, false);
251+
pcim_intx(mp2->pdev, false);
252252
amd_sfh_clear_intr(mp2);
253253
}
254254

drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static void amd_mp2_pci_remove(void *privdata)
289289
sfh_deinit_emp2();
290290
amd_sfh_hid_client_deinit(privdata);
291291
mp2->mp2_ops->stop_all(mp2);
292-
pci_intx(mp2->pdev, false);
292+
pcim_intx(mp2->pdev, false);
293293
amd_sfh_clear_intr(mp2);
294294
}
295295

drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static void qtnf_pcie_init_irq(struct qtnf_pcie_bus_priv *priv, bool use_msi)
204204

205205
if (!priv->msi_enabled) {
206206
pr_warn("legacy PCIE interrupts enabled\n");
207-
pci_intx(pdev, 1);
207+
pcim_intx(pdev, 1);
208208
}
209209
}
210210

0 commit comments

Comments
 (0)