Date: Mon, 23 Mar 2015 06:17:15 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 1207528 for review Message-ID: <201503230617.t2N6HFwm048965@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1207528?ac=10 Change 1207528 by jmg@jmg_pciehp on 2015/03/23 06:16:43 This gets pciehp working again.. turns out that you call pcib_ functions on the bus, which is dev here, not on the pcib device... You are accessing the parent's ivars, which here, pcib is the parent.. This means I can push stuff down again.. Sponsored by: The FreeBSD Foundation Affected files ... .. //depot/projects/pciehotplug/sys/dev/pci/pci.c#6 edit Differences ... ==== //depot/projects/pciehotplug/sys/dev/pci/pci.c#6 (text+ko) ==== @@ -3517,8 +3517,8 @@ int first_func; pcib = device_get_parent(dev); - domain = pcib_get_domain(pcib); - busno = pcib_get_bus(pcib); + domain = pcib_get_domain(dev); + busno = pcib_get_bus(dev); /* * Try to detect a device at slot 0, function 0. If it exists, try to
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503230617.t2N6HFwm048965>