KeverCorrect.
On Fri, Oct 31, 2014 at 2:29 AM, Kever Yang <kever.yang@xxxxxxxxxxxxxx> wrote:
This patch change the hierarchy for some clocks, to met the followingSo as I understand it the "parent" clocks aren't really parents but
bus hierarchy:
hclk_usb_peri is bus clock for
|- hclk_otg0,
|- hclk_host0,
|- hclk_host1,
|- hclk_hsic
hclk_emem is bus clock for
|- hclk_nandc0
|- hclk_nandc1
hclk_mem is bus clock for
|- hclk_sdmmc
|- hclk_sdio0
|- hclk_sdio1
|- hclk_emmc
are actually peer clocks. That is if "hclk_usb_peri" is gated
"hclk_otg0" continues to run. ...but the OTG periperhal is useless
without "hclk_usb_peri" also being enabled.
I will update the commit message in new version, I describe it
There doesn't seem to be any real downside to modeling thing as you
have done it, though it's not quite a true representation of the
world. A slightly more true representation would be to make it so
that whenever "hclk_otg0" is enabled/disabled that it makes an
enable/disable call to "hclk_usb_peri". I think you'd have to
subclass the gate clock and patch your stuff in the "enable" function.
I'm personally OK with things landing as you've described it (I can
see no downside), but it seems like this at least deserves a comment
(either in the code or the commit message).
Sure, I'm always looks for a better way for these kind of clocks,
If Mike T. thinks that we should use a more truthful model or if
there's some better way to express this, you should of course listen
to him and not to me.