Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1170188

Re: [PATCH v2 1/2] ARM: rockchip: add support holding 24Mhz osc during suspend

From Doug Anderson <dianders@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] ARM: rockchip: add support holding 24Mhz osc during suspend
Date 2015-06-22 22:10 +0200
Message-ID <pEgcz-5uo-17@gated-at.bofh.it> (permalink)
References <pDKmm-1Yl-11@gated-at.bofh.it> <pDKmm-1Yl-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Chris,

On Sun, Jun 21, 2015 at 3:00 AM, Chris Zhong <zyw@rock-chips.com> wrote:
> If we want to wake up system via usb, the 24Mhz osc could not be
> disabled during suspend, read the usb phy SIDDQ bit to decide whether
> to switch to 32khz clock-in.
>
> Signed-off-by: Chris Zhong <zyw@rock-chips.com>
> ---
>
>  arch/arm/mach-rockchip/pm.c | 38 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 36 insertions(+), 2 deletions(-)

As talked about privately, this patch is ugly.  ...but I don't see a
solution that is less ugly.  This method has the advantages that it is
"automatic"--the system figures out whether it needs the 24MHz clock
automatically based on whether the PHYs were left on.  No other
communication / device tree stuff is needed.


> +       /* if any usb phy is still on(GRF_SIDDQ==0), that means we need the
> +        * function of usb wakeup, so do not switch to 32khz, since the usb phy
> +        * clk does not connect to 32khz osc*/

This is not _quite_ the block commenting style used in this file.  It
would be a bit nicer if it matched.

Other than that:

Reviewed-by: Douglas Anderson <dianders@chromium.org>

On the chromeos-3.14 kernel (with the WIP dwc2 patches):
Tested-by: Douglas Anderson <dianders@chromium.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] ARM: rockchip: add support holding 24Mhz osc during suspend Chris Zhong <zyw@rock-chips.com> - 2015-06-21 12:10 +0200
  Re: [PATCH v2 1/2] ARM: rockchip: add support holding 24Mhz osc  during suspend Doug Anderson <dianders@chromium.org> - 2015-06-22 22:10 +0200
    Re: [PATCH v2 1/2] ARM: rockchip: add support holding 24Mhz osc during suspend Heiko Stübner <heiko@sntech.de> - 2015-06-22 23:10 +0200

csiph-web