[Midnightbsd-cvs] src [8035] trunk/sys/dev/pccbb/pccbb_pci.c: fix TI1510 cardbus/PCI bridge to work after suspend/resume

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 15 16:42:25 EDT 2016


Revision: 8035
          http://svnweb.midnightbsd.org/src/?rev=8035
Author:   laffer1
Date:     2016-09-15 16:42:24 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
fix TI1510 cardbus/PCI bridge to work after suspend/resume

Modified Paths:
--------------
    trunk/sys/dev/pccbb/pccbb_pci.c

Modified: trunk/sys/dev/pccbb/pccbb_pci.c
===================================================================
--- trunk/sys/dev/pccbb/pccbb_pci.c	2016-09-15 20:41:03 UTC (rev 8034)
+++ trunk/sys/dev/pccbb/pccbb_pci.c	2016-09-15 20:42:24 UTC (rev 8035)
@@ -1,4 +1,4 @@
-/* $MidnightBSD: src/sys/dev/pccbb/pccbb_pci.c,v 1.2 2008/12/02 02:47:53 laffer1 Exp $ */
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 2002-2004 M. Warner Losh.
  * Copyright (c) 2000-2001 Jonathan Chen.
@@ -466,6 +466,11 @@
 	if (pci_read_config(sc->dev, PCIR_LATTIMER, 1) < 0x20)
 		pci_write_config(sc->dev, PCIR_LATTIMER, 0x20, 1);
 
+	/* Restore bus configuration */
+	pci_write_config(sc->dev, PCIR_PRIBUS_2, sc->pribus, 1);
+	pci_write_config(sc->dev, PCIR_SECBUS_2, sc->secbus, 1);
+	pci_write_config(sc->dev, PCIR_SUBBUS_2, sc->subbus, 1);
+
 	/* Enable memory access */
 	PCI_MASK_CONFIG(sc->dev, PCIR_COMMAND,
 	    | PCIM_CMD_MEMEN



More information about the Midnightbsd-cvs mailing list