Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1249353imw; Tue, 5 Jul 2022 06:25:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/8ElKkx6b6lYCwZ53UaA+R8TxXWQoNMvAVkD6MD428wSjMwC4OWy7EQ7T+jDxo9mWJ/4d X-Received: by 2002:a17:903:120f:b0:15f:99f:9597 with SMTP id l15-20020a170903120f00b0015f099f9597mr41941078plh.45.1657027518115; Tue, 05 Jul 2022 06:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027518; cv=none; d=google.com; s=arc-20160816; b=neXmdG2V+m3ZCxvaDKgzM2tWRsASfGshEbn7WAWvztb3HsDPGjBQBU/TAHwSj33P7Y i1NOrI3kfpwWqzvLwmMTwvdFN2GUyuFZxCgd5q6TANwQjXDlfM4qDIZVM2LeMwfhgjIb 25TU0GaSr+q/O7xDP6PE8JqJyE1ltIjpAFTDvCtD9AVV9nOJjJ+Q8fyB9j/jPSKrcOja 7vAXKLLuCrAImt4a7qJSizT980TKH/hcG3DFKSxMiR0XdQGRvQjx7kZIvISv9VCEIfw8 tiMY9liZkYTB0Ij6PPXN31auyCw8zgcr7WAWMCH4wBOj/8MDOMUzlhZvoD2wXccj98AS FrZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7uSyHgoHNAL6YYBetL9VpEGEmmNnJJykGc3m2zXixA0=; b=zeLtkiRO4JK3mi6vBWz8b/H6UJV/uwnTV+DpLAYQpycTqoc92+ya7ig6DDmm/5MVHt Lp21zaB40OCWTZwTRZDFzAPMGvPpzwzYFk/pz9jWvp76KvcicQEl5InWznRgPlhEpvZ+ dY8OncttQ0G2+3A0yO6DWkK8S9M06qs1r1vZKLmZ6X7mL0tyq6QmTm0sJt8FkuWR/fs1 R37lY8So02bEnN4KaaK0xx+LXJt/p8yZtFIvm5zcOflSaRm18xuYZMZhEOSiPJPXXkfB j0tx3XRHyj57ZPlsfCyBsTBLYzVqqR6uyLWFNj7rduYMJe/r9pKl8c0DVRfQBXZYQYGI xGiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=npi5cOCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12-20020a63e10c000000b00403fbc9167csi43200456pgh.305.2022.07.05.06.25.04; Tue, 05 Jul 2022 06:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=npi5cOCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236544AbiGEMVQ (ORCPT + 99 others); Tue, 5 Jul 2022 08:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235116AbiGEMNj (ORCPT ); Tue, 5 Jul 2022 08:13:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6E118B2B; Tue, 5 Jul 2022 05:11:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C6CD1B817CC; Tue, 5 Jul 2022 12:11:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2043DC341C7; Tue, 5 Jul 2022 12:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023069; bh=0R3xF/u6QllQD4opIKzBhCiHP/mcSqA9/m+EQC51hyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=npi5cOCFHUesxtYQQSlZkEkQEhEReQSfv516crht2nwKOHByj7y81pZ7WDMiC5+Ut PWD2B4Yh2zNovaDXG/6msLqZ0sIbxq/zVqvCvZC82P5oiqyOf9vVzu2T24OIzgS0cN CgWUHe5DTnWhPS4sKRvEXZt5xdTM9wOc9Tuke5jk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Enguerrand de Ribaucourt , Andrew Lunn , Jakub Kicinski Subject: [PATCH 5.15 26/98] net: dp83822: disable rx error interrupt Date: Tue, 5 Jul 2022 13:57:44 +0200 Message-Id: <20220705115618.335739835@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enguerrand de Ribaucourt commit 0e597e2affb90d6ea48df6890d882924acf71e19 upstream. Some RX errors, notably when disconnecting the cable, increase the RCSR register. Once half full (0x7fff), an interrupt flood is generated. I measured ~3k/s interrupts even after the RX errors transfer was stopped. Since we don't read and clear the RCSR register, we should disable this interrupt. Fixes: 87461f7a58ab ("net: phy: DP83822 initial driver submission") Signed-off-by: Enguerrand de Ribaucourt Reviewed-by: Andrew Lunn Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/dp83822.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -228,8 +228,7 @@ static int dp83822_config_intr(struct ph if (misr_status < 0) return misr_status; - misr_status |= (DP83822_RX_ERR_HF_INT_EN | - DP83822_LINK_STAT_INT_EN | + misr_status |= (DP83822_LINK_STAT_INT_EN | DP83822_ENERGY_DET_INT_EN | DP83822_LINK_QUAL_INT_EN);