summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-tegra.c')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 40dc68fcb678..7db71537c2cf 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -1607,7 +1607,11 @@ static void tegra_i2c_shutdown(struct platform_device *pdev)
{
struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev);
- i2c_dev->is_shutdown = true;
+ if (i2c_dev->bit_banging_xfer_after_shutdown) {
+ dev_info(i2c_dev->dev, "Bus is shutdown down..\n");
+ i2c_shutdown_adapter(&i2c_dev->adapter);
+ i2c_dev->is_shutdown = true;
+ }
}
#ifdef CONFIG_PM_SLEEP