]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i2c: tegra: Properly disable runtime PM on driver's probe error
authorDmitry Osipenko <digetx@gmail.com>
Tue, 14 Jan 2020 01:34:36 +0000 (04:34 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitdd9cef8c71db335b72e5d8e433aec6d9254cc9a0
tree26724a576fa4d4d618cb944bd5a5360e3aaa8117
parent5cb75e60abd202e522111913275ca65f54f05b91
i2c: tegra: Properly disable runtime PM on driver's probe error

BugLink: https://bugs.launchpad.net/bugs/1862429
commit 24a49678f5e20f18006e71b90ac1531876b27eb1 upstream.

One of the recent Tegra I2C commits made a change that resumes runtime PM
during driver's probe, but it missed to put the RPM in a case of error.
Note that it's not correct to use pm_runtime_status_suspended because it
breaks RPM refcounting.

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