From patchwork Mon Nov 12 21:58:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Mikityanskiy X-Patchwork-Id: 1731251 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 82614DFE80 for ; Mon, 12 Nov 2012 21:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753683Ab2KLV65 (ORCPT ); Mon, 12 Nov 2012 16:58:57 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:49658 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753373Ab2KLV6z (ORCPT ); Mon, 12 Nov 2012 16:58:55 -0500 Received: by mail-ee0-f46.google.com with SMTP id b15so3644080eek.19 for ; Mon, 12 Nov 2012 13:58:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=yi2Yy38PvHviFpRqqoE3bMuZ0uODurUJID3kBJ99IlY=; b=SgCTttpsA5drWq+jFV1di/c0QRPD2gW5QtIoElau8cDEFy5LCHw+ayO1gf9peXzGnU qFLZWTBxOEAOwLG/j94Zi3kMELHnt7ddGQVNEJwbXKUFOEIEcPmnIgnEsvA00l0oWbHY h0gcgNoaym8z2IbgDf4wZg1xS16F3yY8r9zFPSot9EYerz/0zi95wCpij4SPl076tGhm MvF8q/Q9sgWC3qqYNdobycljSS1RqFPsBsSFmf/pynq5AwgtFjLyWyTo55rddx4l5MJj hljsObH87UExZlnfqr0WLLl0xSyPpHxrQZ4JjYccF79Uw5Jl1g3UxDjw4SE0q0LqoCud uBVQ== Received: by 10.14.173.71 with SMTP id u47mr67126722eel.20.1352757535184; Mon, 12 Nov 2012 13:58:55 -0800 (PST) Received: from laptop.olymp.linuxd.org (63-85-92-178.pool.ukrtel.net. [178.92.85.63]) by mx.google.com with ESMTPS id f3sm18449256eeo.13.2012.11.12.13.58.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 13:58:54 -0800 (PST) From: Maxim Mikityanskiy To: greg@kroah.com, linux-wireless@vger.kernel.org Cc: Maxim Mikityanskiy Subject: [PATCH 04/17] Fixed bugs in interrupt handler Date: Mon, 12 Nov 2012 23:58:18 +0200 Message-Id: <1352757511-26957-5-git-send-email-maxtram95@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352757511-26957-1-git-send-email-maxtram95@gmail.com> References: <1352757511-26957-1-git-send-email-maxtram95@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Maxim Mikityanskiy --- r8180_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r8180_core.c b/r8180_core.c index 53a645b..d903786 100644 --- a/r8180_core.c +++ b/r8180_core.c @@ -3787,7 +3787,7 @@ irqreturn_t rtl8180_interrupt(int irq, void *netdev, struct pt_regs *regs) priv->stats.txbkperr++; priv->ieee80211->stats.tx_errors++; rtl8180_tx_isr(dev, BK_PRIORITY, 1); - rtl8180_try_wake_queue(dev, BE_PRIORITY); + rtl8180_try_wake_queue(dev, BK_PRIORITY); } if (inta & ISR_TBEDER) { /* corresponding to BE_PRIORITY */ @@ -3841,6 +3841,7 @@ irqreturn_t rtl8180_interrupt(int irq, void *netdev, struct pt_regs *regs) priv->link_detect.NumTxOkInPeriod++; /* YJ,add,080828 */ priv->stats.txnpokint++; rtl8180_tx_isr(dev, NORM_PRIORITY, 0); + rtl8180_try_wake_queue(dev, NORM_PRIORITY); } if (inta & ISR_TLPDOK) { /* Low priority tx ok */