]> git.baikalelectronics.ru Git - kernel.git/commit
clk: vc5: Add suspend/resume support
authorMarek Vasut <marek.vasut@gmail.com>
Thu, 13 Dec 2018 16:15:28 +0000 (17:15 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 14 Dec 2018 21:43:04 +0000 (13:43 -0800)
commitbbeb4f3e9b8851c99a7f5708fcbdd37122ed2f05
tree4ff6de38bab85ab990ff693addcb8a52a74a0b95
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
clk: vc5: Add suspend/resume support

Add simple suspend/resume handlers to the driver to restore the chip
configuration after resume. It is possible that the chip was configured
with non-default values before suspend-resume cycle and that the chip
is powered down during this cycle, so the configuration could get lost.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Alexey Firago <alexey_firago@mentor.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-renesas-soc@vger.kernel.org
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-versaclock5.c