From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93511C43334 for ; Thu, 23 Jun 2022 19:22:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbiFWTWc (ORCPT ); Thu, 23 Jun 2022 15:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiFWTWO (ORCPT ); Thu, 23 Jun 2022 15:22:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 526461134; Thu, 23 Jun 2022 11:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=qYgIdP7/GKFkoipDD7vfd5G91Qah2rhJh3hyubrotsQ=; b=nfz/g2B+cxsPsWc6G8CKNTiHyV XsY3rwYIMjPOdyCc+yOEuszvc1KNvYvOUPkGgqTBY+p8J8YoBjnSRsKiywDOjv3tF0EO4X2d9S4Kd tK3B57MBZSNLoKOC6liaJ8MwwEtomacD8nQ0ltxSSFEcw/BKZ+syBwasdZLAadI/KS9A=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o4RXs-007zfv-K5; Thu, 23 Jun 2022 20:27:12 +0200 Date: Thu, 23 Jun 2022 20:27:12 +0200 From: Andrew Lunn To: Enguerrand de Ribaucourt Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, hkallweit1@gmail.com Subject: Re: [PATCH v3 1/2] net: dp83822: disable false carrier interrupt Message-ID: References: <20220623134645.1858361-1-enguerrand.de-ribaucourt@savoirfairelinux.com> <20220623134645.1858361-2-enguerrand.de-ribaucourt@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220623134645.1858361-2-enguerrand.de-ribaucourt@savoirfairelinux.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 23, 2022 at 03:46:44PM +0200, Enguerrand de Ribaucourt wrote: > When unplugging an Ethernet cable, false carrier events were produced by > the PHY at a very high rate. Once the false carrier counter full, an > interrupt was triggered every few clock cycles until the cable was > replugged. This resulted in approximately 10k/s interrupts. > > Since the false carrier counter (FCSCR) is never used, we can safely > disable this interrupt. > > In addition to improving performance, this also solved MDIO read > timeouts I was randomly encountering with an i.MX8 fec MAC because of > the interrupt flood. The interrupt count and MDIO timeout fix were > tested on a v5.4.110 kernel. > > Signed-off-by: Enguerrand de Ribaucourt > Reviewed-by: Andrew Lunn > Fixes: 87461f7a58ab ("net: phy: DP83822 initial driver submission") For future reference, you should put these in the opposite order. Your Signed-off-by should come last. Fixes generally comes first. No need to resend for this patchset. Andrew