Thread (18 messages) 18 messages, 6 authors, 2015-11-19

[PATCH 1/2] clk: samsung: Don't build ARMv8 clock drivers on ARMv7

From: s.nawrocki@samsung.com (Sylwester Nawrocki)
Date: 2015-11-19 11:07:30
Also in: linux-clk, linux-samsung-soc, lkml

On 19/11/15 10:16, Tomasz Figa wrote:
2015-11-19 13:51 GMT+09:00 Krzysztof Kozlowski [off-list ref]:
quoted
quoted
On 19.11.2015 13:18, Tomasz Figa wrote:
quoted
quoted
However, I don't think we can disable compilation of particular
64-bit SoCs, so maybe there isn't much sense in splitting their 
clock drivers into separate symbols?
To me it does not really matter. Indeed as you said one cannot 
disable building of one particular Exynos SoCs.

However we could still want not build some parts of such SoCs (like
clock, pinctrl etc). I don't see much benefit for such case except
when someone would like to drastically reduce the size of kernel 
image (for whatever reasons he has.).
Can we really build a kernel that support selected Exynos SoC without
its clock driver? Actually I don't think we even allow deselecting
clock drivers currently, because they are not visible in menuconfig.
Unless there is a clear goal to separate ARCH level Kconfig symbol for
particular ARM64-based Exynos SoCs, I don't think it makes any sense
to keep the clock-related symbols separate.
quoted
quoted
On the other hand having separate symbols causes duplication and
obfuscates a little the Kconfig/Makefile. I like keeping things 
simple so one symbol for all ARM64 Exynos clocks sounds good.

Sylwester preferred current approach. You and Pankaj seem to prefer
one symbol-way.
Hmm, I read Sylwester's post as a reply to your original message and
not Pankaj's. Sylwester, could you clarify?
OK, let's just use a common clk Kconfig symbol for Exynos ARM64.

What I tried to say is that with addition of support for few more
of those SoCs the kernel image size can easily grow by 1MB order,
due to just clk drivers inclusion. Perhaps it's not a big issue
with current hardware configuration.
Maybe in long term we should think about splitting CMU drivers
into a built-in critical clocks part and the rest in loadable
modules.

-- 
Thanks,
Sylwester
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help