Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp945356pxp; Wed, 16 Mar 2022 22:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwZj2qmMhamUveYtmXBSFPWeImP2DrUKQMgCyrrlSrrteIGfDlZvYNwIkkx8BS6d0logcx X-Received: by 2002:a05:6a00:2481:b0:4f6:b71f:3330 with SMTP id c1-20020a056a00248100b004f6b71f3330mr3242268pfv.47.1647493924153; Wed, 16 Mar 2022 22:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647493924; cv=none; d=google.com; s=arc-20160816; b=IWsDKGAVfFRx0DwyTnLkzd3qubxGkEBQLosbrpzh3d3bB1B5ZhMwiW+6Pyi19oUBve fZ2oimRYi1w6oWLFZ9+cNgUR5aZpAlLYUOh5u4qcy9LvU2zqIrUPkFniyD2Y4LEbanWf kAj4uFfUAuQJS/gy+ImXLKfjDaaJnZ/v9AGr4JigQuAVeqXVmz/P15YjPU5B5FQf6aH4 +iK26+okjqy2NpK3w6kodlkN84/Jbfm4Vi8aNsa0m4CiSQCfuilHqH+Fe7YH9OUBa4Z7 r8WyFuJ3oznOzyZffJqlxDiPZZ1xPeV0wtCUhprsQ5Xw/miYNlA9+jxeOQAb8lgAUNQA 63Ew== 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=7arMuyyin9ypveHS0DWC4n9s8GU4LYUE8ZYVbnOXcgU=; b=mPZOJqQ1CrDAZ9MAiq1Mv8yBaJgP/U0CmBalZu28oBVkUoXwv57x5tfgm0TeYqIURO WVYT2uPQ0nZD97faDSNqtF5uijDDYPDeRBoyUD28P9SQxeXOzm+o7638851TPDql6Xny imlc9B2VntdiSKFFTaGkbqN7DBpmEC2E2iZWldjMQpSHvLz2d+E/mNKc0KEey/6LXgOx NjksiplolKn3ms5jY8kebqQCKVi3Anii2iqvCQ2GoXLme655iC7XyjCwxyvIGLFR0Ui/ pK2IIONMjGGmayxJ4o0Y2VOsBYu8CXywM0cX+KVu7HLI8jqfQQ9e2Oopsx4V6+AMxFB0 3x+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mR9yM64A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bh9-20020a056a02020900b003816043ef4csi1021836pgb.321.2022.03.16.22.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mR9yM64A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6ED61D8334; Wed, 16 Mar 2022 21:22:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239471AbiCNLkb (ORCPT + 99 others); Mon, 14 Mar 2022 07:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239173AbiCNLjv (ORCPT ); Mon, 14 Mar 2022 07:39:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F88433B1; Mon, 14 Mar 2022 04:38:00 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9018461170; Mon, 14 Mar 2022 11:37:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 758B9C340E9; Mon, 14 Mar 2022 11:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647257879; bh=VcjH5Jsn3+AQ+dvXHRGMTxyE7MHAt3tEWwxqsk/f6FQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mR9yM64AYSZVo5wfaEAYzmrDALlRR531s5m3SqfHiLl8gDAbMIcQ8TflJHa1YHtkm 2H6Bt3vMhjvhEkTvUsTTGke3PvGPEmGHaqF+SuBRkofy0LbL2qg6Ad4ldlOD9MpB8d cAQvyntSH4TgJJLbqnt0AKZu+11xbpml9DkWmC+w= 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 4.19 11/30] net: phy: DP83822: clear MISR2 register to disable interrupts Date: Mon, 14 Mar 2022 12:34:29 +0100 Message-Id: <20220314112732.107830341@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112731.785042288@linuxfoundation.org> References: <20220314112731.785042288@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=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 6e8a2a4f3a6e..9e2ed98f7df2 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -244,7 +244,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