All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Patrick Mochel <mochel@digitalimplant.org>,
	Greg KH <greg@kroah.com>,
	Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Don't use a klist for drivers' set-of-devices
Date: Tue, 16 Aug 2005 17:34:13 -0500	[thread overview]
Message-ID: <d120d5000508161534451ebd7a@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0508151654210.19345-100000@iolanthe.rowland.org>

On 8/15/05, Alan Stern <stern@rowland.harvard.edu> wrote:

> On the face of it, neither is particularly more attractive than the other.
> However, reading through the various places that call these routines (for
> example, drivers/input/serio/serio.c or drivers/pnp/card.c) revealed a
> pattern.  In most cases, the callers of device_bind_driver _really_ want
> something that functions more like driver_probe_device but without the
> matching step.  The callers are invoking the probe methods by hand rather
> than relying on the driver core to do so.  There's maybe only one place
> where a caller actually does want the device bound to the driver without
> doing a probe.
> 

Alan,

I am sorry I don't have time to properly review the patch at
themoment, just a couple of comments about serio - I would not look at
serio for examples of typical use as it was trying very hard to work
around the original driver model limitation that prevented drivers to
register childern on the same bus from their probe function. I think
now that that limitation is lifted serio implemenation can be
simplified.

-- 
Dmitry

  reply	other threads:[~2005-08-16 22:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10 20:56 [PATCH] Don't use a klist for drivers' set-of-devices Alan Stern
2005-08-11 18:24 ` Greg KH
2005-08-11 18:53   ` Christoph Hellwig
2005-08-11 19:43     ` Alan Stern
2005-08-11 20:29       ` Dmitry Torokhov
2005-08-11 20:52         ` Alan Stern
2005-08-12 13:48         ` Alan Stern
2005-08-15 21:21         ` Alan Stern
2005-08-16 22:34           ` Dmitry Torokhov [this message]
2005-08-17 13:55             ` Alan Stern
2005-08-17 14:33               ` Bartlomiej Zolnierkiewicz

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=d120d5000508161534451ebd7a@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=dtor_core@ameritech.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.org \
    --cc=stern@rowland.harvard.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.