]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i2c: tegra: Fix suspending in active runtime PM state
authorDmitry Osipenko <digetx@gmail.com>
Tue, 14 Jan 2020 01:34:35 +0000 (04:34 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit5cb75e60abd202e522111913275ca65f54f05b91
tree8837646cd6d859e3fc48dc63b602c2e5606f5485
parent5b3c883bc8dc7fc5c2f9361e72fb464ebc6ae1a5
i2c: tegra: Fix suspending in active runtime PM state

BugLink: https://bugs.launchpad.net/bugs/1862429
commit 9f42de8d4ec2304f10bbc51dc0484f3503d61196 upstream.

I noticed that sometime I2C clock is kept enabled during suspend-resume.
This happens because runtime PM defers dynamic suspension and thus it may
happen that runtime PM is in active state when system enters into suspend.
In particular I2C controller that is used for CPU's DVFS is often kept ON
during suspend because CPU's voltage scaling happens quite often.

Fixes: 8ebf15e9c869 ("i2c: tegra: Move suspend handling to NOIRQ phase")
Cc: <stable@vger.kernel.org> # v5.4+
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/i2c/busses/i2c-tegra.c