mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: Bill Nottingham <notting@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>, Jeff Garzik <jeff@garzik.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Dmitry Torokhov <dtor@insightbb.com>, Greg KH <greg@kroah.com>
Subject: Re: 2.6.22: pcspkr driver no longer loads automatically
Date: Thu, 09 Aug 2007 00:39:35 +0200	[thread overview]
Message-ID: <1186612775.4591.13.camel@lov.localdomain> (raw)
In-Reply-To: <20070808222206.GA12375@nostromo.devel.redhat.com>

On Wed, 2007-08-08 at 18:22 -0400, Bill Nottingham wrote:
> Kay Sievers (kay.sievers@vrfy.org) said: 
> > Ah, ok, makes sense. Yeah, that weird "platform devices loads itself by
> > the name" thing got disabled in the platform subsystem. It caused
> > modprobe loops for other devices.
> > 
> > The whole idea of issuing MODALIAS with plain module names instead of
> > aliases can't really work, but the platform maintainer didn't like to
> > use the usual aliases and the matches in the modules, for a reason I
> > didn't understand while we talked about the problem last time.
> 
> So, the solution is for the platform device to issue a random modalias
> that pcskpr exports?

I would still like to see "MODALIAS=platform:<string>" exported by the
bus, and matching aliases the modules, just like every other subsystem
does.

Like SCSI, with the "artificial" aliases for the modules it wants to
autoload:
  $ /sbin/modinfo sd_mod
  ...
  alias:          scsi:t-0x0e*
  alias:          scsi:t-0x07*
  alias:          scsi:t-0x00*
  ...

  $ cat /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/modalias
  scsi:t-0x00

That way you would get full control over the loading or blacklisting
with module-init-tools config files, which doesn't work with direct
module name requests, and no magic in the bus code or the drivers would
be needed.

Kay


  reply	other threads:[~2007-08-08 22:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07 19:33 Chuck Ebbert
2007-08-07 20:43 ` Jeff Garzik
2007-08-07 21:43   ` Chuck Ebbert
2007-08-07 22:23     ` Kay Sievers
2007-08-08 19:32       ` Bill Nottingham
2007-08-08 20:02         ` Kay Sievers
2007-08-08 22:22           ` Bill Nottingham
2007-08-08 22:39             ` Kay Sievers [this message]
2007-11-04  5:20         ` Dmitry Torokhov
2007-11-04  8:30           ` Kay Sievers

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=1186612775.4591.13.camel@lov.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=cebbert@redhat.com \
    --cc=dtor@insightbb.com \
    --cc=greg@kroah.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=notting@redhat.com \
    /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

all inboxes | Powered by JetHome®