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>, David Zeuthen <david@fubar.dk>
Subject: Re: [PATCH] rtc: Make rtc-ds1742 driver hotplug-aware
Date: Sat, 18 Aug 2007 12:45:39 +0200 [thread overview]
Message-ID: <1187433939.4419.42.camel@lov.localdomain> (raw)
In-Reply-To: <200708172106.52940.david-b@pacbell.net>
On Fri, 2007-08-17 at 21:06 -0700, David Brownell wrote:
> On Friday 17 August 2007, Kay Sievers wrote:
> >
> > > I'm not the one who's advocating a change here. If you want to
> > > first change/break and then fix things, all of that is up to you.
> >
> > I'm happy to do that. Patch is attached.
>
> NAK. That wasn't even a serious attempt at the "fix" part,
> though it does the "break" part well enough to cause severe
> regressions.
You disabled uevents which breaks udev and HAL setups, because we can't
track the existence of the devices, You can't just disable device events
to disable module loading. Uevents have are by far not only about module
loading.
> (As well as leaving all my technical points about your pushback
> un-addressed. As I noted before, the evident fact that you don't
> have technical responses to them says to me that your pushback
> has no real technical basis ...)
It has. Disabling uevents to control module loading is just the totally
wrong thing to do. Uevents are there to let userspace know that a device
exists. Only the existence of MODALIAS and the "modalias" file controls
module loading, not the enabling and disabling of uevents, which is a
completely broken hack.
My patch fixes tons of issues, and that is "technical basis" enough. It
makes platform play nice with userspace, by behaving like the rest of
the kernel.
Userspace udev/HAL relies entirely on uevents, for hot- and for
coldplug. Coldplug is done by writing "add" to all "uevent" files during
early boot, that does not work anymore with platform, and needs to be
fixed.
> Out of around 300 platform drivers in the tree (and many more
> not yet merged upstream), this makes it so that only *THREE* of
> them can hotplug ... versus in the current tree, essentially
> everything that's not a legacy driver is hotplugging just fine.
>
> That's one heck of a regression. Just shy of 100% ...
So where are the 100's of drivers that send an uevent? I'll go and fix them.
> Plus it treats rtc-ds1742 as if it's a platform_driver not
> an i2c_driver.
Wrong, the whole model is the other way around. MODALIAS does not tie
other drivers to a device. A driver matches on a device, and the ds1742
driver triggers on the existence of a platform driver. The alias strings
don't "treat" anything.
The whole kernel works that way, a lot of drivers get loaded by matching
on "dmi:*" or "acpi:*" strings by not letting the driver be a dmi driver
or acpi driver.
Please stop doing adding weird hacks to the kernel to fit your personal
taste and breaking all assumptions existing tools rely on. Fix the stuff
you broke and enable uevent for _all_ devices again. And let userspace
make the decision what to do with the event, like all other subsystems
in the kernel do.
Thanks,
Kay
next prev parent reply other threads:[~2007-08-18 10:42 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
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 [this message]
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=1187433939.4419.42.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=david@fubar.dk \
--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®