artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64626f
)
Increase transfer completion timeout to 100ms. This is what Linux has
author
kettenis
<kettenis@openbsd.org>
Sat, 10 Dec 2022 18:43:48 +0000
(18:43 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 10 Dec 2022 18:43:48 +0000
(18:43 +0000)
and we need a longer timeout for the USB Type-C PD chips.
ok tobhe@
sys/arch/arm64/dev/apliic.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/dev/apliic.c
b/sys/arch/arm64/dev/apliic.c
index
7358d66
..
f8afb52
100644
(file)
--- a/
sys/arch/arm64/dev/apliic.c
+++ b/
sys/arch/arm64/dev/apliic.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: apliic.c,v 1.
4 2022/12/06 16:06:32
kettenis Exp $ */
+/* $OpenBSD: apliic.c,v 1.
5 2022/12/10 18:43:48
kettenis Exp $ */
/*
* Copyright (c) 2021 Patrick Wildt <patrick@blueri.se>
*
@@
-158,7
+158,7
@@
apliic_wait(struct apliic_softc *sc)
uint32_t reg;
int timo;
- for (timo = 10; timo > 0; timo--) {
+ for (timo = 10
0
; timo > 0; timo--) {
reg = HREAD4(sc, I2C_SMSTA);
if (reg & I2C_SMSTA_XEN)
break;