[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=Vuwhsf4FeL6ZkB5dguEWxawWOeA6Ex-3mZdepX1bZKsA@mail.gmail.com>
Date: Wed, 15 Oct 2014 20:34:21 -0700
From: Doug Anderson <dianders@...omium.org>
To: Chris <zyw@...k-chips.com>
Cc: Heiko Stuebner <heiko@...ech.de>,
Mike Turquette <mturquette@...aro.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Kumar Gala <galak@...eaurora.org>,
Russell King <linux@....linux.org.uk>,
linux-rockchip@...ts.infradead.org,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Tony Xie <xxx@...k-chips.com>
Subject: Re: [PATCH 2/4] clk: rockchip: RK3288: add suspend and resume
Chris,
On Wed, Oct 15, 2014 at 1:48 PM, <zyw@...k-chips.com> wrote:
> From: Chris Zhong <zyw@...k-chips.com>
>
> save and restore some clks, which might be changed in suspend.
>
> Signed-off-by: Tony Xie <xxx@...k-chips.com>
> Signed-off-by: Chris Zhong <zyw@...k-chips.com>
> ---
>
> drivers/clk/rockchip/clk-rk3288.c | 61 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 61 insertions(+)
Put this as patch set #1? It's safe to do this first and the other
patch won't work without it (right?)
> +static int rk3288_clk_suspend(void)
> +{
> + int i, reg_id;
> +
> + for (i = 0; i < ARRAY_SIZE(rk3288_saved_cru_reg_ids); i++) {
> + reg_id = rk3288_saved_cru_reg_ids[i];
> +
> + rk3288_saved_cru_regs[i] =
> + __raw_readl(rk3288_cru_base + reg_id);
As talked about off-list, should probably not be the __raw version
here and elsewhere in this file.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists