diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-07-27 03:38:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-28 15:33:46 +0000 |
commit | 10c0d38d267736abb60789dea4ff144847d2b4bb (patch) | |
tree | f1f2dc8974bdba21870a6c064d8fb151f6cbc493 | |
parent | 416673ae9147fbfc68da28548a008c242b014da4 (diff) | |
download | chrome-ec-10c0d38d267736abb60789dea4ff144847d2b4bb.tar.gz |
nx20p348x: Fix DB_EXIT flag handling
This fixes a typo where the CTRL_DB_EXIT was being set on the wrong
variable. this appears to date back to the very first commit of this
driver with chromium:966926.
BRANCH=none
BUG=b:74206647
TEST=buildall passes
Change-Id: I2c389419c09b0bed1e341dcd6ae6d187a698efcd
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058078
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | driver/ppc/nx20p348x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/ppc/nx20p348x.c b/driver/ppc/nx20p348x.c index 024e0906bd..497fdb21d5 100644 --- a/driver/ppc/nx20p348x.c +++ b/driver/ppc/nx20p348x.c @@ -402,7 +402,7 @@ static void nx20p348x_handle_interrupt(int port) } } read_reg(port, NX20P348X_DEVICE_CONTROL_REG, &control_reg); - reg |= NX20P348X_CTRL_DB_EXIT; + control_reg |= NX20P348X_CTRL_DB_EXIT; write_reg(port, NX20P348X_DEVICE_CONTROL_REG, control_reg); /* * If DB exit mode failed, then the OVP limit setting done in |