Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4846177pxu; Thu, 10 Dec 2020 06:56:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTCtdCvrR9Yt3MNz79E/8+FXMHl4YbQbekUs/A9cIAv1v/cmCTaWYTYLkUUEOFG9Qu8TOg X-Received: by 2002:a17:906:1758:: with SMTP id d24mr6960339eje.287.1607612204215; Thu, 10 Dec 2020 06:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607612204; cv=none; d=google.com; s=arc-20160816; b=saSCnNxq2J+f5OFX7JkIm3wsXMT4mnE+d7S6y9hHpEF6tXW4EaF8Q420ol22oMhGu/ 59RlUEA2XE7PYwCWkFkoIKKFQaDfmAF/McuHnKxbzwqOqpSwMrib2f4hJhyfD0DN6fnt sOsy2BZ/+Vmb1VA7kCHxD+qDkLD9JfJfUOasNMuIyIVyMl8YwRcrGhB3z94k2fLxHwOw yH8s9APVfEQfSgHORTits4s3DZkZDDDxoHObw2J1K+NbKJAHO7rn+PZi2JMgfaXo4MDb x9iOJs0AlXhmE2Rhw0dxj2r2rv9GDnRQgYWROhGZiEBa+ms/03kK/3M3sUaG/HB65Hs3 4YwA== 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=/vUTzf6tap4QzPhgih7ILaL6081GY4Qf++EcmbWhCNo=; b=aVHNUPcPYHQkvuoQn7zxkaPKXGrcMvT27GtDTzyAsET3vxt693j7pCq+Vxv/Kbzv7p b0et/cRU0esihp0DTsTRBlnjfXK3FLkEbVfVlPhtA3ZbswHS5jco3cqn9phMCt5pqVf4 u7X8HWjPaloW/Bcx41CtfA6iGDk2ClwUwwTgVV0+GxPDOh8kutP1G57q70+EmdUmRrDK eGVcipY/PMbkstpdv6ewHU8YM2Zu+2NcH2wcGmrQHo8BHkCDEA0j8pUSO6CO2JLZ+KGs NKLqcfKDGrOhpX/iSDdEmRVHKEGT0icq6+xpnx8i8yUbgm4RC4y/ZsLPbVK2PHjsTVb+ HXoA== 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 q12si2695079edb.395.2020.12.10.06.56.19; Thu, 10 Dec 2020 06:56:44 -0800 (PST) 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 S2389799AbgLJORK (ORCPT + 99 others); Thu, 10 Dec 2020 09:17:10 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:48812 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389434AbgLJORB (ORCPT ); Thu, 10 Dec 2020 09:17:01 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1knMjq-00BEUo-5O; Thu, 10 Dec 2020 15:16:10 +0100 Date: Thu, 10 Dec 2020 15:16:10 +0100 From: Andrew Lunn To: Steen Hegelund Cc: Kishon Vijay Abraham I , Vinod Koul , linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 3/4] phy: Add Sparx5 ethernet serdes PHY driver Message-ID: <20201210141610.GG2638572@lunn.ch> References: <20201207121345.3818234-1-steen.hegelund@microchip.com> <20201207121345.3818234-4-steen.hegelund@microchip.com> <20201210021134.GD2638572@lunn.ch> <20201210125706.saub7c2rarifhbx4@mchp-dev-shegelun> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210125706.saub7c2rarifhbx4@mchp-dev-shegelun> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > So why are returning link up information? > > Yes that was a bit of a hijacking of the function. I will remove that. > I also removed the dependency on this behaviour in the client driver in the > meantime. > > I think a status function on the generic phy would be useful, but I will > take that as separate issue. In this context of an Ethernet SERDES, do you actually need it? You would normally look at the PCS link status to determine if the link is up. But it is useful debug information. If the PCS is down, but the PHY indicates up, you can guess you have a protocol misconfiguration. What exactly does link at this level mean? And thinking of the wider uses of the PHY subsystem, what would link mean at this level for SATA, PCIe, USB? Don't these all have some protocol level above similar to Ethernet PCS which is the real determiner of link? Andrew