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.
This commit is contained in:
parent
4d457387fe
commit
3273bf2d65
@ -165,7 +165,7 @@ ofw_pcibus_setup_device(device_t bridge, uint32_t clock, u_int busno,
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user