Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp737682pxj; Fri, 11 Jun 2021 10:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypPA+5y1MosPah6i1Qxi5RVAKE9YS1N9GnygtBFd15DrKjSQ6CEEBg7hYLyPkXk3OsQ8EV X-Received: by 2002:a17:906:b4b:: with SMTP id v11mr4610520ejg.359.1623431394092; Fri, 11 Jun 2021 10:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623431394; cv=none; d=google.com; s=arc-20160816; b=kfC2PngO19x6UzWJ/uoSqZzIxji/HvqnFYZvtVIHwEOwfH3eLuy0K5PvTeIHTOPIzB Yn9d0QHG9behQJZMAIoA74dlPXVbN50S+/QVl48ODA/0rnwhizL7LGQfC06to9iXV6p5 5XQQW9xl/GUECIhFyUQHpm/o1tZ1NuE4ZpQN6H2myvh/sm+YgBS5NhO+dGzcoL1WHZUL Mj3l6nxfkSQoMNc3MPrR6DofdFPZlk+QsvNCOZdYLSwEKi/xZ8Wxl50lky5h3euTM74w rWGGcwRXKRsGEKNpLjDvk9+0eKIHx017+OhbHGMSaUFQoWll45JiMTE6AZOPNXKrxNt6 52nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=l99g2k9vyL7sWPEL1tJV5egVhHg7xB19/k7tlJBHCis=; b=Wc0nvcxerA+AihKftCYUpLkgPNr8+Wa5TdBj2rJtrHYEF1OIc2SmOOSNBRu/G1yZU/ ul79jMwY88KtBYvsLjcooUGspqj5n/OjoygvXhuCvkmVWzMf2tjQ5BzUlroolFno/JCX ogcswZP4fSNmDUVhgcj7RFwp+bmdalFC8LxpfMCuO+AiTQQVu3+N/uEElqTQiwiLCv42 0Yv2Klk83nfnQGM1JSv95ON8WbypVJLeF4Z9aRjBv2vhxXNr/xGjGx3XosxiG0aFGlK6 YmWH0QWHh0Iyk2CQdphtSKdIPmHF34xleJ9I69MDG0PK+AYXw2m0RNHOxR8WqXFFwNK6 cm3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="nF/qVd3M"; 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 f8si5286455edr.154.2021.06.11.10.09.20; Fri, 11 Jun 2021 10:09:54 -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="nF/qVd3M"; 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 S231310AbhFKRHs (ORCPT + 99 others); Fri, 11 Jun 2021 13:07:48 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40392 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbhFKRHs (ORCPT ); Fri, 11 Jun 2021 13:07:48 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 15BH5gD6044939; Fri, 11 Jun 2021 12:05:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623431142; bh=l99g2k9vyL7sWPEL1tJV5egVhHg7xB19/k7tlJBHCis=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=nF/qVd3Mj/m9MRbNFgfFN9tKi0ajkH8wJwVu1jPxzTEyJggL/qZlEE9e8N7giuRJB RWKd0Urwl3U9A2suvzRZCDzcOVykd3lkpvSq6x4RCr6dAwm+GI17lTnUfDy2KD8W3S IJ6S0OLC/Gxipz1hGR2TMi4O0EVX7wGeL1j1ANfE= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 15BH5gg7018538 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jun 2021 12:05:42 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 11 Jun 2021 12:05:42 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE114.ent.ti.com (157.170.170.25) 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; Fri, 11 Jun 2021 12:05:42 -0500 Received: from [10.247.25.23] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 15BH5fpX073943; Fri, 11 Jun 2021 12:05:42 -0500 Subject: Re: [PATCH v2] net: phy: dp83867: perform soft reset and retain established link To: Johannes Pointner , Geet Modi , Andrew Lunn CC: , "David S . Miller" , Jakub Kicinski , References: <3494dcf6-14ca-be2b-dbf8-dda2e208b70b@ti.com> <20210610004342.4493-1-praneeth@ti.com> From: "Bajjuri, Praneeth" Message-ID: Date: Fri, 11 Jun 2021 12:05:41 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hannes, On 6/10/2021 12:53 AM, Johannes Pointner wrote: > Hello, > > On Thu, Jun 10, 2021 at 6:10 AM Andrew Lunn wrote: >> >> On Wed, Jun 09, 2021 at 07:43:42PM -0500, praneeth@ti.com wrote: >>> 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, >>> If performed when link is already present, >>> it will drop the link and trigger re-auto negotiation. >>> >>> Signed-off-by: Praneeth Bajjuri >>> Signed-off-by: Geet Modi >> >> Reviewed-by: Andrew Lunn >> >> Andrew > > I reported a few days ago an issue with the DP83822 which I think is > caused by a similar change. > https://lore.kernel.org/netdev/CAHvQdo2yzJC89K74c_CZFjPydDQ5i22w36XPR5tKVv_W8a2vcg@mail.gmail.com/ > In my case I can't get an link after this change, reverting it fixes > the problem for me. Are you saying that instead of reset if sw_restart is done as per this patch, there is no issue? > > Hannes >