diff options
author | Jett Rink <jettrink@chromium.org> | 2018-05-07 13:37:30 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-09 11:21:41 -0700 |
commit | 52726d7f7f6948626f2481e999afc9aa5246166b (patch) | |
tree | 7c408918e7f18bde8c86ea83640b61676fdd2a0e /driver | |
parent | 6c78f0fae7c680a8ff1c77918f7f36b5d15e34e9 (diff) | |
download | chrome-ec-52726d7f7f6948626f2481e999afc9aa5246166b.tar.gz |
anx7447: remove write to OCM version reg
When we write a 0 to the register it actually prevents
future calls from correctly determining if the OCM is
present.
BRANCH=none
BUG=b:79123179
TEST=board with OCM still reports ocm after multiple anx_ocm 0 calls
Change-Id: I3899e8999483518fb42ddbd044d29e32fc3380f3
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1047830
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/anx7447.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c index f4f5684cc0..9d4b3ddb3c 100644 --- a/driver/tcpm/anx7447.c +++ b/driver/tcpm/anx7447.c @@ -170,7 +170,6 @@ static int anx7447_flash_is_empty(int port) int r; anx7447_reg_read(port, ANX7447_REG_OCM_VERSION, &r); - anx7447_reg_write(port, ANX7447_REG_OCM_VERSION, 0); return ((r == 0) ? 1 : 0); } |