Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2011 03:07:59 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223353 - head/sys/dev/firewire
Message-ID:  <201106210307.p5L37xG9076762@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Jun 21 03:07:59 2011
New Revision: 223353
URL: http://svn.freebsd.org/changeset/base/223353

Log:
  When we see an interrupt status of 0xffffffff, check to see if the
  child is still present.  If not, return 'handled' and don't print
  anything (this is expected behavior).  We expect an interrupt on eject,
  power-down and/or shutdown.

Modified:
  head/sys/dev/firewire/fwohci.c

Modified: head/sys/dev/firewire/fwohci.c
==============================================================================
--- head/sys/dev/firewire/fwohci.c	Tue Jun 21 03:05:17 2011	(r223352)
+++ head/sys/dev/firewire/fwohci.c	Tue Jun 21 03:07:59 2011	(r223353)
@@ -2072,8 +2072,9 @@ fwohci_check_stat(struct fwohci_softc *s
 	FW_GLOCK_ASSERT(&sc->fc);
 	stat = OREAD(sc, FWOHCI_INTSTAT);
 	if (stat == 0xffffffff) {
-		device_printf(sc->fc.dev, 
-			"device physically ejected?\n");
+		if (!bus_child_present(sc->fc.dev))
+			return (FILTER_HANDLED);
+		device_printf(sc->fc.dev, "device physically ejected?\n");
 		return (FILTER_STRAY);
 	}
 	if (stat)



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