[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1110141137460.2036-100000@iolanthe.rowland.org>
Date: Fri, 14 Oct 2011 11:39:16 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Grant Likely <grant.likely@...retlab.ca>
cc: Ming Lei <tom.leiming@...il.com>,
Andrei Warkentin <awarkentin@...are.com>,
Greg KH <greg@...ah.com>, Dilan Lee <dilee@...dia.com>,
"G, Manjunath Kondaiah" <manjugk@...com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
<linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Josh Triplett <josh@...htriplett.org>, <Manjunath@...per.es>,
<linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
Linux PM List <linux-pm@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...k.pl>
Subject: Re: [PATCH 2/5] drivercore: Add driver probe deferral mechanism
On Thu, 13 Oct 2011, Grant Likely wrote:
> > However it's worth pointing out right at the start that we already have
> > device_pm_move_before(), device_pm_move_after(), and
> > device_pm_move_last(). They are intended specifically to provide
> > drivers with a way of making sure that dpm_list is in the right order
> > -- people have been aware of these issues for some time.
>
> I saw those. I also notice that they are only used by device_move()
> when reparenting a device (which is another wrinkle I hadn't though
> about). Reparenting a device becomes problematic if the probe order
> is also represented in the list. If device_move() gets called, then
> any implicit probe-order sorting for that device would be lost.
>
> I also notice that device_move disregards any children when moving a
> device, which could also be a problem.
>
> Although it looks like the only users of device_move are:
>
> drivers/media/video/pvrusb2/pvrusb2-v4l2.c
> drivers/s390/cio/device.c
> net/bluetooth/hci_sysfs.c
> net/bluetooth/rfcomm/tty.c
>
> So it may not be significant to adapt.
I trust that very little will be needed. I haven't checked the
existing callers, but it's reasonable to require that a device being
moved not have any children.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists