public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: Matthew Wilcox <matthew@wil.cx>
Cc: linux-arch@vger.kernel.org
Subject: Re: [patch] s390 kconfig cleanup.
Date: Wed, 17 May 2006 18:50:56 +0200	[thread overview]
Message-ID: <1147884656.5540.28.camel@localhost> (raw)
In-Reply-To: <20060517132501.GC1604@parisc-linux.org>

On Wed, 2006-05-17 at 07:25 -0600, Matthew Wilcox wrote: 
> > The "solution" so far had been to avoid drivers/Kconfig and
> > use a special s390 version in driver/s390/Kconfig which
> > includes some Kconfig files from the drivers directory
> > tree and <copies> a few more config options which are useful
> > for s390.
> 
> Yeah, I noticed that the other day ;-)
> 
> I don't know whether drivers/Kconfig makes sense for S390 since it is
> just so different.  I don't think the problem is really not using
> drivers/Kconfig, it's copying the bits-and-pieces.  And the
> bits-and-pieces seem to be entirely from drivers/char/Kconfig.
> So how about keeping drivers/s390/Kconfig and sanitising
> drivers/char/Kconfig so it's reasonable for you to include it?

Hmm, that way I could pick the directories from drivers/ that s390
wants. The downside is that we might forget new things, e.g. like
the connector support we only recently added. By using drivers/Kconfig
we can avoid that.

> > The attached patch makes s390 use the common drivers/Kconfig
> > and adds a lot of "depends on !S390" to hide all the config
> > options that do not make sense for us. What I think could
> > be improved is the fact that the dependency is negative,
> > that is not-something, it would be much cleaner to have
> > positive dependencies.
> 
> Actually, I think that's the right thing.  By default, new architectures
> should get these options.  They can put in negative dependencies to hide
> them if they want, but by default people should see them.

It does make sense if it is unclear if an architecture does support
some piece of hardware or not. Better would be to have a dependency
on some prereq for the driver to work, e.g. PCI or ISA.

> > That is where the arch people get involved. Can we come
> > up with a method how to "tag" all menus in the Kconfig files
> > under drivers/ with a positive list of the architectures
> > that actually want to include the menu/driver? Or even
> > better tag the menu/driver with the bus that is required
> > to attach the device?
> 
> The problem is that so many of these things are not on a particular kind
> of bus.  They're built-in to the chipset, or they're attached on some
> kind of hidden bus, or they're features of some other chip.  Or they're
> on basically every bus in existence.

Nod, these are the troublesome drivers.

> > @@ -761,7 +763,7 @@ config SGI_IP27_RTC
> >  
> >  config GEN_RTC
> >  	tristate "Generic /dev/rtc emulation"
> > -	depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC && !FRV
> > +	depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC && !FRV && !S390
> >  	---help---
> >  	  If you say Y here and create a character special file /dev/rtc with
> >  	  major number 10 and minor number 135 using mknod ("man mknod"), you
> 
> Yeah, the RTC config is a bit of a mess.  That should definitely be
> cleaned up to be positive dependencies.

As I learned from Geert we might actually want GEN_RTC on s390.

> > @@ -814,6 +816,7 @@ config COBALT_LCD
> >  
> >  config DTLK
> >  	tristate "Double Talk PC internal speech card support"
> > +	depends on !S390
> >  	help
> >  	  This driver is for the DoubleTalk PC, a speech synthesizer
> >  	  manufactured by RC Systems (<http://www.rcsys.com/>).  It is also
> 
> This one looks like an ISA card, judging by how the driver's written,
> and also the website above.  So that should be 'depends on ISA'.

Ok, I will change the patch accordingly.

> > @@ -824,6 +827,7 @@ config DTLK
> >  
> >  config R3964
> >  	tristate "Siemens R3964 line discipline"
> > +	depends on !S390
> >  	---help---
> >  	  This driver allows synchronous communication with devices using the
> >  	  Siemens R3964 packet protocol. Unless you are dealing with special
> 
> I'd be tempted to not bother adding a depends here ... it won't do any
> harm; it's not controlling hardware after all.

Seems out of place to me. But we have a bunch of other strange config
options as well, e.g. support for the Amiga AFFS filesystem. Anybody
who wants to attach an Amiga disk to a mainframe?

> Actually, this wants cleaning up for everyone:
> 
> @@ -867,10 +867,10 @@ config TANBAC_TB0219
>         depends TANBAC_TB022X
>  
>  menu "Ftape, the floppy tape device driver"
> +       depends on BROKEN_ON_SMP && (ALPHA || X86)

Ok, will change the patch.

> > @@ -1025,6 +1030,7 @@ source "drivers/char/tpm/Kconfig"
> >  config TELCLOCK
> >  	tristate "Telecom clock driver for MPBL0010 ATCA SBC"
> >  	depends on EXPERIMENTAL
> > +	depends on !S390
> >  	default n
> >  	help
> >  	  The telecom clock device is specific to the MPBL0010 ATCA computer and
> 
> As the description says, it's specific to some embedded junk:
> http://www.intel.com/design/telecom/products/cbp/atca/9445/overview.htm
> 
> so that should be 'depends on X86'.

Same here.

-- 
blue skies,
  Martin.

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH

"Reality continues to ruin my life." - Calvin.



  reply	other threads:[~2006-05-17 16:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 17:16 [patch] s390 kconfig cleanup Martin Schwidefsky
2006-05-15 17:30 ` Andi Kleen
2006-05-15 19:00   ` Geert Uytterhoeven
2006-05-15 21:24   ` Chris Wright
2006-05-16  8:08     ` Martin Schwidefsky
2006-05-16 21:12       ` Chris Wright
2006-05-17  8:17         ` Martin Schwidefsky
2006-05-17 11:18           ` Geert Uytterhoeven
2006-05-17 11:22             ` Martin Schwidefsky
2006-05-17 11:24               ` Geert Uytterhoeven
2006-05-17 12:07                 ` Martin Schwidefsky
2006-05-17 12:12                   ` Geert Uytterhoeven
2006-05-17 12:24                     ` Martin Schwidefsky
2006-05-17 13:25 ` Matthew Wilcox
2006-05-17 16:50   ` Martin Schwidefsky [this message]
2006-05-17 20:06     ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147884656.5540.28.camel@localhost \
    --to=schwidefsky@de.ibm.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=matthew@wil.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox