* Re: [PATCH] Make number of IDE interfaces configurable
[not found] <20060512222952.GQ6616@waste.org>
@ 2006-05-16 16:02 ` Adrian Bunk
[not found] ` <20060516160250.GE5677@stusta.de>
1 sibling, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2006-05-16 16:02 UTC (permalink / raw)
To: Matt Mackall; +Cc: akpm, B.Zolnierkiewicz, liux-ide, linux-kernel
On Fri, May 12, 2006 at 05:29:52PM -0500, Matt Mackall wrote:
>...
> --- 2.6.orig/include/linux/ide.h 2006-05-11 15:07:32.000000000 -0500
> +++ 2.6/include/linux/ide.h 2006-05-12 14:01:53.000000000 -0500
> @@ -252,7 +252,8 @@ static inline void ide_std_init_ports(hw
>
> #include <asm/ide.h>
>
> -#ifndef MAX_HWIFS
> +#if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED)
> +#undef MAX_HWIFS
> #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS
> #endif
Why do you need this?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Make number of IDE interfaces configurable
[not found] ` <20060516162934.GR24227@waste.org>
@ 2006-05-16 16:40 ` Adrian Bunk
2006-05-16 19:13 ` Nick Warne
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2006-05-16 16:40 UTC (permalink / raw)
To: Matt Mackall; +Cc: akpm, B.Zolnierkiewicz, linux-ide, linux-kernel
On Tue, May 16, 2006 at 11:29:34AM -0500, Matt Mackall wrote:
> On Tue, May 16, 2006 at 06:02:50PM +0200, Adrian Bunk wrote:
> > On Fri, May 12, 2006 at 05:29:52PM -0500, Matt Mackall wrote:
> > >...
> > > --- 2.6.orig/include/linux/ide.h 2006-05-11 15:07:32.000000000 -0500
> > > +++ 2.6/include/linux/ide.h 2006-05-12 14:01:53.000000000 -0500
> > > @@ -252,7 +252,8 @@ static inline void ide_std_init_ports(hw
> > >
> > > #include <asm/ide.h>
> > >
> > > -#ifndef MAX_HWIFS
> > > +#if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED)
> > > +#undef MAX_HWIFS
> > > #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS
> > > #endif
> >
> > Why do you need this?
>
> Doesn't work without it?
>
> Most platforms define MAX_HWIFS.
OK, now I got it.
Setting this value is sometimes done in heder files and sometimes
done in the Kconfig file.
That is extremely ugly.
Bart, would you accept a patch to set in in the Kconfig file on all
architectures?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Make number of IDE interfaces configurable
2006-05-16 16:40 ` Adrian Bunk
@ 2006-05-16 19:13 ` Nick Warne
0 siblings, 0 replies; 3+ messages in thread
From: Nick Warne @ 2006-05-16 19:13 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Matt Mackall, akpm, B.Zolnierkiewicz, linux-ide, linux-kernel
I submitted a patch ages ago similar (but differnet ;-) ) to this:
http://lkml.org/lkml/2005/6/25/69
I couldn't/don't see why I get six ide probes when I know I have only
2 IDE interfaces - I thought it would be better to stick to default
_unless_ the kernel builder knew otherwise and specified the amount.
Alan Cox didn't like it as it introduces more config unnecessary config options.
But it would be nice though if this could be included with that enhancement too.
Nick
On 16/05/06, Adrian Bunk <bunk@stusta.de> wrote:
> On Tue, May 16, 2006 at 11:29:34AM -0500, Matt Mackall wrote:
> > On Tue, May 16, 2006 at 06:02:50PM +0200, Adrian Bunk wrote:
> > > On Fri, May 12, 2006 at 05:29:52PM -0500, Matt Mackall wrote:
> > > >...
> > > > --- 2.6.orig/include/linux/ide.h 2006-05-11 15:07:32.000000000 -0500
> > > > +++ 2.6/include/linux/ide.h 2006-05-12 14:01:53.000000000 -0500
> > > > @@ -252,7 +252,8 @@ static inline void ide_std_init_ports(hw
> > > >
> > > > #include <asm/ide.h>
> > > >
> > > > -#ifndef MAX_HWIFS
> > > > +#if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED)
> > > > +#undef MAX_HWIFS
> > > > #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS
> > > > #endif
> > >
> > > Why do you need this?
> >
> > Doesn't work without it?
> >
> > Most platforms define MAX_HWIFS.
>
> OK, now I got it.
>
> Setting this value is sometimes done in heder files and sometimes
> done in the Kconfig file.
>
> That is extremely ugly.
>
> Bart, would you accept a patch to set in in the Kconfig file on all
> architectures?
>
> cu
> Adrian
>
> --
>
> "Is there not promise of rain?" Ling Tan asked suddenly out
> of the darkness. There had been need of rain for many days.
> "Only a promise," Lao Er said.
> Pearl S. Buck - Dragon Seed
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-16 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060512222952.GQ6616@waste.org>
2006-05-16 16:02 ` [PATCH] Make number of IDE interfaces configurable Adrian Bunk
[not found] ` <20060516160250.GE5677@stusta.de>
[not found] ` <20060516162934.GR24227@waste.org>
2006-05-16 16:40 ` Adrian Bunk
2006-05-16 19:13 ` Nick Warne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).