Skip to contentSkip to conversation

i2c: designware-pci: use IRQF_COND_SUSPEND flag

PATCH In review Andy Shevchenko 3 participants 3 messages Jan 15, 2016 – Jan 26, 2016

Subsystems (3)
lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH 1/1 i2c: designware-pci: use IRQF_COND_SUSPEND flag

This is effectively reapplies the commit b0898fdaffb2 (i2c: designware-pci: use IRQF_COND_SUSPEND flag) after the commit d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe()). Original message as follows.

The mentioned flag fixes a warning on Intel Edison board since one of the I2C controller shares IRQ line with watchdog timer.

Fixes d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe())
---
 drivers/i2c/busses/i2c-designware-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-designware-core.c +2 -1
index ba9732c..10fbd6d 100644
@@ -874,7 +874,8 @@ int i2c_dw_probe(struct dw_i2c_dev *dev)
 	i2c_set_adapdata(adap, dev);
 
 	i2c_dw_disable_int(dev);
-	r = devm_request_irq(dev->dev, dev->irq, i2c_dw_isr, IRQF_SHARED,
+	r = devm_request_irq(dev->dev, dev->irq, i2c_dw_isr,
+			     IRQF_SHARED | IRQF_COND_SUSPEND,
 			     dev_name(dev->dev), dev);
 	if (r) {
 		dev_err(dev->dev, "failure requesting irq %i: %d\n",
Signature · 1 line
2.7.0.rc3
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andy Shevchenko

This is effectively reapplies the commit b0898fdaffb2 (i2c: designware-pci: use IRQF_COND_SUSPEND flag) after the commit d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe()). Original message as follows.

Quoted 9 lines

The mentioned flag fixes a warning on Intel Edison board since one of the I2C controller shares IRQ line with watchdog timer.

Fixes d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe())
---
  drivers/i2c/busses/i2c-designware-core.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
#2 lore raw
In reply to Andy Shevchenko
Quoted 9 lines · Andy Shevchenko

This is effectively reapplies the commit b0898fdaffb2 (i2c: designware-pci: use IRQF_COND_SUSPEND flag) after the commit d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe()). Original message as follows.

The mentioned flag fixes a warning on Intel Edison board since one of the I2C controller shares IRQ line with watchdog timer.

Fixes d80d134182ba (i2c: designware: Move common probe code into i2c_dw_probe())

Fixed this checkpatch error:

ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit d80d134182ba ("i2c: designware: Move common probe code into i2c_dw_probe()")'

and applied to for-current, thanks!