netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 net-next 1/4] caif-hsi: Remove wake line modification when flushing FIFO
@ 2011-12-06 22:15 Sjur Brændeland
  2011-12-06 22:15 ` [PATCHv2 net-next 2/4] caif: Bad assert triggering false positive Sjur Brændeland
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sjur Brændeland @ 2011-12-06 22:15 UTC (permalink / raw)
  To: netdev, David Miller; +Cc: Christian Auby, Sjur Brændeland

From: Christian Auby <christian.auby@stericsson.com>

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>
---
 drivers/net/caif/caif_hsi.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/drivers/net/caif/caif_hsi.c b/drivers/net/caif/caif_hsi.c
index 0733525..a85b29e 100644
--- a/drivers/net/caif/caif_hsi.c
+++ b/drivers/net/caif/caif_hsi.c
@@ -117,15 +117,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
 	dev_dbg(&cfhsi->ndev->dev, "%s.\n",
 		__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 {
 		ret = cfhsi->dev->cfhsi_fifo_occupancy(cfhsi->dev,
 				&fifo_occupancy);
@@ -168,8 +159,6 @@ static int cfhsi_flush_fifo(struct cfhsi *cfhsi)
 		}
 	} while (1);
 
-	cfhsi->dev->cfhsi_wake_down(cfhsi->dev);
-
 	return ret;
 }
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-06 22:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 22:15 [PATCHv2 net-next 1/4] caif-hsi: Remove wake line modification when flushing FIFO Sjur Brændeland
2011-12-06 22:15 ` [PATCHv2 net-next 2/4] caif: Bad assert triggering false positive Sjur Brændeland
2011-12-06 22:22   ` David Miller
2011-12-06 22:15 ` [PATCHv2 net-next 3/4] caif-shm: Bugfixes for caif_shmcore.c Sjur Brændeland
2011-12-06 22:22   ` David Miller
2011-12-06 22:15 ` [PATCHv2 net-next 4/4] caif: Replace BUG_ON with WARN_ON Sjur Brændeland
2011-12-06 22:22   ` David Miller
2011-12-06 22:22 ` [PATCHv2 net-next 1/4] caif-hsi: Remove wake line modification when flushing FIFO David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).