summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-01-19 02:31:27 +0000
committeryongari <yongari@FreeBSD.org>2009-01-19 02:31:27 +0000
commitca829de63359cda67703edd7be3645ce04a56a31 (patch)
tree5de98897ad8229f53eb7036f5ff9122e93fdad61 /sys/pci
parent7d9738a7b8812098d5c88d26620c468f7ae87df9 (diff)
downloadFreeBSD-src-ca829de63359cda67703edd7be3645ce04a56a31.zip
FreeBSD-src-ca829de63359cda67703edd7be3645ce04a56a31.tar.gz
Sometimes RTL8168B seems to take long time to access GMII registers
in device attach phase. Double GMII register access timeout value to fix the issue. Reported by: wkoszek Tested by: wkoszek
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_rlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index b3569e8..2cc51d7 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -937,6 +937,7 @@ struct rl_softc {
CSR_WRITE_4(sc, offset, CSR_READ_4(sc, offset) & ~(val))
#define RL_TIMEOUT 1000
+#define RL_PHY_TIMEOUT 2000
/*
* General constants that are fun to know.
OpenPOWER on IntegriCloud