diff options
author | Marco Chen <marcochen@google.com> | 2020-09-01 16:49:42 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-02 00:44:28 +0000 |
commit | 3e39e1c2f875251ee71e981c90b1cfa43ad9a33f (patch) | |
tree | e2b458afa642cd2733118f0d06a25fbaea5f1632 | |
parent | 1fa485defa9cf6d663afdc7a44f924e97148b4ac (diff) | |
download | chrome-ec-3e39e1c2f875251ee71e981c90b1cfa43ad9a33f.tar.gz |
Octopus: fix the hook priority of cbi_ssfc_init to INIT_I2C + 1
CL:2385015 is a cherry-picked version from ToT where the i2c_init is
changed to be earlier then hook task. Therefore the hook priority can be
HOOK_PRIO_FIRST for cbi_init_ssfc.
In Octopus firmware branch, the i2c_init is still called in
HOOK_PRIO_INIT_I2C. As a result, we need to change the hook priority of
cbi_init_ssfc; otherwise the i2c module is not initialized before the
call of cbi_init_ssfc.
BRANCH=octopus
BUG=b:163922535
TEST=make sure EC can boot up correctly and not be blocked in cbi_ssfc_init.
Signed-off-by: Marco Chen <marcochen@chromium.org>
Change-Id: I2932865793a37fefd16915304f018547379ae643
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2387682
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
Tested-by: Henry Sun <henrysun@google.com>
-rw-r--r-- | baseboard/octopus/cbi_ssfc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baseboard/octopus/cbi_ssfc.c b/baseboard/octopus/cbi_ssfc.c index e4048e898f..ccfc7ffe02 100644 --- a/baseboard/octopus/cbi_ssfc.c +++ b/baseboard/octopus/cbi_ssfc.c @@ -26,7 +26,7 @@ static void cbi_ssfc_init(void) CPRINTS("CBI SSFC: 0x%04X", cached_ssfc); } -DECLARE_HOOK(HOOK_INIT, cbi_ssfc_init, HOOK_PRIO_FIRST); +DECLARE_HOOK(HOOK_INIT, cbi_ssfc_init, HOOK_PRIO_INIT_I2C + 1); enum ssfc_tcpc_p1 get_cbi_ssfc_tcpc_p1(void) { |