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

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Nov 23 10:34:03 PST 2014


commit ad37f541c15c9e959fc5dc5085de7c78bc63f563
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/ad37f541c15c9e959fc5dc5085de7c78bc63f563


-- 
DragonFly BSD source repository



More information about the Commits mailing list