diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-12-03 14:07:32 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-25 20:28:10 +0000 |
commit | ba15cc92f2050175b50db3baa84228e49a081a10 (patch) | |
tree | 2b33545c5947df3020276026d2688c3bb2fe6259 /docs | |
parent | 71d6b16eff18aab1f7c592a75e5489a4f14b8790 (diff) | |
download | chrome-ec-ba15cc92f2050175b50db3baa84228e49a081a10.tar.gz |
driver: tcs3400: Check for device status only once
Since ASIEN (interrupt on ALS saturation) and ALS threshold interrupts
are disabled, we can only get interrupt on RBGC cycle read.
Therefore, when using the interrupt, not need to check if RGB data is
ready in post_events(). Only check while in force mode.
Remove recheck when accounting for saturation.
BUG=b:177860358
BRANCH=kukui,hatch,puff,volteer
TEST=compile
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I7fc419a98828b9b188849e04a15cfefaf9e96c8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2572739
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions