Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replicate the GCC error fix from the hx30 to hx20
Applies the Fix from #24 into the hx20 board.
  • Loading branch information
pantsman0 authored Apr 7, 2023
commit a7c336ef093c78787cfa453d38dcf2666ee3d33a
5 changes: 3 additions & 2 deletions board/hx20/cypress5525.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,12 +968,13 @@ void cyp5525_port_int(int controller, int port)
int port_idx = (controller << 1) + port;
enum pd_msg_type sop_type;
rv = i2c_read_offset16_block(i2c_port, addr_flags, CYP5525_PORT_PD_RESPONSE_REG(port), data2, 4);
if (rv != EC_SUCCESS)
if (rv != EC_SUCCESS) {
CPRINTS("PORT_PD_RESPONSE_REG failed");
print_pd_response_code(controller,
print_pd_response_code(controller,
port,
data2[0],
data2[1]);
}

response_len = data2[1];
switch (data2[0]) {
Expand Down