summaryrefslogtreecommitdiff
path: root/util/comm-lpc.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-11-01 11:39:00 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-04 19:48:49 +0000
commitc1e02ca2203a7889539a88570e142f16cfd265a8 (patch)
treed5179376c575bfed91c7227e1da7d50cddbfd1b5 /util/comm-lpc.c
parent2aae9d678a500cab94ad7f0747940de9e01d8a6e (diff)
downloadchrome-ec-c1e02ca2203a7889539a88570e142f16cfd265a8.tar.gz
cleanup: Yes, even more TODO comments
Almost done. Comment changes only. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms Change-Id: I974dfc12aa264e2035b3bae35a089c19344e7d45 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175484 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'util/comm-lpc.c')
-rw-r--r--util/comm-lpc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/comm-lpc.c b/util/comm-lpc.c
index 8ea4e9ddd8..25f0bea4c6 100644
--- a/util/comm-lpc.c
+++ b/util/comm-lpc.c
@@ -26,11 +26,10 @@ static int wait_for_ec(int status_addr, int timeout_usec)
for (i = 0; i < timeout_usec; i += delay) {
/*
* Delay first, in case we just sent out a command but the EC
- * hasn't raise the busy flag. However, I think this doesn't
+ * hasn't raised the busy flag. However, I think this doesn't
* happen since the LPC commands are executed in order and the
- * busy flag is set by hardware.
- *
- * TODO: move this delay after inb(status).
+ * busy flag is set by hardware. Minor issue in any case,
+ * since the initial delay is very short.
*/
usleep(MIN(delay, timeout_usec - i));
@@ -142,7 +141,7 @@ static int ec_command_lpc_3(int command, int version,
return -EC_RES_REQUEST_TRUNCATED;
/* Fill in request packet */
- /* TODO: this should be common to all protocols */
+ /* TODO(crosbug.com/p/23825): This should be common to all protocols */
rq.struct_version = EC_HOST_REQUEST_VERSION;
rq.checksum = 0;
rq.command = command;