Skip to content

Commit 67bbcd9

Browse files
committed
peci: Only write-clear Upstream Done
Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 18824c7 commit 67bbcd9

File tree

1 file changed

+2
-2
lines changed
  • src/board/system76/common

1 file changed

+2
-2
lines changed

src/board/system76/common/peci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bool peci_get_temp(int16_t *const data) {
105105
}
106106
}
107107
// Clear upstream done status
108-
ESUCTRL0 = ESUCTRL0_DONE;
108+
ESUCTRL0 |= ESUCTRL0_DONE;
109109

110110
// Wait for response
111111
//TODO: do this asynchronously to avoid delays?
@@ -202,7 +202,7 @@ int16_t peci_wr_pkg_config(uint8_t index, uint16_t param, uint32_t data) {
202202
}
203203
}
204204
// Clear upstream done status
205-
ESUCTRL0 = ESUCTRL0_DONE;
205+
ESUCTRL0 |= ESUCTRL0_DONE;
206206

207207
// Wait for response
208208
//TODO: do this asynchronously to avoid delays?

0 commit comments

Comments
 (0)