Merge branches 'acpi-pci', 'acpi-soc' and 'pnp'
* acpi-pci: x86/ACPI/PCI: Recognize that Interrupt Line 255 means "not connected" * acpi-soc: i2c: designware: Add device HID for future AMD I2C controller * pnp: PNP / ACPI: add ACPI_RESOURCE_TYPE_SERIAL_BUS as a valid type
This commit is contained in:
@@ -125,6 +125,16 @@ struct irqaction {
|
||||
|
||||
extern irqreturn_t no_action(int cpl, void *dev_id);
|
||||
|
||||
/*
|
||||
* If a (PCI) device interrupt is not connected we set dev->irq to
|
||||
* IRQ_NOTCONNECTED. This causes request_irq() to fail with -ENOTCONN, so we
|
||||
* can distingiush that case from other error returns.
|
||||
*
|
||||
* 0x80000000 is guaranteed to be outside the available range of interrupts
|
||||
* and easy to distinguish from other possible incorrect values.
|
||||
*/
|
||||
#define IRQ_NOTCONNECTED (1U << 31)
|
||||
|
||||
extern int __must_check
|
||||
request_threaded_irq(unsigned int irq, irq_handler_t handler,
|
||||
irq_handler_t thread_fn,
|
||||
|
Reference in New Issue
Block a user