* [PATCH] clk: Hi6220: separately build stub clock driver
@ 2015-09-02 2:57 Leo Yan
2015-09-03 0:09 ` Stephen Boyd
2015-09-03 16:01 ` Kevin Hilman
0 siblings, 2 replies; 4+ messages in thread
From: Leo Yan @ 2015-09-02 2:57 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Jorge Ramirez-Ortiz,
Zhangfei Gao, Bintian Wang, Haojian Zhuang, linux-clk,
linux-kernel, Kevin Hilman, Wei Xu
Cc: Leo Yan
The previous code, kernel builds Hi6220's common clock driver and stub
clock driver together. Stub clock driver has introduced the dependency
with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock
driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default.
So separately build stub clock driver and common clock driver for
Hi6220; and only let stub clock driver has the dependency with
CONFIG_MAILBOX.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
---
drivers/clk/hisilicon/Kconfig | 8 +++++++-
drivers/clk/hisilicon/Makefile | 3 ++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig
index 2c16807..e434854 100644
--- a/drivers/clk/hisilicon/Kconfig
+++ b/drivers/clk/hisilicon/Kconfig
@@ -1,6 +1,12 @@
config COMMON_CLK_HI6220
bool "Hi6220 Clock Driver"
- depends on (ARCH_HISI || COMPILE_TEST) && MAILBOX
+ depends on ARCH_HISI || COMPILE_TEST
default ARCH_HISI
help
Build the Hisilicon Hi6220 clock driver based on the common clock framework.
+
+config STUB_CLK_HI6220
+ bool "Hi6220 Stub Clock Driver"
+ depends on COMMON_CLK_HI6220 && MAILBOX
+ help
+ Build the Hisilicon Hi6220 stub clock driver.
diff --git a/drivers/clk/hisilicon/Makefile b/drivers/clk/hisilicon/Makefile
index 4a1001a..74dba31 100644
--- a/drivers/clk/hisilicon/Makefile
+++ b/drivers/clk/hisilicon/Makefile
@@ -7,4 +7,5 @@ obj-y += clk.o clkgate-separated.o clkdivider-hi6220.o
obj-$(CONFIG_ARCH_HI3xxx) += clk-hi3620.o
obj-$(CONFIG_ARCH_HIP04) += clk-hip04.o
obj-$(CONFIG_ARCH_HIX5HD2) += clk-hix5hd2.o
-obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o clk-hi6220-stub.o
+obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o
+obj-$(CONFIG_STUB_CLK_HI6220) += clk-hi6220-stub.o
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: Hi6220: separately build stub clock driver
2015-09-02 2:57 [PATCH] clk: Hi6220: separately build stub clock driver Leo Yan
@ 2015-09-03 0:09 ` Stephen Boyd
2015-09-03 16:01 ` Kevin Hilman
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2015-09-03 0:09 UTC (permalink / raw)
To: Leo Yan
Cc: Michael Turquette, Jorge Ramirez-Ortiz, Zhangfei Gao,
Bintian Wang, Haojian Zhuang, linux-clk, linux-kernel,
Kevin Hilman, Wei Xu
On 09/02, Leo Yan wrote:
> The previous code, kernel builds Hi6220's common clock driver and stub
> clock driver together. Stub clock driver has introduced the dependency
> with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock
> driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default.
>
> So separately build stub clock driver and common clock driver for
> Hi6220; and only let stub clock driver has the dependency with
> CONFIG_MAILBOX.
>
> Signed-off-by: Leo Yan <leo.yan@linaro.org>
> ---
I had to read it a couple times, but it makes sense.
Applied to clk-fixes
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: Hi6220: separately build stub clock driver
2015-09-02 2:57 [PATCH] clk: Hi6220: separately build stub clock driver Leo Yan
2015-09-03 0:09 ` Stephen Boyd
@ 2015-09-03 16:01 ` Kevin Hilman
2015-09-04 14:41 ` Leo Yan
1 sibling, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2015-09-03 16:01 UTC (permalink / raw)
To: Leo Yan
Cc: Michael Turquette, Stephen Boyd, Jorge Ramirez-Ortiz,
Zhangfei Gao, Bintian Wang, Haojian Zhuang, linux-clk,
linux-kernel, Wei Xu
Leo Yan <leo.yan@linaro.org> writes:
> The previous code, kernel builds Hi6220's common clock driver and stub
> clock driver together. Stub clock driver has introduced the dependency
> with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock
> driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default.
>
> So separately build stub clock driver and common clock driver for
> Hi6220; and only let stub clock driver has the dependency with
> CONFIG_MAILBOX.
>
> Signed-off-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
I verifed that this patch on top of next-20150902 fixes the hikey boot
failure I was seeing.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: Hi6220: separately build stub clock driver
2015-09-03 16:01 ` Kevin Hilman
@ 2015-09-04 14:41 ` Leo Yan
0 siblings, 0 replies; 4+ messages in thread
From: Leo Yan @ 2015-09-04 14:41 UTC (permalink / raw)
To: Kevin Hilman
Cc: Michael Turquette, Stephen Boyd, Jorge Ramirez-Ortiz,
Zhangfei Gao, Bintian Wang, Haojian Zhuang, linux-clk,
linux-kernel, Wei Xu
On Thu, Sep 03, 2015 at 09:01:03AM -0700, Kevin Hilman wrote:
> Leo Yan <leo.yan@linaro.org> writes:
>
> > The previous code, kernel builds Hi6220's common clock driver and stub
> > clock driver together. Stub clock driver has introduced the dependency
> > with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock
> > driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default.
> >
> > So separately build stub clock driver and common clock driver for
> > Hi6220; and only let stub clock driver has the dependency with
> > CONFIG_MAILBOX.
> >
> > Signed-off-by: Leo Yan <leo.yan@linaro.org>
>
> Tested-by: Kevin Hilman <khilman@linaro.org>
>
> I verifed that this patch on top of next-20150902 fixes the hikey boot
> failure I was seeing.
Thanks, Kevin and Stephen :)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-04 14:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-02 2:57 [PATCH] clk: Hi6220: separately build stub clock driver Leo Yan
2015-09-03 0:09 ` Stephen Boyd
2015-09-03 16:01 ` Kevin Hilman
2015-09-04 14:41 ` Leo Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox