From patchwork Wed Apr 6 02:25:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8757541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5EDDB9F336 for ; Wed, 6 Apr 2016 02:30:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FA7D20295 for ; Wed, 6 Apr 2016 02:30:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B664F202F2 for ; Wed, 6 Apr 2016 02:30:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1andD0-0007mq-1Y; Wed, 06 Apr 2016 02:28:42 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1andCo-0007jC-L7 for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2016 02:28:31 +0000 Received: by mail-pa0-x233.google.com with SMTP id zm5so22816179pac.0 for ; Tue, 05 Apr 2016 19:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yMrZKJyWamRrAPSVvbnAh64wq1kX8ma6H7DKUKfZp9A=; b=AoTOazj4OMEHJgjHFu7jY+74M8XoNOX2GH/PFfKoUIVa5ram3CK1qNC6lj1YTCLiaR qKt2GwxiLqb3Js5r5NlAHagCkt4sjFIoF7XcmxUamF/5WxzxDLo5b6jZLwz7m0at87GW PiDxWBwFgI519I2cuQey5ho5AECxl4aLk7n6A1ZzMrypVDWMl4tS3Z00gTZc6VX14z+T HCoi1sPmvN6RKkviXjkgvUIHc89RIZSs/gsUHHbM9XhXU/sC2dxTpoRANPQfqKsFeeu3 5XDTW09y/M0HkFY2nQ6DB0VPWwbdhvIjH0a02f0qH5MFJHQcwX5tC8X4g57Fssiokotz K8tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yMrZKJyWamRrAPSVvbnAh64wq1kX8ma6H7DKUKfZp9A=; b=DS1kHNg4arXTxzA7uSIJG5z+xZPi3mvTgZaujz8BW65y5JTq07tNBSKTF08veSeyLY ZTSLdn1HiNeiL3Sd+dXS7RDf5vmVMIf3GFf9az77J7oG69LepgzWSowsgapGdLcjHUq3 DO4j809NTyr6KueIKSeswn7AbmvAyxIqlb8/myENOU5jepqw9chTVB1300l7j7WcelBO SxINd1nOtVSk59dJp7Nrd9RIZpZfFwrdqLFYGuqn0YTg2owQSn8oPKla3lX2R1drVwLc AXkJvjjTpiRuKgL4ECgQ4rhLSzB59JNqkiSHNbDeexYSFbkDqwnlKRdsuC7eora8e8ZI Vskg== X-Gm-Message-State: AD7BkJIdzWavV0Mh3xyOYSFE4FqtdAaaXDxaqAaTCnzDBili/K4dPo6jWOisiuAUEL3ruQ== X-Received: by 10.66.146.39 with SMTP id sz7mr67903569pab.76.1459909690388; Tue, 05 Apr 2016 19:28:10 -0700 (PDT) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id l14sm528682pfi.23.2016.04.05.19.28.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 19:28:09 -0700 (PDT) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, fugang.duan@nxp.com, lznuaa@gmail.com Subject: [PATCH net-next V3 01/16] net: fec: only check queue 0 if RXF_0/TXF_0 interrupt is set Date: Tue, 5 Apr 2016 19:25:47 -0700 Message-Id: <1459909562-22865-2-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459909562-22865-1-git-send-email-troy.kisky@boundarydevices.com> References: <1459909562-22865-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160405_192830_794491_3D415C73 X-CRM114-Status: GOOD ( 10.00 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, stillcompiling@gmail.com, arnd@arndb.de, sergei.shtylyov@cogentembedded.com, Troy Kisky , gerg@uclinux.org, fabio.estevam@nxp.com, johannes@sipsolutions.net, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Before queue 0 was always checked if any queue caused an interrupt. It is better to just mark queue 0 if queue 0 has caused an interrupt. Signed-off-by: Troy Kisky Acked-by: Fugang Duan --- v3: add Acked-by --- drivers/net/ethernet/freescale/fec_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 08243c2..a011719 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1534,14 +1534,14 @@ fec_enet_collect_events(struct fec_enet_private *fep, uint int_events) if (int_events == 0) return false; - if (int_events & FEC_ENET_RXF) + if (int_events & FEC_ENET_RXF_0) fep->work_rx |= (1 << 2); if (int_events & FEC_ENET_RXF_1) fep->work_rx |= (1 << 0); if (int_events & FEC_ENET_RXF_2) fep->work_rx |= (1 << 1); - if (int_events & FEC_ENET_TXF) + if (int_events & FEC_ENET_TXF_0) fep->work_tx |= (1 << 2); if (int_events & FEC_ENET_TXF_1) fep->work_tx |= (1 << 0);