Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2012 18:50:11 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/170058: commit references a PR
Message-ID:  <201207311850.q6VIoBDa066516@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/170058; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/170058: commit references a PR
Date: Tue, 31 Jul 2012 18:47:32 +0000 (UTC)

 Author: adrian
 Date: Tue Jul 31 18:47:17 2012
 New Revision: 238954
 URL: http://svn.freebsd.org/changeset/base/238954
 
 Log:
   Restore the PCI bridge configuration upon resume.
   
   This allows my TI1510 cardbus/PCI bridge to work after a suspend/resume,
   without having to unload/reload the cbb driver.
   
   I've also tested this on stable/9.  I'll MFC it shortly.
   
   PR:		kern/170058
   Reviewed by:	jhb
   MFC after:	1 day
 
 Modified:
   head/sys/dev/pccbb/pccbb_pci.c
 
 Modified: head/sys/dev/pccbb/pccbb_pci.c
 ==============================================================================
 --- head/sys/dev/pccbb/pccbb_pci.c	Tue Jul 31 18:44:10 2012	(r238953)
 +++ head/sys/dev/pccbb/pccbb_pci.c	Tue Jul 31 18:47:17 2012	(r238954)
 @@ -465,6 +465,11 @@ cbb_chipinit(struct cbb_softc *sc)
  	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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207311850.q6VIoBDa066516>