Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp577177pxj; Fri, 28 May 2021 10:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLZzNr2fXIeN1AbbhwpAiOaM4UXPFoz49sKIH0sG4qCessMY1AtedbuOcelvP+7s87++Oa X-Received: by 2002:a05:6602:2f0f:: with SMTP id q15mr8046734iow.75.1622222312149; Fri, 28 May 2021 10:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622222312; cv=none; d=google.com; s=arc-20160816; b=nxxFwNUDjngD5xkUAq7O96gEdtiCvyBN/jL9RZaIyVpOsUi5+CRXEFUR7NX+dR6ojC KrbxBk30eFhjRo1/e9btfwC+ZEuT2aG3n5ESyhi0aevjcCSjBv5h1knQob6DoU3tGJbL wCzUi6LQTbMkwJlTxf4AFolLCb93BbSEDkKGYlLn1H3+Vb3jq3ic5YMX5cSpcCYS5TAS B9z1x+PTgXz0NuP0FdT3yy+HVf72QkoBa/AqwT7AN1AixA3kmtdKhu36rrpxSAicKH/J E08vieBxfeKvv3uHJO5pDVegWpZdJRaTCiMv2iETCA0HkCeNMRRhNKOk1B6rbcEaYuzi cnGA== 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=mlabxwIUmJFkYFKeFMhvWL8tbMeOxSHxBp7TYwP5BOQ=; b=v+2LLycrNAz+vc74MI2ZLnIEGGowRGnY9IBPiPocTUPJ/XJsHmTChWdZuRrtKIa25k 13DjRJjck6D/bPHQPczli3duO/USn7bgx/7FrRla594IMDRZIkPzZXtPTM6SlRrYiuKj o4eijo7z2OeCZt7fxVF6A3ANHuVc9nkR+itnQ+sGb7hydHjb3qaF6X0FE0qrXTJKSw4V V6rscYq56eV+hRMrZXQyhoohoOPfCwsQi97GltKpJWuPVagbpeXpQ5Rtqpd60Uqh2kKC ay5hUXfZV0Q/I8t0xxCfRVgEnIVfE5Gvet81lgh3pEdyd7+wWIs8X0vIVOaGZMafKNtL 81Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vJm+LL5r; 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 w135si6671643jaw.24.2021.05.28.10.18.00; Fri, 28 May 2021 10:18:32 -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=vJm+LL5r; 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 S236906AbhE1QeS (ORCPT + 99 others); Fri, 28 May 2021 12:34:18 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54380 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236893AbhE1QeB (ORCPT ); Fri, 28 May 2021 12:34:01 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14SGWGeS091767; Fri, 28 May 2021 11:32:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622219536; bh=mlabxwIUmJFkYFKeFMhvWL8tbMeOxSHxBp7TYwP5BOQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=vJm+LL5rVRUToWebdqcqbvHrgU5XMngULq5+lI7fxEVuRo2SADSJ9JiWSB904eGLy rZ1WkjhxPYSTIZi/cKKgp4NKzylJEi2/v+uHD4Url6BT3k4FQ4IO3bKLec5Ywlvay8 582svwshumR35H/+Mpvmnu1sbCyN+p12dg29VDW8= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14SGWFCi004590 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 28 May 2021 11:32:16 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 11:32:15 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) 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, 28 May 2021 11:32:15 -0500 Received: from [10.247.25.23] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14SGWFln109073; Fri, 28 May 2021 11:32:15 -0500 Subject: Re: [EXTERNAL] Re: [PATCH] net: phy: dp83867: perform soft reset and retain established link To: Andrew Lunn , "Modi, Geet" CC: "David S . Miller" , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20210324010006.32576-1-praneeth@ti.com> <404285EC-BBF0-4482-8454-3289C7AF3084@ti.com> From: "Bajjuri, Praneeth" Message-ID: <3494dcf6-14ca-be2b-dbf8-dda2e208b70b@ti.com> Date: Fri, 28 May 2021 11:32:15 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 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 Hi Andrew, On 3/31/2021 11:35 AM, Andrew Lunn wrote: >> > 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. Does the feedback from Geet help in clarity you requested. Ref: https://lore.kernel.org/netdev/4838EA12-7BF4-4FF2-8305-7446C3498DDF@ti.com/ > > Andrew >