summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>2022-07-26 14:56:11 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-17 20:20:03 +0000
commit5d79e92cba579a539d3e8b4dc2ed5be7696a4ea6 (patch)
tree73158f25fdf3caf9175e59ac75a1f687e8cdbb4e
parent86906e94b2bd9a1e6b012225680e12cd266d4686 (diff)
downloadchrome-ec-5d79e92cba579a539d3e8b4dc2ed5be7696a4ea6.tar.gz
Banshee: fix the mux state is correct
Check if chipset is in S0 state and enable USB3_Connection bit. BUG=b:233975818 BRANCH=None TEST=Test on Banshee, plugin HDMI card or USB card to each port, usb mux status is correct. Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: I77f0703dfe72c958dd71856098fdcb5f8fc5ac37 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787361 Commit-Queue: YH Lin <yueherngl@chromium.org> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--board/banshee/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/banshee/board.c b/board/banshee/board.c
index d305090bc8..04ea76fe90 100644
--- a/board/banshee/board.c
+++ b/board/banshee/board.c
@@ -60,7 +60,8 @@ void set_bb_retimer_usb3_state(bool enable)
/* Called on AP S3 -> S0 transition */
static void board_chipset_resume(void)
{
- set_bb_retimer_usb3_state(true);
+ if (chipset_in_state(CHIPSET_STATE_ON))
+ set_bb_retimer_usb3_state(true);
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT);