diff options
author | Thierry Reding <treding@nvidia.com> | 2020-05-06 20:47:25 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-05-08 12:42:32 +0200 |
commit | 26ca88aaea26cce966e4c9c4eaf2e0bb9a9f28ea (patch) | |
tree | 0ce6395a5c5e6e8ab415bec07f801fa499964747 /drivers/i2c/busses/i2c-tegra.c | |
parent | 44c99904cf61f945d02ac9976ab10dd5ccaea393 (diff) | |
download | linux-26ca88aaea26cce966e4c9c4eaf2e0bb9a9f28ea.tar.gz linux-26ca88aaea26cce966e4c9c4eaf2e0bb9a9f28ea.tar.bz2 linux-26ca88aaea26cce966e4c9c4eaf2e0bb9a9f28ea.zip |
i2c: tegra: Keep IRQs enabled during suspend/resume
One of the I2C controllers on Tegra SoCs is typically connected to a
system PMIC, which provides controls for critical power supplies for
most platforms.
Some drivers, such as PCI, need to disable these regulators during a
very late stage during suspend and resume them at a very early stage
during resume.
To support these use-cases, keep interrupts disabled during suspend/
resume.
Suggested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-tegra.c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 119377da71fd..26673be867bc 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1694,8 +1694,8 @@ static int tegra_i2c_probe(struct platform_device *pdev) irq_set_status_flags(i2c_dev->irq, IRQ_NOAUTOEN); - ret = devm_request_irq(&pdev->dev, i2c_dev->irq, - tegra_i2c_isr, 0, dev_name(&pdev->dev), i2c_dev); + ret = devm_request_irq(&pdev->dev, i2c_dev->irq, tegra_i2c_isr, + IRQF_NO_SUSPEND, dev_name(&pdev->dev), i2c_dev); if (ret) { dev_err(&pdev->dev, "Failed to request irq %i\n", i2c_dev->irq); goto release_dma; |