Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6586105rwd; Mon, 19 Jun 2023 09:14:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76WWcYBMo8yqXi/FFadLSpEUMBbKvgd/qvixP7iKsAx9Zbn+HSHa/iwWA0lNYPthDrtfN6 X-Received: by 2002:a05:6a20:4289:b0:10f:7abd:fe5e with SMTP id o9-20020a056a20428900b0010f7abdfe5emr1102938pzj.40.1687191253680; Mon, 19 Jun 2023 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687191253; cv=none; d=google.com; s=arc-20160816; b=d3EymuWuNZjrnMcYzyStcSn0ikmA6QetWvbP2MSl/rYvCjVBBbKBIRznG2gUxrArsp 4RprtZhirW/REYm197XLXChKEoyyWNBi+S2ANfjQOmWDbNTcMWyd5Lt2MvtNKkP9t1T5 PvQfQ4mUQCAabX+BR1+YxUw1DWExRPPFpPVhP0lS1WpJiUU5B2HrOsBvHqE57wFoMicR IWZU/+ovuXq3a4W98IEUUhfAP9IMqWUhyIjCecp7XkH6gGY1JCKwkyRBWXVLVFeW6DB0 jn1zF29vpsPL84hI7p6jbyXBlvjYgzkK8jWlRbyeS4On0zMfTwyACjxV8hYvGiSGVCWE dnvQ== 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 :message-id:date:subject:cc:to:from; bh=SW+qifGgmFzUTUXCsTqkYEZ1SxJEsUBjK6lnpRtqZo8=; b=feYerNMVldH97mzWmoQlY/lunmh8jZYgFLa7wY8nNOtwkFWQ9jg1+aBbLLHxsvnfwX CbxutUw63WCHakJqL2te59VICCxjpVARm7+U98mdZzDjE53iU6hkXgB6Dl6/4z0Uz8Re P1/JPdrHzyowtViPPogjXG6XCLIJK9yDvJSnv483B7mIxlMkbN0QBHb5u3qOY+hkW9Iy RxQ8pbVGtN+g9fJ2xmmT2ynarYnd28vy4NPNjH4Gj4Qjtd7L7QC75eGpPweaRjk9T8ES 8vlbhwB+rw6xOOx3/FshPFYAXIjWNvxL0qaBxIpM0GMnw4qdk8JuqicKqOJGKWIxm0ew vECQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 188-20020a6219c5000000b006686f86a10bsi4103199pfz.3.2023.06.19.09.13.59; Mon, 19 Jun 2023 09:14:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231801AbjFSPox (ORCPT + 99 others); Mon, 19 Jun 2023 11:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjFSPop (ORCPT ); Mon, 19 Jun 2023 11:44:45 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42FA137; Mon, 19 Jun 2023 08:44:41 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 7844B206F2; Mon, 19 Jun 2023 17:44:39 +0200 (CEST) From: Francesco Dolcini To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Cc: Francesco Dolcini , Geet Modi , Praneeth Bajjuri , netdev@vger.kernel.org Subject: [PATCH net v1] Revert "net: phy: dp83867: perform soft reset and retain established link" Date: Mon, 19 Jun 2023 17:44:35 +0200 Message-Id: <20230619154435.355485-1-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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: Francesco Dolcini This reverts commit da9ef50f545f86ffe6ff786174d26500c4db737a. This fixes a regression in which the link would come up, but no communication was possible. The reverted commit was also removing a comment about DP83867_PHYCR_FORCE_LINK_GOOD, this is not added back in this commits since it seems that this is unrelated to the original code change. Cc: Praneeth Bajjuri Closes: https://lore.kernel.org/all/ZGuDJos8D7N0J6Z2@francesco-nb.int.toradex.com/ Fixes: da9ef50f545f ("net: phy: dp83867: perform soft reset and retain established link") Signed-off-by: Francesco Dolcini --- drivers/net/phy/dp83867.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index 76f5a2402fb0..e397e7d642d9 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -936,7 +936,7 @@ static int dp83867_phy_reset(struct phy_device *phydev) { int err; - err = phy_write(phydev, DP83867_CTRL, DP83867_SW_RESTART); + err = phy_write(phydev, DP83867_CTRL, DP83867_SW_RESET); if (err < 0) return err; -- 2.25.1