From a75a2f19db500bcd1ede45e49db3a422e4ed768f Mon Sep 17 00:00:00 2001 From: Namyoon Woo Date: Mon, 7 Dec 2020 11:35:34 -0800 Subject: cr50: fix the comment on DIOB3 (EC_PACKET_MODE) DIOB3 (EC_PACKET_MODE) is used to indicate the start or the end of EC PACKET mode, but not as a UART TX. This patch corrects the incorrect comment regarding that. BUG=none TEST=none Signed-off-by: Namyoon Woo Change-Id: Ic13d34910005c8bc79a3f00e8d32113f267d6752 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2575291 Reviewed-by: Mary Ruthven Commit-Queue: Mary Ruthven --- common/ec_comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ec_comm.c b/common/ec_comm.c index f597b3b496..ca41649d97 100644 --- a/common/ec_comm.c +++ b/common/ec_comm.c @@ -120,7 +120,7 @@ static uint16_t decode_packet_(const struct cr50_comm_packet *ph, int bytes) } /* - * Transfer a 'response' to 'uart' port using DIOB3 pin. + * Transfer a 'response' to 'uart' port. * * @param response Response code to return to EC. Should be one of * CR50_COMM_RESPONSE codes in include/vboot.h. @@ -134,7 +134,7 @@ static void transfer_response_to_ec_(uint16_t response) uartn_write_char(uart, ptr_resp[0]); uartn_write_char(uart, ptr_resp[1]); - uartn_tx_flush(uart); /* Flush from UART2_TX to DIOB3 */ + uartn_tx_flush(uart); ec_comm_ctx.last_resp = response; } -- cgit v1.2.1