Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Forward the bridge's devhandle to the downstream...



details:   https://anonhg.NetBSD.org/src/rev/c6cc04d20a4a
branches:  trunk
changeset: 379103:c6cc04d20a4a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 11 06:03:54 2021 +0000

description:
Forward the bridge's devhandle to the downstream bus.

diffstat:

 sys/dev/pci/ppb.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 3ee5925159fe -r c6cc04d20a4a sys/dev/pci/ppb.c
--- a/sys/dev/pci/ppb.c Tue May 11 05:57:02 2021 +0000
+++ b/sys/dev/pci/ppb.c Tue May 11 06:03:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppb.c,v 1.71 2021/04/24 23:36:57 thorpej Exp $ */
+/*     $NetBSD: ppb.c,v 1.72 2021/05/11 06:03:54 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996, 1998 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.71 2021/04/24 23:36:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.72 2021/05/11 06:03:54 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ppb.h"
@@ -436,7 +436,13 @@ configure:
        pba.pba_intrswiz = pa->pa_intrswiz;
        pba.pba_intrtag = pa->pa_intrtag;
 
-       config_found(self, &pba, pcibusprint, CFARG_EOL);
+       config_found(self, &pba, pcibusprint,
+           /*
+            * Forward along the device handle for the bridge to the
+            * downstream bus.
+            */
+           CFARG_DEVHANDLE, device_handle(self),
+           CFARG_EOL);
 }
 
 static int



Home | Main Index | Thread Index | Old Index