[PATCH 0/2] regualtors: Fix suspend/resume issues since v4.16

From: Marek Szyprowski
Date: Mon Sep 03 2018 - 10:50:02 EST


Hi All,

While working on suspend/resume support for Samsung Exynos5433-based TM2
board (arch/arm64/boot/dts/exynos/exynos5433-tm2.dts), I've noticed that
v4.16 kernel release introduced some serious problems with regulator
configuration in system suspend state. Further investigation revealed
that the following 2 commits are responsible for my issues:

1. f7efad10b5c4: regulator: add PM suspend and resume hooks
2. 72069f9957a1: regulator: leave one item to record whether regulator is enabled

I've been really surprised that no-one noticed those issues for almost
4 kernel releases. Please review my fixes and apply to v4.19-rcX if
possible.

Best regards
Marek Szyprowski, PhD
Samsung R&D Institute Poland


Patch summary:

Marek Szyprowski (2):
regulator: Fix useless O^2 complexity in suspend/resume
regulator: Fix 'do-nothing' value for regulators without suspend state

drivers/regulator/core.c | 41 +++++++++----------------------
drivers/regulator/of_regulator.c | 2 --
include/linux/regulator/machine.h | 6 ++---
3 files changed, 15 insertions(+), 34 deletions(-)

--
2.17.1