Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2011 07:40:12 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/sound/usb uaudio.c src/sys/dev/usb usb_device.c usbdi.h src/sys/dev/usb/input uhid.c ukbd.c ums.c src/sys/dev/usb/storage umass.c ustorage_fs.c
Message-ID:  <201105180740.p4I7eYVK027350@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
avg         2011-05-18 07:40:12 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/sound/usb    uaudio.c 
    sys/dev/usb          usb_device.c usbdi.h 
    sys/dev/usb/input    uhid.c ukbd.c ums.c 
    sys/dev/usb/storage  umass.c ustorage_fs.c 
  Log:
  SVN rev 222051 on 2011-05-18 07:40:12Z by avg
  
  usb: change to one-pass probing of device drivers
  
  This brings USB bus more in line with how newbus is supposed to be used.
  Also, because of the two-pass probing the following message was produced
  by devd in default configuration when almost any USB device was
  connected:
          Unknown USB device: vendor <> product <> bus <>
  This should be fixed now.
  
  Note that many USB device drivers pass some information from probe
  method to attach method via ivars.  For this to continue working we rely
  on the fact that the subr_bus code calls probe method of a winning driver
  again before calling its attach method in the case where multiple
  drivers claim to support a device.  This is done because device
  description is set in successful probe methods and we want to get a correct
  device description from a winning driver.  So now this logic is re-used
  for setting ivars too.
  
  Reviewed by:    hselasky
  MFC after:      1 month
  
  Revision  Changes    Path
  1.70      +2 -5      src/sys/dev/sound/usb/uaudio.c
  1.19      +0 -4      src/sys/dev/usb/input/uhid.c
  1.33      +2 -2      src/sys/dev/usb/input/ukbd.c
  1.27      +2 -2      src/sys/dev/usb/input/ums.c
  1.42      +1 -4      src/sys/dev/usb/storage/umass.c
  1.22      +1 -5      src/sys/dev/usb/storage/ustorage_fs.c
  1.73      +0 -11     src/sys/dev/usb/usb_device.c
  1.80      +0 -1      src/sys/dev/usb/usbdi.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105180740.p4I7eYVK027350>