Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp247147pxj; Wed, 9 Jun 2021 22:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJhE1vdMa1GlOL2reLWCLjRbOA/+M5EEP+wS4aHtGzC2QeJGcljP00fCH6STUJ2Xk8B6/S X-Received: by 2002:aa7:c619:: with SMTP id h25mr2993148edq.388.1623304665019; Wed, 09 Jun 2021 22:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623304665; cv=none; d=google.com; s=arc-20160816; b=RMQPd+ddAI2I2GLWkLsn18QaNTN+xTrLNZ2XkKPyuOCdUNeOFA2wSWSXDvIvQlFxZq 9NjPTtuq2o4/mLOYIe5agc4+FWyicxn1D6k57UNLebIY52qjU3Bj9v4INj9XIIFSMe/c I7+T45qXKZ2SC2h/fOkjn4VA8RMbSZ9xh4sd3I4wHXNAqBOlIMoMVgfytgQJyrrOa0JA qDJTGIqcKZmUZJT01HxNdluTKsIjkDjaIqLa1ztPsXs28iVK/TbWEF07Ps+5GV6w8J+y bdBoheyiVH8iyZlSZsiX2C8dKWOogLHiISsqR6FCgcIreHxzo9YulZqM9Iq0mPLHT9oi R4LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=u0FtwB+OlBrh5S/mTC2ETvvyD0FyxJjtP3SC5BMuDhs=; b=oJEDxoukLXqI8uUZguuRpaolc1wDrBF7/mO1AX8wLx47ZD86e7fImIFWYAtZ4lWoHu IVtoMQdf07kKn5e3oPMUSAP7I5lxOaawPJaEMZLMwVORNqcXiqFNwCxBAn+9QixqIXcO P6wDHLuSMHcI5zpClXoFtXLboIGY0tuV4vhw+QzsUxhKhNS6s3ihEj8nPd6lkPR1QL2v pWpKvDipYbaN+MxP6zjNDcxU60geBOMv/lzrp3+ArxnyS1l7QNM+9pHC2meKYNYX5uKI hdJAXPgwVd/aLv3brX3/yTWkvLrgbbLatVS2gA10afgluNLv6zY6zkTM/f0U/r7N2QDW QyRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="IYzf8/9b"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx25si337405ejc.431.2021.06.09.22.57.21; Wed, 09 Jun 2021 22:57:45 -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=@gmail.com header.s=20161025 header.b="IYzf8/9b"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbhFJF5J (ORCPT + 99 others); Thu, 10 Jun 2021 01:57:09 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:41629 "EHLO mail-lj1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhFJF5H (ORCPT ); Thu, 10 Jun 2021 01:57:07 -0400 Received: by mail-lj1-f180.google.com with SMTP id z22so3092831ljh.8; Wed, 09 Jun 2021 22:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u0FtwB+OlBrh5S/mTC2ETvvyD0FyxJjtP3SC5BMuDhs=; b=IYzf8/9bnHi+pEs8IVLQneuQRJQVj3fRf5NgnUbC+qu4bAmkmJiBmUVkm+XxkHxu1S /LPRqirtMPx+IqgVnv0gs79k3DXf7HbvRDgkl3VEacUOKR47WEN4VGjRBuosK6Kpeo8n ZdecatW55OWl8KLaUlJhl/21en09CqRG39vt4TeozKgQLxG63ij4NhLElwn8sUf5wTb+ jDui/X5vx09RVpkr1DjQ0w+sF6a6eMLMAW6rnZN7k0MNMo5qHpA0+ttrFpIdmyd4jo+L wLHxGsehPYBbo3IqTUUm2mwoocMF5ZA4saEQ50+kiuozr3PGgmKYvMSUEPR2m8ew2QNV 5YTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u0FtwB+OlBrh5S/mTC2ETvvyD0FyxJjtP3SC5BMuDhs=; b=DJcvKmMFHaPNE1Qg072pXpvevP5ikGDF++3QGS0qYWMoWY4CjJumtzCm21b9z84xNY wGRnalCoq2qvH/2RByvXqKpCtUzd113gRMd9CKHULEuDAjZAExbmYJcHRp9CuQnuvGGi zSfX778131NXezw/b0ey/DHewaqFx61a3XgQuj0RhY4f1B253Fa+P8aWs0HaU5cB84dQ 2udkEP9N1mQpgvlGk4eN1qhu8yspJIb9YV7xmI2lO67So8Xpk1J5MEyTtx2QjgdmUyhq fkEve7gx8pWxhwMxLz6EtMZ3hDfguWaQkY2sQ1REK24tPhA0QRHdXrylqjSZscJrM9FA bbRQ== X-Gm-Message-State: AOAM530PksGiskKFE92dOVN9Zu+3U1phXd1lvl67chLoUnLvdgRSDMtb jLzksyPNgXvou2p/L3svd+dXcx7u+YrqSUGG/A== X-Received: by 2002:a2e:b614:: with SMTP id r20mr905597ljn.382.1623304437088; Wed, 09 Jun 2021 22:53:57 -0700 (PDT) MIME-Version: 1.0 References: <3494dcf6-14ca-be2b-dbf8-dda2e208b70b@ti.com> <20210610004342.4493-1-praneeth@ti.com> In-Reply-To: From: Johannes Pointner Date: Thu, 10 Jun 2021 07:53:46 +0200 Message-ID: Subject: Re: [PATCH v2] net: phy: dp83867: perform soft reset and retain established link To: praneeth@ti.com, Geet Modi , Andrew Lunn Cc: netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Hannes