git: virtio_pci: Use device_probe_and_attach(), instead of DEVICE_ATTACH().

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Nov 22 10:46:24 PST 2014


commit b17fe9c54b9825d21bcfd7ff28cc36a5e31d74f4
Author: Imre Vadasz <imre at vdsz.com>
Date:   Sat Nov 22 09:29:49 2014 +0100

    virtio_pci: Use device_probe_and_attach(), instead of DEVICE_ATTACH().
    
    * By directly calling DEVICE_ATTACH(), we didn't get automatically created
      sysctl nodes (added in 8e4d13764bdfc916c23fb22158c65e486dce631c), and
      we didn't get automatic dmesg messages on child driver attachement
      (e.g. "vtblk0: <VirtIO Block Adapter> on virtio_pci1") .
    
    * Since we have no direct equivalent to FreeBSD's device_attach(), use
      device_probe_and_attach(). This means we do a vtpci_set_status() cycle
      even if no matching driver is found.

Summary of changes:
 sys/dev/virtual/virtio/pci/virtio_pci.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b17fe9c54b9825d21bcfd7ff28cc36a5e31d74f4


-- 
DragonFly BSD source repository



More information about the Commits mailing list