i2c: designware-pci: use IRQF_COND_SUSPEND flag
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Jul 2015 10:15:36 +0000 (13:15 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:35 +0000 (08:37 +0200)
The mentioned flag fixes a warning on Intel Edison board since one of the I2C
controller shares IRQ line with watchdog timer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-pcidrv.c

index 6643d2dc0b250ddbf022c669db4fd2b4b4f848e7..df23e8c30e6f8a37556de068cd816493d5574184 100644 (file)
@@ -260,8 +260,8 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev,
 
        snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci");
 
-       r = devm_request_irq(&pdev->dev, pdev->irq, i2c_dw_isr, IRQF_SHARED,
-                       adap->name, dev);
+       r = devm_request_irq(&pdev->dev, pdev->irq, i2c_dw_isr,
+                       IRQF_SHARED | IRQF_COND_SUSPEND, adap->name, dev);
        if (r) {
                dev_err(&pdev->dev, "failure requesting irq %i\n", dev->irq);
                return r;