Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1483898ybt; Sat, 11 Jul 2020 11:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHDi5bPREugKPJ5pc6PgOicG31I1EkaUhob4GETXT+xw/WPMXWfag1lhlErUsv/J54NOMJ X-Received: by 2002:a17:907:724d:: with SMTP id ds13mr64982962ejc.73.1594492458377; Sat, 11 Jul 2020 11:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594492458; cv=none; d=google.com; s=arc-20160816; b=dznWZCUONzK2wiNdJ+8dCY2/M5zP2RcpqhmnuFqriFhCdF16DdwRadyrAPFg60Wico LjmiZ8RFZKhRD7i0yKSwuZ7M2TLPsGIRqIzzjOMeC6S1FeJai0skz7fd2PlHBnPBRNoB LHxnB50bRpV+kBcabF/6Wxhg9HwnTeInuydd3yNzH/FEh90pe21SloqPiQ7f6CkK/Nb2 OglUQIIWbTcnrSFSozfPt+QsNMmlNoekIeNW9jVKQOa6JC6BeLHAp+cxcPVN8xI435UY l9ioBReltfuGRkAedsHQTHGRAVjUmUcO9yv25lBvkXDYb4Z9/4bYBZj7oFJBeyJXtYp7 iUzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jN32VxFjgxkakixBlLzkwMzR+mc0bDVx6J6L/aMB7wo=; b=bl8ougQquP0n+25XyYl46vaxIiGcrl/L4IHA1bYHt5l4z/R1EW2Xq8qpGRPklhkAxG 4jBsepmZI+mtF3nmvIivfPxjtbaeFti10j0bz/KbUp6okwslLW/M1CVkXf1PlpkXDUq5 t/52/QR33vM4AvvHzGruTyptPsuVKM3hyQrCxJ/HM/gyS86v9ejxLghk2g/CrPXsHZxu qtr7phRSI47BDFAf6I90jeTwlTRjJ1k9WxWAtsSAj1O/1xtuiJ8U+nf/m0OOko6gTeMB PKOTtcU9fk+5eDHdTl1eJJu/fD0pl9UlgNZuXi5E64yYpAnKksQctNRnzqg8h5/Fv266 z3ow== 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 d9si6077688edv.44.2020.07.11.11.33.55; Sat, 11 Jul 2020 11:34:18 -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 S1728684AbgGKSdu (ORCPT + 99 others); Sat, 11 Jul 2020 14:33:50 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58708 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728390AbgGKSdu (ORCPT ); Sat, 11 Jul 2020 14:33:50 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1juKJm-004eCm-TM; Sat, 11 Jul 2020 20:33:46 +0200 Date: Sat, 11 Jul 2020 20:33:46 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Florian Fainelli , Heiner Kallweit , "David S. Miller" , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Philippe Schenker Subject: Re: [PATCH net-next v1 5/5] net: phy: micrel: ksz886x/ksz8081: add cabletest support Message-ID: <20200711183346.GQ1014141@lunn.ch> References: <20200710120851.28984-1-o.rempel@pengutronix.de> <20200710120851.28984-6-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710120851.28984-6-o.rempel@pengutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 02:08:51PM +0200, Oleksij Rempel wrote: > This patch support for cable test for the ksz886x switches and the > ksz8081 PHY. > > The patch was tested on a KSZ8873RLL switch with following results: > > - port 1: > - cannot detect any distance > - provides inverted values > (Errata: DS80000830A: "LinkMD does not work on Port 1", > http://ww1.microchip.com/downloads/en/DeviceDoc/KSZ8873-Errata-DS80000830A.pdf) > - Reports "short" on open or ok. > - Reports "ok" on short. > > - port 2: > - can detect distance > - can detect open on each wire of pair A (wire 1 and 2) > - can detect open only on one wire of pair B (only wire 3) > - can detect short between wires of a pair (wires 1 + 2 or 3 + 6) > - short between pairs is detected as open. > For example short between wires 2 + 3 is detected as open. > > In order to work around the errata for port 1, the ksz8795 switch driver > should be extended to provide proper device tree support for the related > PHY nodes. So we can set a DT property to mark the port 1 as affected by > the errata. > > Signed-off-by: Oleksij Rempel Reviewed-by: Andrew Lunn Andrew