From patchwork Thu Feb 25 00:36:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8415451 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 65FF99F372 for ; Thu, 25 Feb 2016 00:42:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70E7D20274 for ; Thu, 25 Feb 2016 00:42:32 +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 A18312026F for ; Thu, 25 Feb 2016 00:42:31 +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 1aYjzC-00087g-9L; Thu, 25 Feb 2016 00:40:54 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aYjyq-0007zL-Ro for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2016 00:40:33 +0000 Received: by mail-pa0-x232.google.com with SMTP id fy10so21759898pac.1 for ; Wed, 24 Feb 2016 16:40:12 -0800 (PST) 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=RSjAeXWr2oFu1WC62U28D8aNKjGBVlqMpTuNuY+zndY=; b=i/S6TEIJclh82wqTHvPJO1hfEk1iVhE7TCOmZFIhyLdCaF4NvkkidKGuV+HRfVHzJD 6Ume7ehHIfL+IoJuDRo+VPi+SDWFxPHa5P2mNZqvZppzSH+Q3k6mw/ovdhCHJPreKu8g BTpO0ty4r4kFQTryYPyIPAr1SWi1AtG57eAEXYCakhERszfXY6jE2HP+LNHX/C6zPDQq dM16ORXBrI1hZkuLYEe2mCYUddYmZfpwD+tNG4OeUbIEqXmgZXPmDoqJNKnm0fYo/LkO LDvuk2d2kQqfXzaLFqS/FnFBsTJNtQPzzZBuS6Q0GiUIx+1E+43YQZWHQfMnxLV1SPtX sYQA== 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=RSjAeXWr2oFu1WC62U28D8aNKjGBVlqMpTuNuY+zndY=; b=GzmJSNZiNa/vQ937vyVTQgdyrYtjZZsVT3TMqJKiGM9k+rL3aENRwUyuAO3h32wEuE zGvcRj0w2vexVwKwzJAeIVbXB7Tl/maMo0B0HP6ZcmE1IlnFr8vvWaXOZJdvWMbV5jDT E//4aj7kWu58t1i7XU14OrtZTq2iARkp+CwmzJtZWpB1HA7jPjA41V6G3YLaeG4PEowg 0AxNIMJnmWpp3NMnm8LHvqFZ1YsgQb9jumFr2eJMyJ+2nZ+9cbc2IQSd+EVrf3G3bglO vWCy2dWtAFG8haKg5oh0eEP03qrZ3kjSXT9boe7NIb/JvVZ9oTwAU6l/yoKbHWKdV9Zg 81KQ== X-Gm-Message-State: AG10YORXJKzdhaQ/gFrRDSlsWUXTf8+15dXNuZFZVd+bKqFIWw+dpkmUQewFcc46LmLkXQ== X-Received: by 10.66.55.102 with SMTP id r6mr58297359pap.67.1456360812289; Wed, 24 Feb 2016 16:40:12 -0800 (PST) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id 79sm7561982pfr.22.2016.02.24.16.40.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Feb 2016 16:40:11 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next V2 01/16] net: fec: only check queue 0 if RXF_0/TXF_0 interrupt is set Date: Wed, 24 Feb 2016 17:36:44 -0700 Message-Id: <1456360619-24390-2-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456360619-24390-1-git-send-email-troy.kisky@boundarydevices.com> References: <1456360619-24390-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160224_164032_934981_15C7E7C6 X-CRM114-Status: GOOD ( 10.55 ) 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: fabio.estevam@freescale.com, andrew@lunn.ch, stillcompiling@gmail.com, linux@arm.linux.org.uk, arnd@arndb.de, sergei.shtylyov@cogentembedded.com, Troy Kisky , laci@boundarydevices.com, johannes@sipsolutions.net, l.stach@pengutronix.de, shawnguo@kernel.org, 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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 --- 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 bad0ba2..dbac975 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);