diff options
author | Ting Shen <phoenixshen@google.com> | 2021-08-20 15:29:13 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-24 11:30:14 +0000 |
commit | 59fe6576b797d44c8d57c4e28945a4ec137fdf16 (patch) | |
tree | de401c7d567cad6cbdb7ec46ed767d525df49a2c /driver | |
parent | ffc3742a73c7124c62890210f9136908e7b669c1 (diff) | |
download | chrome-ec-59fe6576b797d44c8d57c4e28945a4ec137fdf16.tar.gz |
usb_prl_sm: reduce i2c transactions in FRS path
The get_cc function call is slow (2 i2c transactions in tcpci
implementation) and redundant in FRS path.
Use short-circuiting to remove the function call.
This saves ~2ms on Cherry.
BUG=b:190348051
TEST=Combined with other CLs in the chain, verify FRS workable on Tomato
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I4161bc3a5ba17eb4983d85dd78465c2e623f46dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3109707
Reviewed-by: Rong Chang <rongchang@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'driver')
0 files changed, 0 insertions, 0 deletions