mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: David Brownell <david-b@pacbell.net>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
	jengelh@computergmbh.de, a.zummo@towertech.it,
	linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com,
	Greg KH <greg@kroah.com>
Subject: Re: [PATCH] rtc: Make rtc-ds1742 driver hotplug-aware
Date: Fri, 17 Aug 2007 19:18:46 +0200	[thread overview]
Message-ID: <1187371126.4253.10.camel@lov.localdomain> (raw)
In-Reply-To: <200708170955.06388.david-b@pacbell.net>

On Fri, 2007-08-17 at 09:55 -0700, David Brownell wrote:
> On Friday 17 August 2007, Kay Sievers wrote:
> > Again,
> 
> "Again"?

We exchanges several mails a few weeks ago after the Debian bug caused
by a modprobe loop. 

> > the only sane solution is to provide MODALIAS="platform:<name>" 
> > from the platform bus, and adding the aliases to drivers who support
> > autoloading. Modalias strings are not free-text strings, they are
> > required to be prefixed by the subsystem.
> 
> If so, then whoever tried to change the usage of module aliases
> in that way goofed in several ways.  First, by not changing all
> the in-kernel uses.  Second, by not changing all the out-of-tree
> uses in various distros, toolchains, etc.  Third, by not even
> documenting that change...

Yes, please fix the misuse of MODALIAS.

> Module aliases have been around since very early versions of
> stuff like "modprobe" ... without that new rule.  Aliases have
> always been 	

The environment key MODALIAS= and the sysfs file 'modalias" are part of
the driver core, and have a well defined meaning. And it's a much
younger construct, and _not_ free-text.

> > I still fail to see why platform must be different from everything
> > else in the kernel.
> 
> It isn't.  See above.

Sure, it is. Please prefix it with "platform:".

> > Please change that stuff, and the bugs which we 
> > are fighting magically go away, because module-init-tools alias
> > resolving works like it does for every other subsystem in the kernel.
> 
> Those bugs would be ... what?  "We" haven't observed anything
> attributable to this usage, which has been common for years now.

Loops of modprobe by modules requesting itself, you worked around that
in the recent kernel, but that broke other setups. And module-init-tools
"blacklist" does not work, because platform uses no alias, but a plain
driver name. That should be fixed, please, please, please...

Every distro has problems with platform, and believe me, I as the udev
maintainer, get all the questions and the trouble. Some blacklist the
whole platform event, some only a few devices. All just because platform
thinks it must not follow the rules everybody else plays. Please,
please, please do what everybody else is doing with the driver core.

Thanks again,
Kay


  reply	other threads:[~2007-08-17 17:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16 16:06 Atsushi Nemoto
2007-08-17 10:59 ` Jan Engelhardt
2007-08-17 15:23   ` David Brownell
2007-08-17 15:37     ` Jan Engelhardt
2007-08-17 16:02       ` David Brownell
2007-08-17 16:15         ` Atsushi Nemoto
2007-08-17 16:26           ` David Brownell
2007-08-17 16:32           ` Kay Sievers
2007-08-17 16:55             ` David Brownell
2007-08-17 17:18               ` Kay Sievers [this message]
2007-08-17 19:50                 ` David Brownell
2007-08-17 19:52                   ` Jan Engelhardt
2007-08-17 20:20                     ` David Brownell
2007-08-18  2:40                   ` Kay Sievers
2007-08-18  4:06                     ` David Brownell
2007-08-18 10:45                       ` Kay Sievers
2007-08-20  1:44                         ` legacy platform drivers and hotplugging David Brownell
2007-08-20  2:02                           ` Atsushi Nemoto
2007-08-20  9:51                           ` Kay Sievers
2007-08-19 12:57             ` [PATCH] rtc: Make rtc-ds1742 driver hotplug-aware Atsushi Nemoto
2007-08-19 21:45               ` Kay Sievers
2007-08-20  1:48                 ` David Brownell
2007-08-20  2:02                   ` David Brownell
2007-08-20  2:16                     ` Atsushi Nemoto
2007-08-17 16:04       ` Atsushi Nemoto

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=1187371126.4253.10.camel@lov.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=a.zummo@towertech.it \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=david-b@pacbell.net \
    --cc=greg@kroah.com \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.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®