Re: [PATCH 14/15] misc: Configurable number of supported IDE interfaces

Roman Zippel
2005-11-11T17:35:45Z

Hi,

On Fri, 11 Nov 2005, Matt Mackall wrote:

> It's intentional. The current CONFIG_IDE_MAX_HWIFS is a hidden
> variable that sets a per architecture maximum. To the best of my
> knowledge, there's no way to do, say:
>
> default 4 if ARCH_FOO
> default 1 if ARCH_BAR
>
> ..so I'm stuck with using two config symbols anyway.

Where is the problem? This should work fine.
With the latest kernel you can even use a dynamic range:

config IDE_HWIFS
int "..."
range 1 IDE_MAX_HWIFS

bye, Roman