]> git.baikalelectronics.ru Git - kernel.git/commit
misc: eeprom: at24: check suspend status before disable regulator
authorHsin-Yi Wang <hsinyi@chromium.org>
Tue, 20 Apr 2021 13:30:50 +0000 (21:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 11:50:59 +0000 (13:50 +0200)
commit2353049bef28208d2c7a3de355b15f80e945ceeb
tree4078ab7c8948253b0ac45866495e5a2b85997b9a
parent35764fe4cdc4696f485ca5fc94b9a426fb7cc487
misc: eeprom: at24: check suspend status before disable regulator

47f4d15e3435 ("misc: eeprom: at24: support pm_runtime control") disables
regulator in runtime suspend. If runtime suspend is called before
regulator disable, it will results in regulator unbalanced disabling.

Fixes: 47f4d15e3435 ("misc: eeprom: at24: support pm_runtime control")
Cc: stable <stable@vger.kernel.org>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210420133050.377209-1-hsinyi@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at24.c