On Fri, Jan 23, 2015 at 02:05:22PM +0100, Geert Uytterhoeven wrote:
Hi Arnd,
On Fri, Oct 24, 2014 at 5:46 PM, Arnd Bergmann arnd@arndb.de wrote:
There is still a related bug that we should also fix, but I'd say let's take your current patches first and then add whatever is missing on top. Specifically, a snippet like this
default 0xd4017000 if DEBUG_MMP_UART2 default 0xd4018000 if DEBUG_MMP_UART3 default 0xe0000000 if ARCH_SPEAR13XX default 0xe4007000 if DEBUG_HIP04_UART default 0xf0000be0 if ARCH_EBSA110
still means you get the wrong default when you build a multiplatform kernel that you want to boot on HIP04 and you set DEBUG_HIP04_UART but you happen to also have ARCH_SPEAR13XX enabled.
I have a patch that I use locally for randconfig builds that tries to fix this. It has some overlaps with your work but most parts are distinct. See below.
This is still desperately needed for anyone who wants to enable DEBUG_LL on other platforms using multi_v7_defconfig.
I'd actually prefer to kill all these defaults and let people enter the value they want - for exactly this reason.
However, I realise that would not be popular, because removing them means that people have to refer to some kind of documentation to find the correct value, and that's hassle.
So, the existing defaulting behaviour is my compromise, but as I say, I'd much prefer the unpopular move of killing the entire set of defaults.