Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213671
| From | Maxime Coquelin <maxime.coquelin@st.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off |
| Date | 2015-08-26 10:50 +0200 |
| Message-ID | <q1Ez8-Dv-3@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <pYRjb-293-7@gated-at.bofh.it> <pZzNg-fs-7@gated-at.bofh.it> <pZzNg-fs-5@gated-at.bofh.it> <q1CQG-6AJ-17@gated-at.bofh.it> <q1CQG-6AJ-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Lee, On 08/26/2015 08:54 AM, Lee Jones wrote: > On Tue, 25 Aug 2015, Michael Turquette wrote: > > >> Maybe I am the one missing something? My goal was to allow the consumer >> driver to gate the critical clock. So we need clk_disable_unused to >> actually disable the clock for that to work. >> >> I think you are suggesting that clk_disable_unused should *not* disable >> the clock if it is critical. Can you confirm that? > My take is that a critical clock should only be disabled when a > knowledgeable driver wants to gate it for a specific purpose [probably > using clk_disable()]. Once the aforementioned driver no longer has a > use for the clock [whether that happens with clk_unprepare_disable() > or clk_put() ...] the clock should be ungated and be provided with > critical status once more. > How do you differentiate between a knowledgeable and non-knowledgeable driver? Let's take the example of the clock used by the i2c on STi SoCs. This clock is used by i2c, and is also critical to the system, but only i2c takes it. At first transfer, the i2c will enable the clock and then disables it. What we would expect here is that the clk_disable does not gate the clock, even if only user since the hand-off flag has been set. Else, system will freeze. Maxime -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-20 17:20 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Lee Jones <lee.jones@linaro.org> - 2015-08-26 09:00 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Maxime Coquelin <maxime.coquelin@st.com> - 2015-08-26 10:50 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Lee Jones <lee.jones@linaro.org> - 2015-08-26 11:20 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Maxime Coquelin <maxime.coquelin@st.com> - 2015-08-26 11:40 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Lee Jones <lee.jones@linaro.org> - 2015-08-26 22:50 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-29 05:50 +0200
Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-29 06:00 +0200
csiph-web