Skip to content

Commit 1e22677

Browse files
Christian Aubydavem330
authored andcommitted
caif-hsi: Remove wake line modification when flushing FIFO
Raising wake before flushing FIFO and lowering it after caused a spike on AC wake that were sometimes detected and acted upon by the modem. Fixed this by remove wake line modification when flushing FIFO. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 87a1157 commit 1e22677

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎drivers/net/caif/caif_hsi.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
117117
dev_dbg(&cfhsi->ndev->dev, "%s.\n",
118118
__func__);
119119

120-
121-
ret = cfhsi->dev->cfhsi_wake_up(cfhsi->dev);
122-
if (ret) {
123-
dev_warn(&cfhsi->ndev->dev,
124-
"%s: can't wake up HSI interface: %d.\n",
125-
__func__, ret);
126-
return ret;
127-
}
128-
129120
do {
130121
ret = cfhsi->dev->cfhsi_fifo_occupancy(cfhsi->dev,
131122
&fifo_occupancy);
@@ -168,8 +159,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
168159
}
169160
} while (1);
170161

171-
cfhsi->dev->cfhsi_wake_down(cfhsi->dev);
172-
173162
return ret;
174163
}
175164

0 commit comments

Comments
 (0)