提交 1e226773 编写于 作者: C Christian Auby 提交者: David S. Miller

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: NSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 87a11578
...@@ -117,15 +117,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi) ...@@ -117,15 +117,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
dev_dbg(&cfhsi->ndev->dev, "%s.\n", dev_dbg(&cfhsi->ndev->dev, "%s.\n",
__func__); __func__);
ret = cfhsi->dev->cfhsi_wake_up(cfhsi->dev);
if (ret) {
dev_warn(&cfhsi->ndev->dev,
"%s: can't wake up HSI interface: %d.\n",
__func__, ret);
return ret;
}
do { do {
ret = cfhsi->dev->cfhsi_fifo_occupancy(cfhsi->dev, ret = cfhsi->dev->cfhsi_fifo_occupancy(cfhsi->dev,
&fifo_occupancy); &fifo_occupancy);
...@@ -168,8 +159,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi) ...@@ -168,8 +159,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
} }
} while (1); } while (1);
cfhsi->dev->cfhsi_wake_down(cfhsi->dev);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册