Re: [PATCH 2.6.10-rc1 0/4] driver-model: manual device attach

From: Martin Waitz (tali_at_admingilde.org)
Date: 11/04/04

  • Next message: Stelian Pop: "[PATCH 0/12] meye driver update"
    Date:	Thu, 4 Nov 2004 11:27:52 +0100
    To: Tejun Heo <tj@home-tj.org>
    
    
    

    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
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Stelian Pop: "[PATCH 0/12] meye driver update"

    Relevant Pages

    • Re: [PATCH 2.6.10-rc1 4/4] driver-model: attach/detach sysfs node implemented
      ... > This patch implements device interface nodes attach and detach. ... > driver name attaches the device to the driver. ... This will not work for pretty much any bus but PCI because only PCI ...
      (Linux-Kernel)
    • Re: MOUHID attaching problem
      ... driver passes AttachDevice function in CDevice.cpp. ... UHCD driver DLL attach ... InitializeUHCI ++ ... CHub(Root tier 0)::AllocateDeviceArray - attempting to allocate 1 devices ...
      (microsoft.public.windowsce.platbuilder)
    • [PATCH 2.6.10-rc1 0/4] driver-model: manual device attach
      ... These are the manual device attach patches I was talking about in the ... dev.autoattach is read/write integer sysctl node which controls ... driver-model's behavior regarding device - driver association. ...
      (Linux-Kernel)
    • Problems installing X25 9.1 on Solaris 8
      ... Driver successfully added to system but failed to attach ... Warning: Driver successfully added to system but failed to attach ... Installation of was successful. ...
      (SunManagers)
    • HP-UX driver attach routine not called, ioscan does not help
      ... An HP-UX 11.0 DLKM PCI interface device driver I have written does not ... attach() is still not called. ... the loadand attachroutines that I am using to track down the ...
      (comp.sys.hp.hpux)