Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp731932pxf; Wed, 24 Mar 2021 14:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw2eYPu1rkKiDT+DVIR6HAlOSlZu+s3G4rDRpXEOWIamoB2gzplAvqHNTy0mlq3L36vOn5 X-Received: by 2002:a17:906:489:: with SMTP id f9mr5794287eja.428.1616622233488; Wed, 24 Mar 2021 14:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616622233; cv=none; d=google.com; s=arc-20160816; b=YHBvfx5S3MFgJ3MN0kF18veWcwhYqNP8L2pea8N8U6GkFKowxuHnIa/m0EWsck/Mjf YS4g9qJsAGf4OG0eabfW7DrKks1PpcU+I0fruoPIfOeMGpiRN+iy4SYJqbAX0kVg2RNA iTzWXgfwd7n5xiXHbjczx7LSwUxRuJP5ariju0iZqaiIe7WOWIRUi39kv9BD46YJupn7 hI4ev8w/ORzZtjBJLSEX3C06OmInY0TlnauMqE8+NWnrZLM3W9A1R3V2Ln9iPlmchxlt Rvrn77lUmS1ecTz/Ewr4+hwrk34LZLb9aGE0Gml5JXf4IhXpEOvep+z+/c09jWX1hYus HYXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=OjpD16SEHbWEPQmbV9P5NDctK6JffTrG6UyzgQM3Gg0=; b=wY3mt4eV9RnuO23776OkVEgiStBVKAKr2b/dQ269g7VeiOjOkvIeILBMPFzln443B0 gAUJYeC3hD1KMznyarm9LKCeiiC1wst1EP7v78d4dvFY6oaAL6NQw1CSD4I9bMPXhcuo tNeRtXwSXlYgjBFb+cLGADe55c68l6U5g+Iso2cc8/Hdl3RHnMnYpT0UM+7aCLikTH2t DTl4UsqBEM8sDUFC0LafdMt9oBA3rS5PpwqMqyE9LWzLxDPH0JDY3SBae4KOTD8pqU1Y 64kzt+GxOugJTsOznSk81ZSgBPbzW/JuBcS2GzoMJ26tPOhjIItsyCtJoRXldPuvZGqq pmKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qWws5k45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si2652890edq.453.2021.03.24.14.43.29; Wed, 24 Mar 2021 14:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qWws5k45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233885AbhCXBAi (ORCPT + 99 others); Tue, 23 Mar 2021 21:00:38 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52450 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbhCXBAK (ORCPT ); Tue, 23 Mar 2021 21:00:10 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12O106E7054994; Tue, 23 Mar 2021 20:00:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1616547606; bh=OjpD16SEHbWEPQmbV9P5NDctK6JffTrG6UyzgQM3Gg0=; h=From:To:CC:Subject:Date; b=qWws5k45Q5qBYrl84RzNTnaNVD41FlnX5oDofDGCGiHyEHp/5ZtPQ2Ya+qXry7Deg +GHukmep+5u7a1kWGS7IDuonnF1U7zhKyeCj5Tc3PmjK5fklgamKOx+lkbVYseZJtU +FoEI308udNkFWeAnfnELg1tW3sC2eq6wVS09DEU= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12O106M4002688 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Mar 2021 20:00:06 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 23 Mar 2021 20:00:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 23 Mar 2021 20:00:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12O106Y6041688; Tue, 23 Mar 2021 20:00:06 -0500 From: To: Praneeth Bajjuri , "David S . Miller" , Jakub Kicinski CC: , , Geet Modi Subject: [PATCH] net: phy: dp83867: perform soft reset and retain established link Date: Tue, 23 Mar 2021 20:00:06 -0500 Message-ID: <20210324010006.32576-1-praneeth@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Praneeth Bajjuri Current logic is performing hard reset and causing the programmed registers to be wiped out. as per datasheet: https://www.ti.com/lit/ds/symlink/dp83867cr.pdf 8.6.26 Control Register (CTRL) do SW_RESTART to perform a reset not including the registers and is acceptable to do this if a link is already present. Signed-off-by: Praneeth Bajjuri Signed-off-by: Geet Modi --- 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 9bd9a5c0b1db..29ab49e894db 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -826,7 +826,7 @@ static int dp83867_phy_reset(struct phy_device *phydev) { int err; - err = phy_write(phydev, DP83867_CTRL, DP83867_SW_RESET); + err = phy_write(phydev, DP83867_CTRL, DP83867_SW_RESTART); if (err < 0) return err; -- 2.17.1