summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Peng <robinpeng@google.com>2022-12-16 06:00:17 +0000
committerRobin Peng <robinpeng@google.com>2022-12-16 06:00:17 +0000
commitc5a34e25968c800b6e93b18f2d2b2c16b1bed095 (patch)
tree9ad517b21225c156f3b5d94c19b225c4e10e84dc
parent013e48b680f92e342b65c1bf7c088893770f287e (diff)
parent9c71813efd25843fade6af9aac21ac7694eb36ec (diff)
downloadgchips-c5a34e25968c800b6e93b18f2d2b2c16b1bed095.tar.gz
Merge android13-gs-pixel-5.15 into android14-gs-pixel-5.15
Bug: 260174400 Change-Id: I45d7cf33220e0fce9e4af28081b8fb5f4077d5d3 Signed-off-by: Robin Peng <robinpeng@google.com>
-rw-r--r--bigo.c2
-rw-r--r--bigo_io.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/bigo.c b/bigo.c
index bab43cd..f7a5b9c 100644
--- a/bigo.c
+++ b/bigo.c
@@ -516,6 +516,8 @@ static irqreturn_t bigo_isr(int irq, void *arg)
spin_lock_irqsave(&core->status_lock, flags);
core->stat_with_irq = bigo_stat;
spin_unlock_irqrestore(&core->status_lock, flags);
+ bigo_stat &= ~BIGO_STAT_MODE;
+ bigo_stat &= ~BIGO_STAT_CODING_MODE;
bigo_stat &= ~BIGO_STAT_IRQMASK;
bigo_core_writel(core, BIGO_REG_STAT, bigo_stat);
complete(&core->frame_done);
diff --git a/bigo_io.h b/bigo_io.h
index 040680e..d291ee9 100644
--- a/bigo_io.h
+++ b/bigo_io.h
@@ -32,6 +32,7 @@
#define BIGO_STAT_AXI_WR_OVERFLOW BIT(10)
#define BIGO_STAT_AXI_RD_PENDING BIT(19)
#define BIGO_STAT_AXI_WR_PENDING BIT(20)
+#define BIGO_STAT_CODING_MODE GENMASK(22, 21)
#define BIG_STAT_AXI_OVERFLOW_ID GENMASK(30, 23)
#define BIGO_STAT_IRQMASK GENMASK(6, 2)