Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0835CC433E7 for ; Thu, 3 Sep 2020 01:39:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E25C620665 for ; Thu, 3 Sep 2020 01:39:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbgICBjt (ORCPT ); Wed, 2 Sep 2020 21:39:49 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39324 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbgICBjs (ORCPT ); Wed, 2 Sep 2020 21:39:48 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kDeE0-00CxyU-8f; Thu, 03 Sep 2020 03:39:40 +0200 Date: Thu, 3 Sep 2020 03:39:40 +0200 From: Andrew Lunn To: Russell King Cc: Alexandre Belloni , Antoine Tenart , Richard Cochran , Matteo Croce , Andre Przywara , Sven Auhagen , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Subject: Re: [PATCH net-next 6/7] net: mvpp2: ptp: add interrupt handling Message-ID: <20200903013940.GA3090178@lunn.ch> References: <20200902161007.GN1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > +static void mvpp2_isr_handle_ptp_queue(struct mvpp2_port *port, int nq) > +{ > + void __iomem *ptp_q; > + u32 r0, r1, r2; > + > + ptp_q = port->priv->iface_base + MVPP22_PTP_BASE(port->gop_id); > + if (nq) > + ptp_q += MVPP22_PTP_TX_Q1_R0 - MVPP22_PTP_TX_Q0_R0; > + > + while (1) { > + r0 = readl_relaxed(ptp_q + MVPP22_PTP_TX_Q0_R0) & 0xffff; > + if (!r0) > + break; > + > + r1 = readl_relaxed(ptp_q + MVPP22_PTP_TX_Q0_R1) & 0xffff; > + r2 = readl_relaxed(ptp_q + MVPP22_PTP_TX_Q0_R2) & 0xffff; > + } > +} Hi Russell That is a rather odd interrupt handler, basically throwing everything away. Maybe add a comment about what is going on? Reviewed-by: Andrew Lunn Andrew