Re: usbd config file parse behaviour

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 03/31/04

  • Next message: John-Mark Gurney: "Re: noread(), nopoll().... functions"
    Date: Wed, 31 Mar 2004 09:32:11 -0700 (MST)
    To: boris@brooknet.com.au
    
    

    : I agree that it's bad to yank a device from under ugen automatically and
    : reattach it to a better match.

    I think it is good. Really. However, ugen should mark the device
    busy when it is opened, and mark it as unbusy as closed and the
    reprobe shouldn't happen if the device is busy. Otherwise, there's no
    harm. ugen2 goes away, who cares. ugen0, ugen1, and ugen3 would
    still be there. However, if a device is in use, the probe routines of
    other divices may interfere.

    Part of the problem is we can't tell a driver 'detach if you aren't
    busy' vs 'detach now, your hardware is gone or about to be gone'.
    Maybe we should fix that at the same time. There's also a desire from
    the hot-plug bus people to have a 'quiesce' the device, which is
    similar to the current suspend method, but with different semantics
    (quiesce means stop using the hardware, while suspend says put the
    hardware to sleep).

    : How about adding a new ioctl on /dev/usb, eg USB_REPROBE to reset a device
    : if a better match exists?

    I don't want this to be USB specific. usb has enough kludgy hacks.
    That's why we're in this mess. If we do something like this, then we
    should do it for all devices on all busses.

    : Could tack an option on to usbdevs to call it on requested devices.

    Absolutely not. We want uniform behavior. It would be a nightmare to
    manage a huge table in the kernel with exceptions.

    Warner
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: John-Mark Gurney: "Re: noread(), nopoll().... functions"

    Relevant Pages

    • Re: XGrid Question
      ... My USB MP3 player and Camera did ... The Mac Mini uses DVI, the vga adapter is only there for people ... > does not support much of the hardware I currently own. ... If it wasn't for Apple, ...
      (comp.sys.mac.advocacy)
    • Re: [SLE] 9.3 woes (the epilogue?)
      ... Carl E. Hartung wrote: ... > These problems aren't being caused by hardware: ... > The installation runs fine, as does YOU and all the dependencies are met. ... USB printer, USB scanner, CH Joystick and pedals, ...
      (SuSE)
    • Re: PS2 keyboard port problem
      ... I knew about readerware, but never bought it. ... Both the USB and PS/2 ... I did try to detect new hardware ... detected unless it's plug and play....which the:cuecat isn't. ...
      (microsoft.public.windowsxp.basics)
    • Re: How can you get a Seagate USB 160 GB drive to mount?
      ... No desktop icon, no mount. ... Mount removable drives when hot-plugged ... Aug 12 16:32:35 poirot kernel: usb 1-2: new full speed USB device using ohci_hcd and address 6 ... hardware sectors ...
      (Fedora)
    • Re: How can you get a Seagate USB 160 GB drive to mount?
      ... No desktop icon, no mount. ... Mount removable drives when hot-plugged ... Aug 12 16:32:35 poirot kernel: usb 1-2: new full speed USB device using ohci_hcd and address 6 ... hardware sectors ...
      (Fedora)