pcmcia: IRQ_TYPE_EXCLUSIVE is long obsoleted
Switch more drivers to dynamic sharing after checking their IRQ handlers use dev_id and are robust Signed-off-by: Alan Cox <alan@redhat.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
committed by
Dominik Brodowski
parent
26e9a39777
commit
aafcf998c3
@ -293,6 +293,7 @@ static irqreturn_t btuart_interrupt(int irq, void *dev_inst)
|
||||
unsigned int iobase;
|
||||
int boguscount = 0;
|
||||
int iir, lsr;
|
||||
irqreturn_t r = IRQ_NONE;
|
||||
|
||||
BUG_ON(!info->hdev);
|
||||
|
||||
@ -302,6 +303,7 @@ static irqreturn_t btuart_interrupt(int irq, void *dev_inst)
|
||||
|
||||
iir = inb(iobase + UART_IIR) & UART_IIR_ID;
|
||||
while (iir) {
|
||||
r = IRQ_HANDLED;
|
||||
|
||||
/* Clear interrupt */
|
||||
lsr = inb(iobase + UART_LSR);
|
||||
@ -335,7 +337,7 @@ static irqreturn_t btuart_interrupt(int irq, void *dev_inst)
|
||||
|
||||
spin_unlock(&(info->lock));
|
||||
|
||||
return IRQ_HANDLED;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
@ -586,7 +588,7 @@ static int btuart_probe(struct pcmcia_device *link)
|
||||
|
||||
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
|
||||
link->io.NumPorts1 = 8;
|
||||
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
|
||||
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT;
|
||||
link->irq.IRQInfo1 = IRQ_LEVEL_ID;
|
||||
|
||||
link->irq.Handler = btuart_interrupt;
|
||||
|
Reference in New Issue
Block a user