From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8C92C43461 for ; Wed, 31 Mar 2021 16:36:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BEA86102A for ; Wed, 31 Mar 2021 16:36:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234439AbhCaQgJ (ORCPT ); Wed, 31 Mar 2021 12:36:09 -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