ec/google/chromeec: Modify ufp from type-c role
commitbb20e42f7b27bf9edaacc983978d4648fba702bb
authorDtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
Mon, 29 Aug 2022 07:43:01 +0000 (29 15:43 +0800)
committerMartin L Roth <gaumless@gmail.com>
Mon, 5 Sep 2022 14:06:16 +0000 (5 14:06 +0000)
tree4cd6d029e9fe8b9b8bb9f249c7bbe683fe051643
parent218fac11087d3c1ad69327e4e926ab7ba5a6465f
ec/google/chromeec: Modify ufp from type-c role

In order to fix the USB port of type-C dongle has no function after
reboot/shutdown, modify ufp which is in google_chromeec_usb_pd_get_info
from the bit1 of type-c role (PD_CTRL_RESP_ROLE_DATA).

BUG=b:239138412
TEST=Built coreboot image and verified that using this patch can detect
usb drive after reboot.

Signed-off-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
Change-Id: I73a4a6ec37129388783599125f067068d155d93f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67168
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/ec/google/chromeec/ec.c