Subject: CVS commit: [jmcneill-pm] src/sys
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: source-changes
Date: 11/07/2007 01:14:19
Module Name:	src
Committed By:	joerg
Date:		Wed Nov  7 01:14:19 UTC 2007

Modified Files:
	src/sys/dev/pci [jmcneill-pm]: azalia.c
	src/sys/dev/usb [jmcneill-pm]: ehci.c ohci.c uhci.c
	src/sys/kern [jmcneill-pm]: subr_autoconf.c
	src/sys/sys [jmcneill-pm]: device.h

Log Message:
Introduce device_has_power to fix a race between resuming a device and
the device enabling interrupts as seen by jmcneill@ with uhci. Change
ehci, ohci, uhci and azalia to use this function to protect the
interrupt handler.


To generate a diff of this commit:
cvs rdiff -r1.50.6.4 -r1.50.6.5 src/sys/dev/pci/azalia.c
cvs rdiff -r1.123.18.6 -r1.123.18.7 src/sys/dev/usb/ehci.c
cvs rdiff -r1.182.18.5 -r1.182.18.6 src/sys/dev/usb/ohci.c
cvs rdiff -r1.209.2.5 -r1.209.2.6 src/sys/dev/usb/uhci.c
cvs rdiff -r1.119.4.4 -r1.119.4.5 src/sys/kern/subr_autoconf.c
cvs rdiff -r1.96.6.5 -r1.96.6.6 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.