lkml.org 
[lkml]   [2004]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.076 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site