From: Phil Edworthy <phil.edworthy@renesas.com> To: Stephen Boyd <sboyd@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Russell King <linux@armlinux.org.uk>, Greg Ungerer <gerg@linux-m68k.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Ralf Baechle <ralf@linux-mips.org>, Paul Burton <paul.burton@mips.com>, James Hogan <jhogan@kernel.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Huacai Chen <chenhc@lemote.com>, Guan Xuetao <gxt@pku.edu.cn> Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, "Phil Edworthy" <phil.edworthy@renesas.com>, "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>, linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 0/6] clk: Add functions to get optional clocks Date: Fri, 16 Nov 2018 14:59:31 +0000 [thread overview] Message-ID: <20181116145937.27660-1-phil.edworthy@renesas.com> (raw) Quite a few drivers get an optional clock, e.g. a bus clock required to access peripheral's registers that is always enabled on some devices. This series adds of_clk_get_by_name_optional(), clk_get_optional() and devm_clk_get_optional() functions for this purpose. The functions behave the same as of_clk_get_by_name(), clk_get() and devm_clk_get() except that they will return NULL instead of -ENOENT. This allows for simpler error handling in the callers. *Note* This changes the return values for of_clk_get_by_name() in some cases, see [PATCH 1/6] clk: Add of_clk_get_by_name_optional() function. v6: - Rework the __of_clk_get_by_name() logic so as to avoid duplicate tests. - Add doxygen style comment for devm_clk_get_optional() args - Add clk_get_optional() to archs that don't use the commom clk framework. Phil Edworthy (6): clk: Add of_clk_get_by_name_optional() function clk: Add functions to get optional clocks m68k: coldfire: Add clk_get_optional() function MIPS: AR7: Add clk_get_optional() function MIPS: Loongson 2F: Add clk_get_optional() function arch/unicore32/kernel/clock.c: Add clk_get_optional() function arch/m68k/coldfire/clk.c | 11 ++++ arch/mips/ar7/clock.c | 11 ++++ arch/mips/loongson64/lemote-2f/clock.c | 11 ++++ arch/unicore32/kernel/clock.c | 11 ++++ drivers/clk/clk-devres.c | 18 ++++- drivers/clk/clkdev.c | 91 ++++++++++++++++++++++---- include/linux/clk.h | 38 +++++++++++ 7 files changed, 175 insertions(+), 16 deletions(-) -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: phil.edworthy@renesas.com (Phil Edworthy) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 0/6] clk: Add functions to get optional clocks Date: Fri, 16 Nov 2018 14:59:31 +0000 [thread overview] Message-ID: <20181116145937.27660-1-phil.edworthy@renesas.com> (raw) Quite a few drivers get an optional clock, e.g. a bus clock required to access peripheral's registers that is always enabled on some devices. This series adds of_clk_get_by_name_optional(), clk_get_optional() and devm_clk_get_optional() functions for this purpose. The functions behave the same as of_clk_get_by_name(), clk_get() and devm_clk_get() except that they will return NULL instead of -ENOENT. This allows for simpler error handling in the callers. *Note* This changes the return values for of_clk_get_by_name() in some cases, see [PATCH 1/6] clk: Add of_clk_get_by_name_optional() function. v6: - Rework the __of_clk_get_by_name() logic so as to avoid duplicate tests. - Add doxygen style comment for devm_clk_get_optional() args - Add clk_get_optional() to archs that don't use the commom clk framework. Phil Edworthy (6): clk: Add of_clk_get_by_name_optional() function clk: Add functions to get optional clocks m68k: coldfire: Add clk_get_optional() function MIPS: AR7: Add clk_get_optional() function MIPS: Loongson 2F: Add clk_get_optional() function arch/unicore32/kernel/clock.c: Add clk_get_optional() function arch/m68k/coldfire/clk.c | 11 ++++ arch/mips/ar7/clock.c | 11 ++++ arch/mips/loongson64/lemote-2f/clock.c | 11 ++++ arch/unicore32/kernel/clock.c | 11 ++++ drivers/clk/clk-devres.c | 18 ++++- drivers/clk/clkdev.c | 91 ++++++++++++++++++++++---- include/linux/clk.h | 38 +++++++++++ 7 files changed, 175 insertions(+), 16 deletions(-) -- 2.17.1
next reply other threads:[~2018-11-16 14:59 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-11-16 14:59 Phil Edworthy [this message] 2018-11-16 14:59 ` [PATCH v6 0/6] clk: Add functions to get optional clocks Phil Edworthy 2018-11-16 14:59 ` [PATCH v6 1/6] clk: Add of_clk_get_by_name_optional() function Phil Edworthy 2018-11-16 14:59 ` Phil Edworthy 2018-11-16 16:01 ` Uwe Kleine-König 2018-11-16 16:01 ` Uwe Kleine-König 2018-11-16 16:01 ` Uwe Kleine-König 2018-11-16 16:11 ` Uwe Kleine-König 2018-11-16 16:11 ` Uwe Kleine-König 2018-11-16 16:11 ` Uwe Kleine-König 2018-11-19 10:41 ` Phil Edworthy 2018-11-19 10:41 ` Phil Edworthy 2018-11-19 10:41 ` Phil Edworthy 2018-11-19 10:46 ` Uwe Kleine-König 2018-11-19 10:46 ` Uwe Kleine-König 2018-11-19 10:46 ` Uwe Kleine-König 2018-11-19 12:53 ` Phil Edworthy 2018-11-19 12:53 ` Phil Edworthy 2018-11-19 12:53 ` Phil Edworthy 2018-11-19 12:58 ` Uwe Kleine-König 2018-11-19 12:58 ` Uwe Kleine-König 2018-11-19 12:58 ` Uwe Kleine-König 2018-11-19 13:41 ` Phil Edworthy 2018-11-19 13:41 ` Phil Edworthy 2018-11-19 13:41 ` Phil Edworthy 2018-11-16 14:59 ` [PATCH v6 2/6] clk: Add (devm_)clk_get_optional() functions Phil Edworthy 2018-11-16 14:59 ` Phil Edworthy 2018-11-16 14:59 ` [PATCH v6 3/6] m68k: coldfire: Add clk_get_optional() function Phil Edworthy 2018-11-29 11:54 ` Greg Ungerer 2018-11-29 12:02 ` Phil Edworthy 2018-11-29 12:02 ` Phil Edworthy 2018-11-29 12:10 ` Greg Ungerer 2018-11-29 12:10 ` Greg Ungerer 2018-11-29 16:32 ` Christoph Hellwig 2018-12-03 12:29 ` Greg Ungerer 2018-11-16 14:59 ` [PATCH v6 4/6] MIPS: AR7: " Phil Edworthy 2018-11-16 14:59 ` [PATCH v6 5/6] MIPS: Loongson 2F: " Phil Edworthy 2018-11-16 14:59 ` [PATCH v6 6/6] arch/unicore32/kernel/clock.c: " Phil Edworthy
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=20181116145937.27660-1-phil.edworthy@renesas.com \ --to=phil.edworthy@renesas.com \ --cc=andriy.shevchenko@linux.intel.com \ --cc=chenhc@lemote.com \ --cc=geert@linux-m68k.org \ --cc=gerg@linux-m68k.org \ --cc=gxt@pku.edu.cn \ --cc=jhogan@kernel.org \ --cc=jiaxun.yang@flygoat.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-m68k@lists.linux-m68k.org \ --cc=linux-mips@linux-mips.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=mturquette@baylibre.com \ --cc=paul.burton@mips.com \ --cc=ralf@linux-mips.org \ --cc=sboyd@kernel.org \ --cc=u.kleine-koenig@pengutronix.de \ /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.