diff options
author | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-10-12 14:44:19 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-10-12 14:44:19 +0000 |
commit | 8175958b19d8b34bd96f9199e7face8470fa5cf2 (patch) | |
tree | 242965ac14238aa660506fba6f832fd4519359c4 | |
parent | 2fa6c2cb881c9a3a537b419c58727de0d0ee741e (diff) |
reform/pm: lpc comms: increase delays to 80ms
Apparently 60ms isn't always enough.
-rw-r--r-- | sys/src/cmd/reform/pm.c | 4 |
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); |