Am Mittwoch, 29. Oktober 2014, 13:50:20 schrieb Doug Anderson:I apply the patch on the top of linux-next, I will apply it on Heiko's
Kever,wrote:
On Wed, Oct 29, 2014 at 3:06 AM, Kever Yang <kever.yang@xxxxxxxxxxxxxx>
The rockchip clock driver use CLK_IGNORE_UNUSED flag to make sureYour patch didn't seem to apply to the top of Heiko's
all the clocks are available like default power on state.
We have implement the clock manage in most of rockchip drivers,
it is time to remove it for power save.
Instead we add CLK_IGNORE_UNUSED for some clock nodes which should
be on during boot or no module driver in kernel will initialize it.
Signed-off-by: Kever Yang <kever.yang@xxxxxxxxxxxxxx>
---
drivers/clk/rockchip/clk-rk3188.c | 32 ++++-----
drivers/clk/rockchip/clk-rk3288.c | 146
+++++++++++++++++++------------------- drivers/clk/rockchip/clk.c
| 9 ---
3 files changed, 90 insertions(+), 97 deletions(-)
"v3.19-clk/next". Where should it apply to?
Sorry for that, I didn't mean to removing any ID here, will fix in next version.
- GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_pre", 0,It seems strange to me that you're removing the ACLK_CPU ID here. Was
+ GATE(0, "aclk_cpu", "aclk_cpu_pre", CLK_IGNORE_UNUSED,
RK3288_CLKGATE_CON(0), 3, GFLAGS),
that on purpose?
I think Heiko is right, I test in my evb with following change and dwc2yeah, they should keep their clock ids
- COMPOSITE_NOMUX(PCLK_CPU, "pclk_cpu", "aclk_cpu_pre", 0,Here too for PCLK_CPU. There are a few others as well.
+ COMPOSITE_NOMUX(0, "pclk_cpu", "aclk_cpu_pre", CLK_IGNORE_UNUSED,
RK3288_CLKSEL_CON(1), 12, 3, DFLAGS,
RK3288_CLKGATE_CON(0), 5, GFLAGS),
I'll also say that when I applied this atop my local tree that USBmaybe Kever's dwc2 clock-handling patch [0] might help there, as the dwc2-host
stopped working. I just see:
[ 1647.626747] hub 2-1:1.0: hub_port_status failed (err = -110)
[ 1657.626746] hub 2-1:1.0: hub_port_status failed (err = -110)
...over and over and over again.
currently does not seem to do any clock handling at all.