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 <b...@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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to