Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 18:59:00 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r247490 - stable/8/sys/dev/puc
Message-ID:  <201302281859.r1SIx0fo008647@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Feb 28 18:59:00 2013
New Revision: 247490
URL: http://svnweb.freebsd.org/changeset/base/247490

Log:
  MFC 245471:
  Do not require a filter-only interrupt handler for puc ports that are not
  serial devices (such as printer ports).  This allows ppc devices attached
  to puc to correctly setup an interrupt handler and work.

Modified:
  stable/8/sys/dev/puc/puc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/puc/   (props changed)

Modified: stable/8/sys/dev/puc/puc.c
==============================================================================
--- stable/8/sys/dev/puc/puc.c	Thu Feb 28 18:58:37 2013	(r247489)
+++ stable/8/sys/dev/puc/puc.c	Thu Feb 28 18:59:00 2013	(r247490)
@@ -622,7 +622,7 @@ puc_bus_setup_intr(device_t dev, device_
 	if (cookiep == NULL || res != port->p_ires)
 		return (EINVAL);
 	/* We demand that serdev devices use filter_only interrupts. */
-	if (ihand != NULL)
+	if (port->p_type == PUC_TYPE_SERIAL && ihand != NULL)
 		return (ENXIO);
 	if (rman_get_device(port->p_ires) != originator)
 		return (ENXIO);



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