lkml.org 
[lkml]   [2016]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 3/5] clk: qcom: Add MSM8996 Global Clock Control (GCC) driver
From
Date
On 01/06/16 21:16, Rajendra Nayak wrote:
> Stephen,
>
> On 12/01/2015 07:01 AM, Stephen Boyd wrote:
>> Add support for the global clock controller found on MSM8996
>> based devices. This should allow most non-multimedia device
>> drivers to probe and control their clocks.
> On my 8096 board I see the following orphan clocks,
>
> /sys/kernel/debug/clk # cat clk_orphan_summary
> clock enable_cnt prepare_cnt rate accuracy phase
> --------------------------------------------------------------------------------------- -
> gcc_ufs_rx_symbol_1_clk 0 0 0 0 0
> gcc_ufs_rx_symbol_0_clk 0 0 0 0 0
> gcc_ufs_tx_symbol_0_clk 0 0 0 0 0
> gcc_pcie_2_pipe_clk 0 0 0 0 0
> gcc_pcie_1_pipe_clk 0 0 0 0 0
> gcc_pcie_0_pipe_clk 0 0 0 0 0
> gcc_usb3_phy_pipe_clk 0 0 0 0 0
>
> I was looking at some ufs clocks which lead me to this. something that needs to be fixed?
>

Hmm yes. This was a "TODO" because the data says there are parents for
these clocks, but they don't seem to exist in the global clock
controller. Perhaps they come from the phys? If my suspicion is right,
then those phy drivers need to register the source clocks and give them
some rate so that these clocks here aren't orphans. In the downstream
code they mark these clocks as root clocks, which doesn't seem right,
but I suppose that also works given that we don't seem to care about
rates, just on/off. It just feels hacky, so I left them as orphans for now.

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

\
 
 \ /
  Last update: 2016-01-08 01:21    [W:0.099 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site