From: kettenis Date: Sat, 10 Dec 2022 18:43:48 +0000 (+0000) Subject: Increase transfer completion timeout to 100ms. This is what Linux has X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=97b909b357032a8ef8fbf06bc0516d33b1de443e;p=openbsd Increase transfer completion timeout to 100ms. This is what Linux has and we need a longer timeout for the USB Type-C PD chips. ok tobhe@ --- diff --git a/sys/arch/arm64/dev/apliic.c b/sys/arch/arm64/dev/apliic.c index 7358d669b0d..f8afb52c6c8 100644 --- 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 * @@ -158,7 +158,7 @@ apliic_wait(struct apliic_softc *sc) uint32_t reg; int timo; - for (timo = 10; timo > 0; timo--) { + for (timo = 100; timo > 0; timo--) { reg = HREAD4(sc, I2C_SMSTA); if (reg & I2C_SMSTA_XEN) break;