Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp485596imm; Fri, 15 Jun 2018 00:55:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHH1sQLBFSBtzeuPYh2XVy0t9Xrotjk2mDFoSXzL9YSr0FB8M/08Hr46pr3ek9MRFBJqmE X-Received: by 2002:a63:2f04:: with SMTP id v4-v6mr575090pgv.33.1529049323940; Fri, 15 Jun 2018 00:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529049323; cv=none; d=google.com; s=arc-20160816; b=pAyMVcPRBNjcsibA5wF0nwM3KtQ1ejDzpsVUmQITtEcnwbkpKAqhrPbzwzbHLg/xHd GjQRjZ7x4ml6flocoqOzo46RDMm+9W5Vy0nq2D9GGUJq1Bzr582PRMPBD7XyT1SOVrBy GHqV4DAkfB4f1RI3SofH1BhKq2TQrTvl/oG7dkDtr+88buIloM0ppPo3yITO91ww2A6N 1KzdRT+pzfd5b7tZZK2laVrNXSdTfUogqiRQZ/IJ7H1vpd8cnUjEzmflQ38ykTDBP6OA Z6/cPUGV+MVPQ2FONgytqaLM0dehMUOOwPqnK4Wg2Ny6JuuYpumBEo4zNGtvosciCl3t B25Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=/hmueo3c4f0GNNHYmi4RVdqxd//FvNgHT1kS3ySeuug=; b=BNEcnYNzlUm9kMt37L/Yq32CNllodfrKlRVu5yFENeodziheMcrAhqCEAVVoXI1xNZ OZihr84rMCmQhBLqfRupJx2bBKCnRVerbwpQEUET0Lhg0KBGf/ZVkwJaXXX+Jff4OYKV c5khpo5TBNMbtTBJ9v+VJeWvmg5U75rh4G3GkYGSrQ9xb+mNUBmvW8QIZS8c6iHo5la2 GJiDbgQn6t6kHfS4zhjhE5+5VLuaKy6x/igCgZUzx4kjHO/HKXlBVUtFKkf0yVV0+wuD NmBL5bvyCwtxOFTVJgp68DKJXxJxuSuOIVwT5y2trDvbKc/UhT+gxvA3PL9awbIyS9ED +G8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eFgUCwC1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59-v6si7386246plf.500.2018.06.15.00.55.07; Fri, 15 Jun 2018 00:55:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eFgUCwC1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755935AbeFOHyn (ORCPT + 99 others); Fri, 15 Jun 2018 03:54:43 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33815 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755757AbeFOHyl (ORCPT ); Fri, 15 Jun 2018 03:54:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=/hmueo3c4f0GNNHYmi4RVdqxd//FvNgHT1kS3ySeuug=; b=eFgUCwC12W2vVOQcwo0mnC59FfR7mERmZqqN6kiUhENX8dwV1d12QgqsrV5ZIVosYWaL+MEmc+18WQRYJB0Bc9AL72pLTeqmEOodOoPG1zqRae4xGN716GmjN14nKZ2z5wzLDnGJz7NgNa1QXNymeZenCMZHF3CJUKQovgqI3a8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fTjYn-0007aA-8n; Fri, 15 Jun 2018 09:54:17 +0200 Date: Fri, 15 Jun 2018 09:54:17 +0200 From: Andrew Lunn To: Don Bollinger Cc: Tom Lendacky , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, brandon_chuang@edge-core.com, wally_wang@accton.com, roy_lee@edge-core.com, rick_burchett@edge-core.com, quentin.chang@quantatw.com, steven.noble@bigswitch.com, jeffrey.townsend@bigswitch.com, scotte@cumulusnetworks.com, roopa@cumulusnetworks.com, David Ahern , luke.williams@canonical.com, Guohan Lu , Russell King , "netdev@vger.kernel.org" Subject: Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs Message-ID: <20180615075417.GA28730@lunn.ch> References: <20180611042515.ml6zbcmz6dlvjmrp@thebollingers.org> <496e06b9-9f02-c4ae-4156-ab6221ba23fd@amd.com> <20180612181109.GD12251@lunn.ch> <20180615022652.t6oqpnwwvdmbooab@thebollingers.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180615022652.t6oqpnwwvdmbooab@thebollingers.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Actually this is better described by a third use case. The target > switches are PHY-less (see various designs at > www.compute.org/wiki/Networking/SpecsAndDesigns). The AS5712 for example > says "The AS5712-54X is a PHY-Less design with the SFP+ and QSFP+ > connections directly attaching to the Serdes interfaces of the Broadcom > BCM56854 720G Trident 2 switching silicon..." We consider the SFP+ and QSFP+ as being the PHY. You need something to control that PHY. Either it is firmware running in the switch, or it is the Linux kernel, via PHYLINK. > The i2c bus is muxed from the CPU to all of the {Q}SFP devices, which > are set up as standard linux i2c devices > (/sys/bus/i2c/devices/i2c-xxxx). Having a standard i2c bus driver is correct. This is what PHYLINK assumes. It knows about the different addresses the SFP uses on the i2c bus. > There is no MDIO bus between the CPU and the {Q}SFP devices. There is no physical MDIO bus for SFP devices. If the SFP module implements copper 1G, there is often MDIO tunnelled over i2c. PHYLINK knows how to do this, and will instantiate a normal Linux MDIO bus driver, and then you can use the Linux kernel copper PHY state machines as normal. > And, there isn't actually 'a wish to expose' the EEPROM data to linux > (the kernel). It turns out that none of the NOS partners I'm working > with use that data *in the kernel*. It is all managed from user space. Ah. O.K. We can stop here then. If you are using Linux as a boot loader, i doubt you will find any network kernel developers who are willing to consider this driver. The kernel community as decided switchdev is how the Linux kernel supports switches. We are unlikely to add drivers for supporting user space drivers of switches. NACK. Andrew