summaryrefslogtreecommitdiff
path: root/driver/gl3590.h
diff options
context:
space:
mode:
authorJan Dabros <jsd@semihalf.com>2021-01-27 22:08:24 +0100
committerCommit Bot <commit-bot@chromium.org>2021-02-09 10:34:38 +0000
commitb4fcacdda8df6b738025361d3edea337129594e9 (patch)
treec5246fe399bc5611d35540b7d6463ad2bebb6a54 /driver/gl3590.h
parent7852f10868a7cbbb3ae496ff3af82c7cab95e7f1 (diff)
downloadchrome-ec-b4fcacdda8df6b738025361d3edea337129594e9.tar.gz
gl3590: Add retry algorithm for port enabling procedure
To improve reliability of gl3590 driver, add verification for success of previous enable/disable port command. BUG=b:178125550 BRANCH=main TEST=Flash FW6410 to GL3590 hub, verify error messages correctness on port enable/disable events. Flash FW6411 to GL3590 hub, verify that all commands executed silently which means success. Signed-off-by: Jan Dabros <jsd@semihalf.com> Change-Id: I5599c350c88c2596a4bb2a2ba310d44c08e0717f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674002 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/gl3590.h')
-rw-r--r--driver/gl3590.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/gl3590.h b/driver/gl3590.h
index a9d8735029..931035d95e 100644
--- a/driver/gl3590.h
+++ b/driver/gl3590.h
@@ -17,6 +17,7 @@
#define GL3590_RESPONSE_REG 0x2
#define GL3590_RESPONSE_REG_SYNC_MASK 0x80
#define GL3590_PORT_DISABLED_REG 0x4
+#define GL3590_PORT_EN_STS_REG 0x8
#define GL3590_HUB_STS_REG 0xA
#define GL3590_HUB_STS_HOST_PWR_MASK 0x30
#define GL3590_HUB_STS_HOST_PWR_SHIFT 4