From: Derek Basehore <dbasehore@chromium.org> To: linux-kernel@vger.kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-doc@vger.kernel.org, sboyd@kernel.org, mturquette@baylibre.com, heiko@sntech.de, aisheng.dong@nxp.com, mchehab+samsung@kernel.org, corbet@lwn.net, jbrunet@baylibre.com, Derek Basehore <dbasehore@chromium.org> Subject: [PATCH v2 5/6] docs: driver-api: add pre_rate_req to clk documentation Date: Mon, 4 Mar 2019 20:49:35 -0800 [thread overview] Message-ID: <20190305044936.22267-6-dbasehore@chromium.org> (raw) In-Reply-To: <20190305044936.22267-1-dbasehore@chromium.org> This adds documentation for the new clk op pre_rate_req. Signed-off-by: Derek Basehore <dbasehore@chromium.org> --- Documentation/driver-api/clk.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/clk.rst b/Documentation/driver-api/clk.rst index 593cca5058b1..917f6ac29645 100644 --- a/Documentation/driver-api/clk.rst +++ b/Documentation/driver-api/clk.rst @@ -82,6 +82,9 @@ the operations defined in clk-provider.h:: unsigned long *parent_rate); int (*determine_rate)(struct clk_hw *hw, struct clk_rate_request *req); + int (*pre_rate_req)(struct clk_hw *hw, + const struct clk_rate_request *next, + struct clk_rate_request *pre); int (*set_parent)(struct clk_hw *hw, u8 index); u8 (*get_parent)(struct clk_hw *hw); int (*set_rate)(struct clk_hw *hw, @@ -224,6 +227,8 @@ optional or must be evaluated on a case-by-case basis. +----------------+------+-------------+---------------+-------------+------+ |.determine_rate | | y [1]_ | | | | +----------------+------+-------------+---------------+-------------+------+ + |.pre_rate_req | | y [1]_ | | | | + +----------------+------+-------------+---------------+-------------+------+ |.set_rate | | y | | | | +----------------+------+-------------+---------------+-------------+------+ +----------------+------+-------------+---------------+-------------+------+ @@ -238,7 +243,7 @@ optional or must be evaluated on a case-by-case basis. |.init | | | | | | +----------------+------+-------------+---------------+-------------+------+ -.. [1] either one of round_rate or determine_rate is required. +.. [1] one of round_rate, determine_rate, or pre_rate_req is required. Finally, register your clock at run-time with a hardware-specific registration function. This function simply populates struct clk_foo's -- 2.21.0.352.gf09ad66450-goog
WARNING: multiple messages have this Message-ID (diff)
From: Derek Basehore <dbasehore@chromium.org> To: linux-kernel@vger.kernel.org Cc: aisheng.dong@nxp.com, Derek Basehore <dbasehore@chromium.org>, heiko@sntech.de, linux-doc@vger.kernel.org, sboyd@kernel.org, mturquette@baylibre.com, corbet@lwn.net, linux-rockchip@lists.infradead.org, mchehab+samsung@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com Subject: [PATCH v2 5/6] docs: driver-api: add pre_rate_req to clk documentation Date: Mon, 4 Mar 2019 20:49:35 -0800 [thread overview] Message-ID: <20190305044936.22267-6-dbasehore@chromium.org> (raw) In-Reply-To: <20190305044936.22267-1-dbasehore@chromium.org> This adds documentation for the new clk op pre_rate_req. Signed-off-by: Derek Basehore <dbasehore@chromium.org> --- Documentation/driver-api/clk.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/clk.rst b/Documentation/driver-api/clk.rst index 593cca5058b1..917f6ac29645 100644 --- a/Documentation/driver-api/clk.rst +++ b/Documentation/driver-api/clk.rst @@ -82,6 +82,9 @@ the operations defined in clk-provider.h:: unsigned long *parent_rate); int (*determine_rate)(struct clk_hw *hw, struct clk_rate_request *req); + int (*pre_rate_req)(struct clk_hw *hw, + const struct clk_rate_request *next, + struct clk_rate_request *pre); int (*set_parent)(struct clk_hw *hw, u8 index); u8 (*get_parent)(struct clk_hw *hw); int (*set_rate)(struct clk_hw *hw, @@ -224,6 +227,8 @@ optional or must be evaluated on a case-by-case basis. +----------------+------+-------------+---------------+-------------+------+ |.determine_rate | | y [1]_ | | | | +----------------+------+-------------+---------------+-------------+------+ + |.pre_rate_req | | y [1]_ | | | | + +----------------+------+-------------+---------------+-------------+------+ |.set_rate | | y | | | | +----------------+------+-------------+---------------+-------------+------+ +----------------+------+-------------+---------------+-------------+------+ @@ -238,7 +243,7 @@ optional or must be evaluated on a case-by-case basis. |.init | | | | | | +----------------+------+-------------+---------------+-------------+------+ -.. [1] either one of round_rate or determine_rate is required. +.. [1] one of round_rate, determine_rate, or pre_rate_req is required. Finally, register your clock at run-time with a hardware-specific registration function. This function simply populates struct clk_foo's -- 2.21.0.352.gf09ad66450-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-03-05 4:50 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-03-05 4:49 [PATCH v2 0/6] Coordinated Clks Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-05 4:49 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare,enable}() Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-05 18:49 ` Stephen Boyd 2019-03-05 18:49 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare, enable}() Stephen Boyd 2019-03-05 18:49 ` Stephen Boyd 2019-03-06 1:35 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare,enable}() dbasehore . 2019-03-06 1:35 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare, enable}() dbasehore . 2019-03-06 4:11 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare,enable}() dbasehore . 2019-03-06 4:11 ` [PATCH v2 1/6] clk: Remove recursion in clk_core_{prepare, enable}() dbasehore . 2019-03-06 4:11 ` dbasehore . [not found] ` <CAGAzgsp0fWbH1f7gRKvhTotvdHMAL8gWw1bTKpVHfW9hJddXAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2019-03-06 21:16 ` Stephen Boyd 2019-03-06 21:16 ` Stephen Boyd 2019-03-05 4:49 ` [PATCH v2 2/6] clk: fix clk_calc_subtree compute duplications Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-05 4:49 ` [PATCH v3 3/6] clk: change rates via list iteration Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-09 0:07 ` dbasehore . 2019-03-09 0:07 ` dbasehore . 2019-03-05 4:49 ` [PATCH v2 4/6] clk: add coordinated clk changes support Derek Basehore 2019-03-05 4:49 ` Derek Basehore 2019-03-05 4:49 ` Derek Basehore [this message] 2019-03-05 4:49 ` [PATCH v2 5/6] docs: driver-api: add pre_rate_req to clk documentation Derek Basehore 2019-03-05 4:49 ` [PATCH v2 6/6] clk: rockchip: use pre_rate_req for cpuclk Derek Basehore 2019-03-05 4:49 ` Derek Basehore
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190305044936.22267-6-dbasehore@chromium.org \ --to=dbasehore@chromium.org \ --cc=aisheng.dong@nxp.com \ --cc=corbet@lwn.net \ --cc=heiko@sntech.de \ --cc=jbrunet@baylibre.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-doc@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-rockchip@lists.infradead.org \ --cc=mchehab+samsung@kernel.org \ --cc=mturquette@baylibre.com \ --cc=sboyd@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.