[PATCH v2 1/1] mfd: intel_quark_i2c_gpio: enable MSI interrupt

From: Andy Shevchenko
Date: Thu Apr 28 2016 - 10:36:35 EST


Allow interrupts to be MSI if supported by hardware.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
In v2:
- enable bus mastering that device can do memory writes
drivers/mfd/intel_quark_i2c_gpio.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c
index 24c2d29..bc79a91 100644
--- a/drivers/mfd/intel_quark_i2c_gpio.c
+++ b/drivers/mfd/intel_quark_i2c_gpio.c
@@ -251,10 +251,14 @@ static int intel_quark_mfd_probe(struct pci_dev *pdev,
quark_mfd->dev = &pdev->dev;
dev_set_drvdata(&pdev->dev, quark_mfd);

+ pci_set_master(pdev);
+
ret = intel_quark_register_i2c_clk(&pdev->dev);
if (ret)
return ret;

+ pci_enable_msi(pdev);
+
ret = intel_quark_i2c_setup(pdev, &intel_quark_mfd_cells[1]);
if (ret)
goto err_unregister_i2c_clk;
--
2.8.0.rc3