Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3042617pxp; Mon, 14 Mar 2022 09:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziJB6EroJQNCz9B7Y/6abCoLTUv50bzQ3OWS/Xw3L5LnYDcvQ8KglTofyNgcofrymow4sm X-Received: by 2002:a63:942:0:b0:380:6a04:f242 with SMTP id 63-20020a630942000000b003806a04f242mr21298192pgj.317.1647275996652; Mon, 14 Mar 2022 09:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647275996; cv=none; d=google.com; s=arc-20160816; b=BMY6f1txKKcH+/rezRKkCxD73mYmdtqnA+8dIdgtiLNyoo6h/FogtRQITpRmffj3FG kMm7TTD0jPL7SDZDGEI8VdAqOrjO3qSbBlr0MOaJ2AiT3ppxVPSop556u3I533Bt31w1 gIPxZEU8jU1y7/LHIHIMVnQgfoLyMQqRS/KsGxfjdityLmxW8R4BkzKIBJHOapXvzMse nLnnT+ILLGCBGUPQS22NoUEzKT/FbxUrdFw+R/rngILdIKCK649pQ2Q9QxGMI6SNYgt8 ss+XTVgXkhj+6N0ccXZ7SWWXFfVo4pJ8bpGQDi0b/DDe7Z866FJ3+0JvX5NWQerp8nda VN/g== 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=0SwvynU+hwr8F3kbI2b9HjIdCeDzAYo/fft1x85gRleA1WzmzILC4myAgHTzQ3Y1IN U4wNLh3zxLS/cKCI5fWwjNPF4dtT6T/0yWl2m9rol80RMtZOqXee3erKnxOEUTMn56Oz nz0/vXT+uE0Qk59UISrNYYAf/7KgyQGRq3Ux4wd/IAplLyCz5E9Vm+NBNns1GN7jHBD+ MJTqEB+Vhs7VAOzpXro623B9FlDY/KrvUwsAVeBjPPI1Xo9XAAE2HfFLAScpFXPJQ+4n uMgRHbPQp/8jLwcfeNZXsSj5y8kqCaB9vhbhSnJNANpQ6LE71JT3ckHrqJC1EcdI9omV Sa8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z06PiiFC; 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 ba11-20020a170902720b00b0015337d6b4d6si9271859plb.602.2022.03.14.09.39.43; Mon, 14 Mar 2022 09:39:56 -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=z06PiiFC; 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 S237821AbiCNM1T (ORCPT + 99 others); Mon, 14 Mar 2022 08:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242939AbiCNMTz (ORCPT ); Mon, 14 Mar 2022 08:19:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC0551E6F; Mon, 14 Mar 2022 05:15:04 -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 EFA2DB80DFC; Mon, 14 Mar 2022 12:14:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E00DC340E9; Mon, 14 Mar 2022 12:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647260097; bh=GZLKigzq4Gitbm9huNUFHN9WWFAWoxqfadSve0/aCJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z06PiiFC5LDhcQ/4gtzntKVFf7oIxloMMEQALqzFSUvhLjCWSKCqTJz+0ca3/xyxJ klK3Cp3S2quXI3OO7RAyJa6CBnDiK/QVLczo1C+6pwzmXUE2HD1sexq0DovkuBPLFH rVKTh9N4neBSJJcNtoSiVFIF/k0/y/6csxbFLPfE= 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.16 055/121] net: phy: DP83822: clear MISR2 register to disable interrupts Date: Mon, 14 Mar 2022 12:53:58 +0100 Message-Id: <20220314112745.662299975@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@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