Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp543383pxf; Wed, 31 Mar 2021 09:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBPgwWnRFByeJaF/PnW9LnhiSwY2uhOfxCXJ//Sy8nw1IslvHzxf7ZJq+KsmoUkbqCQHY9 X-Received: by 2002:a05:6402:375:: with SMTP id s21mr4775512edw.287.1617208659914; Wed, 31 Mar 2021 09:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617208659; cv=none; d=google.com; s=arc-20160816; b=YjzwaW8TMpbsF7FEz4WY+J99mumsGulUu2xswqoni1DkNApMkcbSyn7HCfGuuyvEDr 58Qqqbtb3+9UtYMU1uNL78ZqYbsxzYSpCcTawtDprxD4lO0mTabP7YMUnLZNqcjsFqUy +uAPeiYVhg9hgunYVu757vX7FZQAVPelKFjFy75un8V+pY7sAB/huHemtMx3wIgCN4Cn wok3YQoyM2Ag4KQbDtzPcgNJ7BxYOv47o2yO13ouBTQ07qm11TxwjRX80RUCa6/yefkx CSMC4L/L88vbMsQKHfvbwu/UmvIQgJlh6kuTMqBvx/HgBBZxWn4Mt1DVTeq25hjZVmG/ 3avg== 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; bh=vv8teNG7afdeX1jRmFsgM5y+Jh3x+eTpLq0f/GF6PIg=; b=PfYItOk/Idfph4ce1qsbQQ96zst3gZAepzB+P2SjasrlRvKJ12fKNSLOHCD61BCClF WXdBXUNCXfQmB7GcryfDgMx/OpsMJ9IfJmHOlgvLNwHhVqthN4UjxEYE0KAMF9QYasGR YNDYW39lH9u/vEHAp0DVSpj9xPOcHnK/LxqVRQ6x2eIpDuqi+uXbxLMrERD8zlbgjYeV 0VD01XGok649/dEVNgCeIkmEE/LaoM5S+dVbEu1ywjoz0cJRnu+nbQjCRqtFpYh3a6o/ cQQGrgFOdLJG6FILFEBdU0kQom4Q+atJL/fHTd/mI+toF2YxiTHocI/ItcA5c+GHkPOX DXpw== ARC-Authentication-Results: i=1; mx.google.com; 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 b15si1955432ejv.689.2021.03.31.09.37.15; Wed, 31 Mar 2021 09:37:39 -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; 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 S233704AbhCaQgI (ORCPT + 99 others); Wed, 31 Mar 2021 12:36:08 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56532 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233831AbhCaQfw (ORCPT ); Wed, 31 Mar 2021 12:35:52 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lRdon-00ECSt-Dz; Wed, 31 Mar 2021 18:35:45 +0200 Date: Wed, 31 Mar 2021 18:35:45 +0200 From: Andrew Lunn To: "Modi, Geet" Cc: "Bajjuri, Praneeth" , "David S . Miller" , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH] net: phy: dp83867: perform soft reset and retain established link Message-ID: References: <20210324010006.32576-1-praneeth@ti.com> <404285EC-BBF0-4482-8454-3289C7AF3084@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <404285EC-BBF0-4482-8454-3289C7AF3084@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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. > > > > I don't see any code here to determine if the like is present. What if > the cable is not plugged in? > > This API is primarily used for reset. Link Status is checked thru different > register. This shall not impact the cable plug in/out. With this change, it > will align with DP83822 driver API. So why is there the comment: > > and is > > acceptable to do this if a link is already present. That kind of says, it is not acceptable to do this if the link is not present. Which is why i'm asking. Andrew