
On Mon, Jul 09, 2018 at 08:14:28PM +0900, Masahiro Yamada wrote:
2018-07-09 16:20 GMT+09:00 Maxime Ripard maxime.ripard@bootlin.com:
On Mon, Jul 09, 2018 at 03:12:37PM +0900, Masahiro Yamada wrote:
It is not preferred to put SUNXI-specific code in the common place.
I think Tom has been saying the exact opposite a number of times, since there's some circular dependencies issues that arise when using imply.
Platforms select/imply necessary drivers or features. This is what we usually do.
ARCH_SUNXI already uses select / imply in arch/arm/Kconfig. (Also ARCH_SUNXI does so in arch/arm/mach-sunxi/Kconfig in Linux Kernel)
On the other hand, no drivers or features select / imply ARCH_SUNXI.
To sum up, select or imply should be used in the following direction.
Platform ---(select or imply)---> features
If you follow this rule, circular dependency will not happen.
I think what ends up being confusing about this is that we must do: default 0xDEADBEEF if ARCH_FOO
as we cannot: imply FOO_OPTION 0xDEADBEEF if FOO_DRIVER