Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1581445
| From | Doug Anderson <dianders@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 |
| Date | 2017-02-15 17:50 +0100 |
| Message-ID | <tbaWe-2oT-17@gated-at.bofh.it> (permalink) |
| References | <taSwh-6Vg-7@gated-at.bofh.it> <tb9GP-1II-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Wed, Feb 15, 2017 at 7:27 AM, Javier Martinez Canillas <javier@dowhile0.org> wrote: > Hello Doug, > > On Tue, Feb 14, 2017 at 6:01 PM, Douglas Anderson <dianders@chromium.org> wrote: >> The PMU Cortex M0 on rk3399 is intended to be used for things like >> DDRFreq transitions, suspend/resume, and other things that are the >> purview of ARM Trusted Firmware and not the kernel. As such, the >> kernel shouldn't be messing with the clocks. Add CLK_IGNORE_UNUSED to >> these clocks. >> > > Isn't CLK_IS_CRITICAL a more suitable flag for this case? As I understand it (AKA please correct me if I'm wrong)... Usually CLK_IS_CRITICAL is more suitable than CLK_IGNORE_UNUSED since lots of old code used CLK_IGNORE_UNUSED for critical clocks before CLK_IS_CRITICAL existed. ...but in this case, I don't think it is more suitable. CLK_IS_CRITICAL means that the kernel should be in charge of keeping this clock on at all times. The documentation I see says: #define CLK_IS_CRITICAL BIT(11) /* do not gate, ever */ In our case, as was so eloquently described in our private bug by our firmware engineer: Just tell the kernel to keep its grubby hands off my clocks completely AKA: this isn't a clock that the kernel should touch--it is entirely managed by the firmware. It's OK for the kernel to show it in the clock tree, but otherwise "hands off". -Doug
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Douglas Anderson <dianders@chromium.org> - 2017-02-14 22:10 +0100
Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Javier Martinez Canillas <javier@dowhile0.org> - 2017-02-15 16:30 +0100
Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Doug Anderson <dianders@chromium.org> - 2017-02-15 17:50 +0100
Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Javier Martinez Canillas <javier@dowhile0.org> - 2017-02-15 18:10 +0100
Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Heiko Stübner <heiko@sntech.de> - 2017-02-15 18:10 +0100
Re: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Heiko Stuebner <heiko@sntech.de> - 2017-02-21 18:50 +0100
csiph-web