Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4075555pxb; Mon, 4 Oct 2021 16:54:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzAfYX+EWZC2XECf6cf9VO1BjqlkzsuGQfyCZgxJ3a6wuwSKiUL0n+TxKKBWQ/LeSTl+dI X-Received: by 2002:a50:cf4d:: with SMTP id d13mr21870317edk.50.1633391685333; Mon, 04 Oct 2021 16:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633391685; cv=none; d=google.com; s=arc-20160816; b=sIQKrEOikwFV/0Xe7BNyDUw4QGQNd7FrIsr/TQig+u0lgimqwRsIqR9TRYYH7ok8BY mj/ve7vCMCUJIfrYvVjMZG649qvZ7lXo/ClViKvQNxAcpnOY/CqnvCmKS3R225ikdEM4 EK4xs1uRfxJ0xgVmX5SP6ZCcloSfSDUo9LlhmVAklE1dNfmV2iEAK1l3ibgqg797m4oS 4IpZ3CtNIasG9VSiKAt0iVfyQbWBq0scD+YFDuj5f0TDkHaHdH0x6aAe1HTPjmNjoh0R VDRkDAYf9HtrKBDyCtiF2uqL9Dr1wtlDmrRgj5IrmIHeSTdgYdXEhihR3/qqWgtu8fa/ zZ5Q== 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:dkim-signature; bh=fYPXulzv7ga+wDX0AJs+dfD7EVy3GhoMVPr0FyDWXag=; b=UOQEQ/q7icizJkEq9l9AZxE53ShZ98ES1swWk3vZAD+yNMo3QMgrabzTisPWqZHaQZ pxNC0xhmTaHgt2ou4HYtaK7y8Val1Hwl+Xo7TjzE1gpm/00ySgzrTe/PDIdWix3gto40 FgpQKu5s+fQzfs80mB9WOGgBJUWhziw0RbIifCd86JecK1XN4h1T6KZZgY5hPXuuLiKk uifW+94qZ6tm0MEQ7XBwbdP7TkpEw/JZkKukLVwXtHGbZxcVhwpW380yrNAj1bLvhxtV LyoE8lE0yMimeON5lLaa6ki+So4ZQUx8PJdTTRR9JZ4lDc/qRhAijBg9SmzLt8rkDCol fybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Y6R/ODLB"; 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 kl9si18553234ejc.603.2021.10.04.16.54.22; Mon, 04 Oct 2021 16:54:45 -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=@lunn.ch header.s=20171124 header.b="Y6R/ODLB"; 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 S233924AbhJDWDO (ORCPT + 99 others); Mon, 4 Oct 2021 18:03:14 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48470 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233487AbhJDWDM (ORCPT ); Mon, 4 Oct 2021 18:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=fYPXulzv7ga+wDX0AJs+dfD7EVy3GhoMVPr0FyDWXag=; b=Y6R/ODLBIr3hAQNIvwmZ35HU7e OROrBLiHkVpnQfAwubq5F5KC8nOJCAzlTOc2JgxhWqJOwy8jDxFPyF8jOs604QoVXtmkfpiAAIcuy U/FD2eZaehURkNja7xEVKRcpn2PNW/jbWj7hH9oSsHEbplTbxG4e0oykvgjEIuOauR60=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mXW1O-009bkw-46; Tue, 05 Oct 2021 00:01:18 +0200 Date: Tue, 5 Oct 2021 00:01:18 +0200 From: Andrew Lunn To: Sean Anderson Cc: netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, Heiner Kallweit , Russell King Subject: Re: [RFC net-next PATCH 16/16] net: sfp: Add quirk to ignore PHYs Message-ID: References: <20211004191527.1610759-1-sean.anderson@seco.com> <20211004191527.1610759-17-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211004191527.1610759-17-sean.anderson@seco.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 04, 2021 at 03:15:27PM -0400, Sean Anderson wrote: > Some modules have something at SFP_PHY_ADDR which isn't a PHY. If we try to > probe it, we might attach genphy anyway if addresses 2 and 3 return > something other than all 1s. To avoid this, add a quirk for these modules > so that we do not probe their PHY. > > The particular module in this case is a Finisar SFP-GB-GE-T. This module is > also worked around in xgbe_phy_finisar_phy_quirks() by setting the support > manually. However, I do not believe that it has a PHY in the first place: > > $ i2cdump -y -r 0-31 $BUS 0x56 w > 0,8 1,9 2,a 3,b 4,c 5,d 6,e 7,f > 00: ff01 ff01 ff01 c20c 010c 01c0 0f00 0120 > 08: fc48 000e ff78 0000 0000 0000 0000 00f0 > 10: 7800 00bc 0000 401c 680c 0300 0000 0000 > 18: ff41 0000 0a00 8890 0000 0000 0000 0000 > > The first several addresses contain the same value, which should almost > never be the case for a proper phy. In addition, the "OUI" 00-7F-C3 does > not match Finisar's OUI of 00-90-65 (or any other OUI for that matter). > > Signed-off-by: Sean Anderson Hi Sean This does not really have anything to do with PCS. I would send it on its own. Andrew