Messages in this thread | | | Date | Thu, 4 Nov 2004 11:27:52 +0100 | From | Martin Waitz <> | Subject | Re: [PATCH 2.6.10-rc1 0/4] driver-model: manual device attach |
| |
hoi :)
On Thu, Nov 04, 2004 at 04:43:30PM +0900, Tejun Heo wrote: > Two files named attach and detach are created under each device's > sysfs directory. Reading attach node shows the name of applicable > drivers. Writing a driver name attaches the device to the driver. > Also, per-device parameters can be specified when writing to an attach > node. Writing anything to the write-only detach node detaches the > driver from the currently associated driver.
perhaps it'll be simpler with only the attach file and using a special magic value ("", "none", "detach", whatever) to manually detach a device from the driver.
Is it possible (and worthwhile) to reattach a manually detached device to the default driver? Perhaps using a magic value "auto" for attach. Something like your dev.autoattach=2 rescan method, but for one device only. (What is the use case to rescan all busses, anyway?)
-- Martin Waitz [unhandled content-type:application/pgp-signature] | |