Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3516180pxp; Mon, 14 Mar 2022 23:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0SmHA6Id/xZPLBGYRSDNyF4jnCHQqAvllWkltd6AFdIVU5pJ4y2lfmiVv8k2FvYY60IHj X-Received: by 2002:a05:6402:1907:b0:418:d2a8:a7f3 with SMTP id e7-20020a056402190700b00418d2a8a7f3mr121130edz.245.1647324907672; Mon, 14 Mar 2022 23:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647324907; cv=none; d=google.com; s=arc-20160816; b=MUaF9x2h1FVRTtyfX4JqcXnPNWbsBJ6gd07WHVIWcdG66vcX1NVIxGibNujz9qaJm+ eaR5X7FZ9LPjLL5sL2WNEbTBBqNFynF/i02C6xx67u+Y/YZEm6Hd5g9iGqrJCPzchahk KGkELXLGAkMeG/i1HQ2TnRvUN5fWJ6RBcJcIcrAcVD20BvP8bRK4R5z4C+LLqnfOk1Op Y+PFzECIBqkCNbzux4GhHyXwVEeYgU9kSKOyqdewfUYG9F//q1zpomltqNjL5W+75/rO AuKgrGhxGI/6tfwU0zN2qanXn6mT898iwTHy7qfUdQC5Yr1A3+aNpsEIaeB0JPwPELvl sk/w== 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=dzvu6wF0DqjMvPP/4TN14IkAfVbygw+z3ZxGKHfkYe8=; b=s3/a3Q0AbT2T3opek6SZQ8767TzcqRZo8hJo/iJmCkseuNnza71LA9z9dk9kY6fU86 ve+E+7bMfdzUXp67xIrBg3dOQLinHyYbsp4DLDZbI/iI9ntCblLz4i18fJ30CNkoJBIh 2RM+rUKq2jzobNGvFbGMvFEmDj8C8GN07Zpaq65mnQgS8x4Gk6Tt/zn17aWZ4VQMwbBz jCAPj8rMJRneeGsYTToud1rbtJ5oXfRdiGJh+dno0vCHXyeTKqvqvM3R9QS+q0XeIkh2 DOM7nIUOh4Dq3vlxrDL8gkvGUFb1FER+P60hEp57OB/A/7d4K46YqwNMIe02Rk1WWq5d WMig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xpggnBQd; 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 x20-20020a1709060a5400b006d03adbd0b3si10117075ejf.424.2022.03.14.23.14.42; Mon, 14 Mar 2022 23:15:07 -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=xpggnBQd; 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 S240956AbiCNMMg (ORCPT + 99 others); Mon, 14 Mar 2022 08:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242214AbiCNMJo (ORCPT ); Mon, 14 Mar 2022 08:09:44 -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 9EC6C50B01; Mon, 14 Mar 2022 05:06:53 -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 9DB12B80CDE; Mon, 14 Mar 2022 12:06:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6AF0C340E9; Mon, 14 Mar 2022 12:06:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647259610; bh=GZLKigzq4Gitbm9huNUFHN9WWFAWoxqfadSve0/aCJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xpggnBQdaBem9LTX0D7iJGBe63TIOyp8egk48sYebSvKkjfIql5Ya53Wqbabl8cep Z+bK2SCjCIlUEWlklFsa9HizG2xo9qfd2gTo0T337uu4pXLaU1/5BfypDyOgrfiymp /dlMdtYeg0xT3O+Y88kZR3gvH/9EckzKvGcR0OGQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Andrew Lunn , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 048/110] net: phy: DP83822: clear MISR2 register to disable interrupts Date: Mon, 14 Mar 2022 12:53:50 +0100 Message-Id: <20220314112744.377863951@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112743.029192918@linuxfoundation.org> References: <20220314112743.029192918@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=-8.6 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: Clément Léger [ Upstream commit 37c9d66c95564c85a001d8a035354f0220a1e1c3 ] MISR1 was cleared twice but the original author intention was probably to clear MISR1 & MISR2 to completely disable interrupts. Fix it to clear MISR2. Fixes: 87461f7a58ab ("net: phy: DP83822 initial driver submission") Signed-off-by: Clément Léger Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Link: https://lore.kernel.org/r/20220309142228.761153-1-clement.leger@bootlin.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/phy/dp83822.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index 211b5476a6f5..ce17b2af3218 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -274,7 +274,7 @@ static int dp83822_config_intr(struct phy_device *phydev) if (err < 0) return err; - err = phy_write(phydev, MII_DP83822_MISR1, 0); + err = phy_write(phydev, MII_DP83822_MISR2, 0); if (err < 0) return err; -- 2.34.1