Re: [PATCH v4] clk: rockchip: disable unused clocks
From: Doug Anderson
Date: Mon Nov 03 2014 - 12:07:42 EST
Kever,
On Sat, Nov 1, 2014 at 5:44 AM, Kever Yang <kever.yang@xxxxxxxxxxxxxx> wrote:
> - COMPOSITE(SCLK_EMMC, "sclk_emmc", mux_mmc_src_p, 0,
> + COMPOSITE(SCLK_EMMC, "sclk_emmc", mux_mmc_src_p, CLK_IGNORE_UNUSED,
Is there a reason why this is needed? I took it out (AKA let eMMC get
disabled when unused) and my system booted w/ eMMC as the root
filesystem.
> - GATE(PCLK_UART2, "pclk_uart2", "pclk_cpu", 0, RK3288_CLKGATE_CON(11), 9, GFLAGS),
> + GATE(PCLK_UART2, "pclk_uart2", "pclk_cpu", CLK_IGNORE_UNUSED, RK3288_CLKGATE_CON(11), 9, GFLAGS),
Is there a reason why this is needed? I took it out (AKA let UART2
get disabled) and my system booted.
The console-related bits in my cmdline are:
earlyprintk=ttyS2,115200n8 console=tty1 console=ttyS2,115200n8 kgdboc=ttyS2
Do you have a different cmdline where it's failing?
Other than the two above this looks sane to me (only looked at
rk3288). At some point soon we should definitely fix the PWM and the
USB ones and then start looking at the others and see if there are any
others that can be fixed. ...but this seems like it's moving us in
the right direction and I'd like to see it landed.
So with the above two fixes, you can add my Reviewed-by and Tested-by.
I tested this in the chromeos-3.14 tree (which has tons of backports)
on rk3288-pinky. I tested:
* System continues to work normally (including graphics).
* WIP Suspend / Resume patches work better with this patch than
without (both normal and deep modes).
-Doug
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/