]> git.hungrycats.org Git - linux/commit
driver model: add bus_rescan_devices()
authorPatrick Mochel <mochel@osdl.org>
Tue, 11 Mar 2003 10:00:30 +0000 (04:00 -0600)
committerPatrick Mochel <mochel@osdl.org>
Tue, 11 Mar 2003 10:00:30 +0000 (04:00 -0600)
commit35061138b5286db84e16512da733d4202ef24e3c
treeb951e59d7a2224fceae4ab714c841ef74131dc5b
parentc4bd2bfea09ee5f8100e770ab6ad43871801a1f3
driver model: add bus_rescan_devices()

From Ben Collins

Used as manual trigger for device/driver binding, so drivers can claim
devices that are present but failed to be bound. In case of ieee1394, this
can happen if two computers are attached to a device - the second one won't
be able to claim it until the first detaches.

Changed device_attach() to return 1 when a driver was bound to a device.
Makes it so bus_rescan_devices() can return the number of devices attached.
Tested this with ieee1394 over a bus reset and it worked as expected.
drivers/base/bus.c
include/linux/device.h