From patchwork Tue Dec 6 12:48:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: sjur.brandeland@stericsson.com X-Patchwork-Id: 129670 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id F144C1007D6 for ; Tue, 6 Dec 2011 23:49:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933178Ab1LFMtf (ORCPT ); Tue, 6 Dec 2011 07:49:35 -0500 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:43147 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933120Ab1LFMte (ORCPT ); Tue, 6 Dec 2011 07:49:34 -0500 Received: by lagp5 with SMTP id p5so1549837lag.19 for ; Tue, 06 Dec 2011 04:49:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=0OzuRUoF2MGgq6Zo5X9LnJafHW6/qC+XlJJ4cn3lzho=; b=sNDLbwQhRSPdtoWeaSPxUaGVuuBYsI5I9M1Q36Y4p53m6SS86WxPgRoMZlaT6kePlC bBcCSavA86ln08U4tWqpJMRtoxFmgwRo9thZGWJasKcBVAv8aj90OrNp7rqVw9dL+HxK dOvI1KCgyaGcmDn7l6F+CH6LYGu7Eji3m5bIM= Received: by 10.152.130.71 with SMTP id oc7mr8794675lab.25.1323175772804; Tue, 06 Dec 2011 04:49:32 -0800 (PST) Received: from localhost.localdomain ([212.4.57.94]) by mx.google.com with ESMTPS id pc8sm20915937lab.8.2011.12.06.04.49.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 04:49:31 -0800 (PST) From: =?UTF-8?q?Sjur=20Br=C3=A6ndeland?= To: netdev@vger.kernel.org, David Miller Cc: Christian Auby , =?UTF-8?q?Sjur=20Br=C3=A6ndeland?= Subject: [PATCH net-next 1/4] caif-hsi: Remove wake line modification when flushing FIFO Date: Tue, 6 Dec 2011 13:48:57 +0100 Message-Id: <1323175740-1952-1-git-send-email-sjur.brandeland@stericsson.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Christian Auby 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 --- 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; }