From patchwork Wed Apr 6 02:25:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8757561 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 BAE959F336 for ; Wed, 6 Apr 2016 02:31:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC897202A1 for ; Wed, 6 Apr 2016 02:31:03 +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 3DE1220295 for ; Wed, 6 Apr 2016 02:31:03 +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 1andDR-0007xZ-3N; Wed, 06 Apr 2016 02:29:09 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1andCs-0007jH-Ru for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2016 02:28:35 +0000 Received: by mail-pa0-x230.google.com with SMTP id bx7so6606250pad.3 for ; Tue, 05 Apr 2016 19:28:14 -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=Q1qIVD1jby7jv0fuP1HoodECkVPZ1WcRpeQ6DHp4EAA=; b=L8IWiZuYhj42WVJTySSHEcOHiFjXZUKJBeoxQbN2JLnbcnm9dG2Kwb3TO1tW8svAuu A3vipRFiaUgcoAtpSpRp3Wuiwop5Kd2y47L5IcrdoeDRQpIk8TCVpnEYKQ8cR8Tvd4eP lpqO4311M7mMZNWalvroXt3jqH5dtZ9Y33BpSLbmjqkCkMrC0D3bn6Mm/786FEKGCfl8 q/pSyEpJP1TtT1L90shFgvMnuUxKrFc9a/RxED03IkIELGwLfTXEks5Tbc9zkKxcOTGI cnxFs5zEVw8S25b3GAxNiU2mF+okAIXgXwxwpxIUNbANjv5D0oKEM3cuU7n72b/8aOGQ h7kg== 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=Q1qIVD1jby7jv0fuP1HoodECkVPZ1WcRpeQ6DHp4EAA=; b=hoduzQ9+khFtiiXBqRw9A2+eXHJuP04oYMcHB7KuUjsAqq+vhMOqGlsi5sNTfMnMoM jCw3+f4K+2Qq8qqp6UndZHBThqPKOmbICz2hB60krwBrwYEkIfRgLfA0v9BonPpcwXzI dT6+kj00IDhsOcVBPHkory1AE5IS61Mol//jXtLgTVhM645agjYfe/M5CBqGv+gVVgLu rSLZzwwO/fmtIdhXBZr8vTvPRn154ifbJ5MztThJiktK+d3gSZm5qFJ2pxOa5DWpNNWi 6CIkpsy4axfMqTKj2bHJTVuFszh9vzbXqs3KYuiYgFwQ+O1DqIiVtRnCjBfhUs4PLEek wGPw== X-Gm-Message-State: AD7BkJKUNvbdJzh+Ug2SsJ8T7x3tDtKxmr5XRsOi5iH6WMBhl6pHyqWLdX3vYEzKeKgvtQ== X-Received: by 10.66.243.35 with SMTP id wv3mr66970147pac.93.1459909693760; Tue, 05 Apr 2016 19:28:13 -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.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 19:28:13 -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 03/16] net: fec: return IRQ_HANDLED if fec_ptp_check_pps_event handled it Date: Tue, 5 Apr 2016 19:25:49 -0700 Message-Id: <1459909562-22865-4-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_192835_020854_3755F9DA X-CRM114-Status: GOOD ( 11.40 ) 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 fec_ptp_check_pps_event will return 1 if FEC_T_TF_MASK caused an interrupt. Don't return IRQ_NONE in this case. Signed-off-by: Troy Kisky Acked-by: Fugang Duan --- v3: New patch, came from feedback from another patch. --- 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 a011719..7993040 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1579,8 +1579,8 @@ fec_enet_interrupt(int irq, void *dev_id) } if (fep->ptp_clock) - fec_ptp_check_pps_event(fep); - + if (fec_ptp_check_pps_event(fep)) + ret = IRQ_HANDLED; return ret; }