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)
commit8cbdc1f09f7ac5c082818909da104f92d3f38d77
tree4ff6de38bab85ab990ff693addcb8a52a74a0b95
parent651022382c7f8da46cb4872a545ee1da6d097d2a
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