Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp198491pxj; Wed, 9 Jun 2021 21:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziyXYsOSIHDURabT1fCGskFhbXLbB8yjEF3OncOtN8JsrPvgnQD7VSp58pQist8PgnSfqU X-Received: by 2002:a05:6402:b5a:: with SMTP id bx26mr2579244edb.81.1623298251254; Wed, 09 Jun 2021 21:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623298251; cv=none; d=google.com; s=arc-20160816; b=jj+tP0zLEUIUUDM7rxcFRR25U25+ufIHyhKmI9X6ZbhAWGAjRwS2mMBsMSz3WeB2hI fYRPMJLXEP9Q1vQm8ChPUYmAE6v3bIWH186u9MjV5Ars+JxJZSZRelIk9OLSUnfqN0WP pE4Uvpy6yLgzJygd/+tIL35YfsoBl42XOCk+wSbzScWgwn3i9hd/lEUkLtYBdwR6LLYy slwLaTMwQxLrw//EsoCdEIfQvUjgtL+ht1fOYtpz/hWDYn8ag7lG40dNxQwy1SjgORFN D1h+FHbNe2ifnQacWd2kpE+Ku1xXTznLdnbGTczluxBfuXtaMVY1h8/To8he7e4i1rR/ JVtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nMwQ6ILBNlvRgr3018PELUeh/oBei/LXOAz5PDnWC4s=; b=EHAWAoNWW8FGYMr5qjTLU6IpSDHu+c5qH5YMXiP5xEy0buXuHjcc5ewDezrkhByd5H Ws1lcGQSALYW7/4ru/yWmu8PpPYAJGuvWD6cc99sWNBuYN7YdH2XA3TiZajl6nNRDkEP /3U/+2y+s9q2POEUyj43uNfOxrMvHv3hZq9TYV3iNTN0eIzO/ZeKqz5jo6DEHqKUV3fa 9hJJDsMFV5vWv438pT4XmnnCrkcJQUA/AzEeN/PWzYM4/h1t4Xci58YWqIeBqeC7yDga RTJ298R4E8RBLeTLIIJFpwVk8FJzTo0llfV4L81NyCvEvPM8wdhZN/NkZgz2XpTU0+xt lDqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HRSMKUut; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si1334322edr.154.2021.06.09.21.10.28; Wed, 09 Jun 2021 21:10:51 -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=@lunn.ch header.s=20171124 header.b=HRSMKUut; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbhFJEJg (ORCPT + 99 others); Thu, 10 Jun 2021 00:09:36 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55594 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbhFJEJf (ORCPT ); Thu, 10 Jun 2021 00:09:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=nMwQ6ILBNlvRgr3018PELUeh/oBei/LXOAz5PDnWC4s=; b=HRSMKUutk0U0eKMXlzTlJy3fJW 5//IgcTsM7xBlb0xPys7FZnLcRi9JsI/2vA/KDYWUyDfSRh8oq0UIATnos+aGhxaBsKF+Jt0J3zDR yvTViBrbT2PFo7w7F4Ll0wDEmhqStf6WcfQ/mfeeqTfQvCuSp7EAzCumy1kB/Z5Nz06Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lrByX-008bQx-5n; Thu, 10 Jun 2021 06:07:25 +0200 Date: Thu, 10 Jun 2021 06:07:25 +0200 From: Andrew Lunn To: praneeth@ti.com Cc: Geet Modi , netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: phy: dp83867: perform soft reset and retain established link Message-ID: References: <3494dcf6-14ca-be2b-dbf8-dda2e208b70b@ti.com> <20210610004342.4493-1-praneeth@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610004342.4493-1-praneeth@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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