You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] irq-flags: scsi: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5d8c8a2e8e
commit
1d6f359a2e
@@ -2122,7 +2122,7 @@ static int __devinit twa_probe(struct pci_dev *pdev, const struct pci_device_id
|
||||
TW_PARAM_PORTCOUNT, TW_PARAM_PORTCOUNT_LENGTH)));
|
||||
|
||||
/* Now setup the interrupt handler */
|
||||
retval = request_irq(pdev->irq, twa_interrupt, SA_SHIRQ, "3w-9xxx", tw_dev);
|
||||
retval = request_irq(pdev->irq, twa_interrupt, IRQF_SHARED, "3w-9xxx", tw_dev);
|
||||
if (retval) {
|
||||
TW_PRINTK(tw_dev->host, TW_DRIVER, 0x30, "Error requesting IRQ");
|
||||
goto out_remove_host;
|
||||
|
||||
@@ -2397,7 +2397,7 @@ static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *
|
||||
printk(KERN_WARNING "3w-xxxx: scsi%d: Found a 3ware Storage Controller at 0x%x, IRQ: %d.\n", host->host_no, tw_dev->base_addr, pdev->irq);
|
||||
|
||||
/* Now setup the interrupt handler */
|
||||
retval = request_irq(pdev->irq, tw_interrupt, SA_SHIRQ, "3w-xxxx", tw_dev);
|
||||
retval = request_irq(pdev->irq, tw_interrupt, IRQF_SHARED, "3w-xxxx", tw_dev);
|
||||
if (retval) {
|
||||
printk(KERN_WARNING "3w-xxxx: Error requesting IRQ.");
|
||||
goto out_remove_host;
|
||||
|
||||
@@ -1070,7 +1070,7 @@ NCR53c7x0_init (struct Scsi_Host *host) {
|
||||
|
||||
NCR53c7x0_driver_init (host);
|
||||
|
||||
if (request_irq(host->irq, NCR53c7x0_intr, SA_SHIRQ, "53c7xx", host))
|
||||
if (request_irq(host->irq, NCR53c7x0_intr, IRQF_SHARED, "53c7xx", host))
|
||||
{
|
||||
printk("scsi%d : IRQ%d not free, detaching\n",
|
||||
host->host_no, host->irq);
|
||||
@@ -4232,7 +4232,7 @@ restart:
|
||||
* Purpose : handle NCR53c7x0 interrupts for all NCR devices sharing
|
||||
* the same IRQ line.
|
||||
*
|
||||
* Inputs : Since we're using the SA_INTERRUPT interrupt handler
|
||||
* Inputs : Since we're using the IRQF_DISABLED interrupt handler
|
||||
* semantics, irq indicates the interrupt which invoked
|
||||
* this handler.
|
||||
*
|
||||
|
||||
@@ -1844,7 +1844,7 @@ static boolean __init BusLogic_AcquireResources(struct BusLogic_HostAdapter *Hos
|
||||
/*
|
||||
Acquire shared access to the IRQ Channel.
|
||||
*/
|
||||
if (request_irq(HostAdapter->IRQ_Channel, BusLogic_InterruptHandler, SA_SHIRQ, HostAdapter->FullModelName, HostAdapter) < 0) {
|
||||
if (request_irq(HostAdapter->IRQ_Channel, BusLogic_InterruptHandler, IRQF_SHARED, HostAdapter->FullModelName, HostAdapter) < 0) {
|
||||
BusLogic_Error("UNABLE TO ACQUIRE IRQ CHANNEL %d - DETACHING\n", HostAdapter, HostAdapter->IRQ_Channel);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -585,7 +585,7 @@ static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible)
|
||||
NCR5380_setup(instance);
|
||||
|
||||
for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1)
|
||||
if ((mask & possible) && (request_irq(i, &probe_intr, SA_INTERRUPT, "NCR-probe", NULL) == 0))
|
||||
if ((mask & possible) && (request_irq(i, &probe_intr, IRQF_DISABLED, "NCR-probe", NULL) == 0))
|
||||
trying_irqs |= mask;
|
||||
|
||||
timeout = jiffies + (250 * HZ / 1000);
|
||||
|
||||
@@ -320,7 +320,7 @@ NCR_D700_probe(struct device *dev)
|
||||
memset(p, '\0', sizeof(*p));
|
||||
p->dev = dev;
|
||||
snprintf(p->name, sizeof(p->name), "D700(%s)", dev->bus_id);
|
||||
if (request_irq(irq, NCR_D700_intr, SA_SHIRQ, p->name, p)) {
|
||||
if (request_irq(irq, NCR_D700_intr, IRQF_SHARED, p->name, p)) {
|
||||
printk(KERN_ERR "D700: request_irq failed\n");
|
||||
kfree(p);
|
||||
return -EBUSY;
|
||||
|
||||
@@ -265,7 +265,7 @@ NCR_Q720_probe(struct device *dev)
|
||||
p->irq = irq;
|
||||
p->siops = siops;
|
||||
|
||||
if (request_irq(irq, NCR_Q720_intr, SA_SHIRQ, "NCR_Q720", p)) {
|
||||
if (request_irq(irq, NCR_Q720_intr, IRQF_SHARED, "NCR_Q720", p)) {
|
||||
printk(KERN_ERR "NCR_Q720: request irq %d failed\n", irq);
|
||||
goto out_release;
|
||||
}
|
||||
|
||||
@@ -1120,7 +1120,7 @@ static int __devinit inia100_probe_one(struct pci_dev *pdev,
|
||||
shost->sg_tablesize = TOTAL_SG_ENTRY;
|
||||
|
||||
/* Initial orc chip */
|
||||
error = request_irq(pdev->irq, inia100_intr, SA_SHIRQ,
|
||||
error = request_irq(pdev->irq, inia100_intr, IRQF_SHARED,
|
||||
"inia100", shost);
|
||||
if (error < 0) {
|
||||
printk(KERN_WARNING "inia100: unable to get irq %d\n",
|
||||
|
||||
@@ -208,7 +208,7 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
|
||||
regs.SASR = &(DMA(instance)->SASR);
|
||||
regs.SCMD = &(DMA(instance)->SCMD);
|
||||
wd33c93_init(instance, regs, dma_setup, dma_stop, WD33C93_FS_8_10);
|
||||
request_irq(IRQ_AMIGA_PORTS, a2091_intr, SA_SHIRQ, "A2091 SCSI",
|
||||
request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI",
|
||||
instance);
|
||||
DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN;
|
||||
num_a2091++;
|
||||
|
||||
@@ -190,7 +190,7 @@ int __init a3000_detect(struct scsi_host_template *tpnt)
|
||||
regs.SASR = &(DMA(a3000_host)->SASR);
|
||||
regs.SCMD = &(DMA(a3000_host)->SCMD);
|
||||
wd33c93_init(a3000_host, regs, dma_setup, dma_stop, WD33C93_FS_12_15);
|
||||
if (request_irq(IRQ_AMIGA_PORTS, a3000_intr, SA_SHIRQ, "A3000 SCSI",
|
||||
if (request_irq(IRQ_AMIGA_PORTS, a3000_intr, IRQF_SHARED, "A3000 SCSI",
|
||||
a3000_intr))
|
||||
goto fail_irq;
|
||||
DMA(a3000_host)->CNTR = CNTR_PDMD | CNTR_INTEN;
|
||||
|
||||
@@ -453,7 +453,7 @@ int aac_rkt_init(struct aac_dev *dev)
|
||||
}
|
||||
msleep(1);
|
||||
}
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_rkt_intr, SA_SHIRQ|SA_INTERRUPT, "aacraid", (void *)dev)<0)
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_rkt_intr, IRQF_SHARED|IRQF_DISABLED, "aacraid", (void *)dev)<0)
|
||||
{
|
||||
printk(KERN_ERR "%s%d: Interrupt unavailable.\n", name, instance);
|
||||
goto error_iounmap;
|
||||
|
||||
@@ -453,7 +453,7 @@ int aac_rx_init(struct aac_dev *dev)
|
||||
}
|
||||
msleep(1);
|
||||
}
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_rx_intr, SA_SHIRQ|SA_INTERRUPT, "aacraid", (void *)dev)<0)
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_rx_intr, IRQF_SHARED|IRQF_DISABLED, "aacraid", (void *)dev)<0)
|
||||
{
|
||||
printk(KERN_ERR "%s%d: Interrupt unavailable.\n", name, instance);
|
||||
goto error_iounmap;
|
||||
|
||||
@@ -327,7 +327,7 @@ int aac_sa_init(struct aac_dev *dev)
|
||||
msleep(1);
|
||||
}
|
||||
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_sa_intr, SA_SHIRQ|SA_INTERRUPT, "aacraid", (void *)dev ) < 0) {
|
||||
if (request_irq(dev->scsi_host_ptr->irq, aac_sa_intr, IRQF_SHARED|IRQF_DISABLED, "aacraid", (void *)dev ) < 0) {
|
||||
printk(KERN_WARNING "%s%d: Interrupt unavailable.\n", name, instance);
|
||||
goto error_iounmap;
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
|
||||
1.5 (8/8/96):
|
||||
1. Add support for ABP-940U (PCI Ultra) adapter.
|
||||
2. Add support for IRQ sharing by setting the SA_SHIRQ flag for
|
||||
2. Add support for IRQ sharing by setting the IRQF_SHARED flag for
|
||||
request_irq and supplying a dev_id pointer to both request_irq()
|
||||
and free_irq().
|
||||
3. In AscSearchIOPortAddr11() restore a call to check_region() which
|
||||
@@ -504,9 +504,9 @@
|
||||
3. For v2.1.93 and newer kernels use CONFIG_PCI and new PCI BIOS
|
||||
access functions.
|
||||
4. Update board serial number printing.
|
||||
5. Try allocating an IRQ both with and without the SA_INTERRUPT
|
||||
5. Try allocating an IRQ both with and without the IRQF_DISABLED
|
||||
flag set to allow IRQ sharing with drivers that do not set
|
||||
the SA_INTERRUPT flag. Also display a more descriptive error
|
||||
the IRQF_DISABLED flag. Also display a more descriptive error
|
||||
message if request_irq() fails.
|
||||
6. Update to latest Asc and Adv Libraries.
|
||||
|
||||
@@ -5202,19 +5202,19 @@ advansys_detect(struct scsi_host_template *tpnt)
|
||||
/* Register IRQ Number. */
|
||||
ASC_DBG1(2, "advansys_detect: request_irq() %d\n", shp->irq);
|
||||
/*
|
||||
* If request_irq() fails with the SA_INTERRUPT flag set,
|
||||
* then try again without the SA_INTERRUPT flag set. This
|
||||
* If request_irq() fails with the IRQF_DISABLED flag set,
|
||||
* then try again without the IRQF_DISABLED flag set. This
|
||||
* allows IRQ sharing to work even with other drivers that
|
||||
* do not set the SA_INTERRUPT flag.
|
||||
* do not set the IRQF_DISABLED flag.
|
||||
*
|
||||
* If SA_INTERRUPT is not set, then interrupts are enabled
|
||||
* If IRQF_DISABLED is not set, then interrupts are enabled
|
||||
* before the driver interrupt function is called.
|
||||
*/
|
||||
if (((ret = request_irq(shp->irq, advansys_interrupt,
|
||||
SA_INTERRUPT | (share_irq == TRUE ? SA_SHIRQ : 0),
|
||||
IRQF_DISABLED | (share_irq == TRUE ? IRQF_SHARED : 0),
|
||||
"advansys", boardp)) != 0) &&
|
||||
((ret = request_irq(shp->irq, advansys_interrupt,
|
||||
(share_irq == TRUE ? SA_SHIRQ : 0),
|
||||
(share_irq == TRUE ? IRQF_SHARED : 0),
|
||||
"advansys", boardp)) != 0))
|
||||
{
|
||||
if (ret == -EBUSY) {
|
||||
|
||||
@@ -855,7 +855,7 @@ struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup)
|
||||
SETPORT(SIMODE0, 0);
|
||||
SETPORT(SIMODE1, 0);
|
||||
|
||||
if( request_irq(shpnt->irq, swintr, SA_INTERRUPT|SA_SHIRQ, "aha152x", shpnt) ) {
|
||||
if( request_irq(shpnt->irq, swintr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) {
|
||||
printk(KERN_ERR "aha152x%d: irq %d busy.\n", shpnt->host_no, shpnt->irq);
|
||||
goto out_host_put;
|
||||
}
|
||||
@@ -889,7 +889,7 @@ struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup)
|
||||
SETPORT(SSTAT0, 0x7f);
|
||||
SETPORT(SSTAT1, 0xef);
|
||||
|
||||
if ( request_irq(shpnt->irq, intr, SA_INTERRUPT|SA_SHIRQ, "aha152x", shpnt) ) {
|
||||
if ( request_irq(shpnt->irq, intr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) {
|
||||
printk(KERN_ERR "aha152x%d: failed to reassign irq %d.\n", shpnt->host_no, shpnt->irq);
|
||||
goto out_host_put;
|
||||
}
|
||||
|
||||
@@ -634,7 +634,7 @@ static int aha1740_probe (struct device *dev)
|
||||
}
|
||||
|
||||
DEB(printk("aha1740_probe: enable interrupt channel %d\n",irq_level));
|
||||
if (request_irq(irq_level,aha1740_intr_handle,irq_type ? 0 : SA_SHIRQ,
|
||||
if (request_irq(irq_level,aha1740_intr_handle,irq_type ? 0 : IRQF_SHARED,
|
||||
"aha1740",shpnt)) {
|
||||
printk(KERN_ERR "aha1740_probe: Unable to allocate IRQ %d.\n",
|
||||
irq_level);
|
||||
|
||||
+1
-1
@@ -1371,7 +1371,7 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
probe_ent->port_ops = ahci_port_info[board_idx].port_ops;
|
||||
|
||||
probe_ent->irq = pdev->irq;
|
||||
probe_ent->irq_flags = SA_SHIRQ;
|
||||
probe_ent->irq_flags = IRQF_SHARED;
|
||||
probe_ent->mmio_base = mmio_base;
|
||||
probe_ent->private_data = hpriv;
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ aic7770_map_int(struct ahc_softc *ahc, u_int irq)
|
||||
|
||||
shared = 0;
|
||||
if ((ahc->flags & AHC_EDGE_INTERRUPT) == 0)
|
||||
shared = SA_SHIRQ;
|
||||
shared = IRQF_SHARED;
|
||||
|
||||
error = request_irq(irq, ahc_linux_isr, shared, "aic7xxx", ahc);
|
||||
if (error == 0)
|
||||
|
||||
@@ -342,7 +342,7 @@ ahd_pci_map_int(struct ahd_softc *ahd)
|
||||
int error;
|
||||
|
||||
error = request_irq(ahd->dev_softc->irq, ahd_linux_isr,
|
||||
SA_SHIRQ, "aic79xx", ahd);
|
||||
IRQF_SHARED, "aic79xx", ahd);
|
||||
if (!error)
|
||||
ahd->platform_data->irq = ahd->dev_softc->irq;
|
||||
|
||||
|
||||
@@ -375,7 +375,7 @@ ahc_pci_map_int(struct ahc_softc *ahc)
|
||||
int error;
|
||||
|
||||
error = request_irq(ahc->dev_softc->irq, ahc_linux_isr,
|
||||
SA_SHIRQ, "aic7xxx", ahc);
|
||||
IRQF_SHARED, "aic7xxx", ahc);
|
||||
if (error == 0)
|
||||
ahc->platform_data->irq = ahc->dev_softc->irq;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user