Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2016 06:30:37 +0000 (UTC)
From:      Wojciech Macek <wma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296824 - head/sys/arm/arm
Message-ID:  <201603140630.u2E6Ub9r031149@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wma
Date: Mon Mar 14 06:30:37 2016
New Revision: 296824
URL: https://svnweb.freebsd.org/changeset/base/296824

Log:
  Fix GIC interrupt decoding in INTRNG code
  
     Bug was already fixed in not-INTRNG code, it needs to be corrected
     here as well.  Source: https://reviews.freebsd.org/rS294422
  
  Submitted by:          Bartosz Szczepanek <bsz@semihalf.com>
  Obtained from:         Semihalf
  Sponsored by:          Stormshield
  Reviewed by:           cognet, wma
  Approved by:           cognet (mentor)
  Differential Revision: https://reviews.freebsd.org/D5029

Modified:
  head/sys/arm/arm/gic.c

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c	Mon Mar 14 04:39:35 2016	(r296823)
+++ head/sys/arm/arm/gic.c	Mon Mar 14 06:30:37 2016	(r296824)
@@ -755,7 +755,7 @@ gic_map_fdt(struct arm_gic_softc *sc, st
 		 * The hardware only supports active-high-level or rising-edge.
 		 */
 		tripol = isrc->isrc_cells[2];
-		if (tripol & 0x0a) {
+		if (tripol & 0x0a && irq >= GIC_FIRST_SPI) {
 			device_printf(sc->gic_dev,
 			   "unsupported trigger/polarity configuration "
 			   "0x%02x\n",  tripol & 0x0f);



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