summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-10-12 14:44:19 +0000
committerSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-10-12 14:44:19 +0000
commit8175958b19d8b34bd96f9199e7face8470fa5cf2 (patch)
tree242965ac14238aa660506fba6f832fd4519359c4 /sys/src
parent2fa6c2cb881c9a3a537b419c58727de0d0ee741e (diff)
reform/pm: lpc comms: increase delays to 80ms
Apparently 60ms isn't always enough.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/reform/pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/reform/pm.c b/sys/src/cmd/reform/pm.c
index d37579184..346610dfa 100644
--- a/sys/src/cmd/reform/pm.c
+++ b/sys/src/cmd/reform/pm.c
@@ -369,7 +369,7 @@ lpccall(char cmd, u8int arg, void *ret)
* to be sure LPC is blocked waiting for the chip select to go
* active again.
*/
- sleep(60);
+ sleep(80);
while(rd(spi2, SPIx_STATREG) & STAT_RR)
rd(spi2, SPIx_RXDATA);
@@ -377,7 +377,7 @@ lpccall(char cmd, u8int arg, void *ret)
for(i = 0; i < 8; i++)
wr(spi2, SPIx_TXDATA, 0);
wr(spi2, SPIx_CONREG, con | CON_XCH);
- sleep(60);
+ sleep(80);
for(i = 0; i < 8; i++)
((u8int*)ret)[i] = rd(spi2, SPIx_RXDATA);