Date: Sat, 19 Mar 2011 19:30:49 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219780 - head/sys/sparc64/pci Message-ID: <201103191930.p2JJUnrm032747@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marius Date: Sat Mar 19 19:30:49 2011 New Revision: 219780 URL: http://svn.freebsd.org/changeset/base/219780 Log: In case reading PCIR_MINGNT fails don't use it for calculating the latency. This is more or less a theoretical problem though as it typically indicates way bigger problems. Modified: head/sys/sparc64/pci/ofw_pcibus.c Modified: head/sys/sparc64/pci/ofw_pcibus.c ============================================================================== --- head/sys/sparc64/pci/ofw_pcibus.c Sat Mar 19 19:08:54 2011 (r219779) +++ head/sys/sparc64/pci/ofw_pcibus.c Sat Mar 19 19:30:49 2011 (r219780) @@ -165,7 +165,7 @@ ofw_pcibus_setup_device(device_t bridge, CS_WRITE(PCIR_SECLAT_1, reg, 1); } else { reg = CS_READ(PCIR_MINGNT, 1); - if (reg != 0) { + if ((int)reg > 0) { switch (clock) { case 33000000: reg *= 8;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103191930.p2JJUnrm032747>