Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1571102pxb; Fri, 26 Feb 2021 14:36:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIMVMDHjF1PElEgQTohhJPRV/p9DzminL7dGrp0QGGhX8oGsu0wmhJ4kZ+UakQVYr7z5W7 X-Received: by 2002:a17:906:6487:: with SMTP id e7mr5655074ejm.181.1614379006056; Fri, 26 Feb 2021 14:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614379006; cv=none; d=google.com; s=arc-20160816; b=UCYKJk/iHza0rRf1fl3bwn4UpaqmfaIzNWWKg0kFm0W9UunJaZsoFQkUQ8ziu9eD1X ij6Gv+My/8e5Fbb1f4fPcGZnzBEXPx47WoJKnfsjbJlC709bm+0dIi7RNr5Vv4THQJz5 WrpCzJiFSxSxWne8UhyTgLOiyDI2c3IXYWHmhjWZLvcE3as+jZwUZlhASCUuSLCqHLEb WZBlXnMqlfJeVG4Vd2S+Je1D7f2MHpeIW2qSf+7o7QU+xe9J3FwMxRTNJrg8SR8DKLSG zBHfpQK01VnK8BJe/xO6T0/plQxZi2i5+k4ea4Y5Ji8FaSmycYhyE+zJ45Ez3TbWscva wSEA== 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=/z9gYz/xe3EBNfI0bPLftgihQtOW3yvYEYJu6jWLy5U=; b=BZE7g6hyLQ/IwDsL9rROh4tCeArOlrBnl1zmsD/CSk/Vkc06s0lvemAYeYCyD17ltI lOWCC1GX8BHOPZuT2lRNXplmL1g0wdos6QhGFPJUhYmiDQgP9O4orB5JwD6PRz/BbjFT y1dAtsbfEJlKXrbXU5TjzEpCqm6/+PnRlxjP1lay8LdtQxWOBPZgIztV8iKqXzj3oA0I AfWp1My8165zvQr1tMRdm2KJuqmDuJWVT2zHttkTqGuZ/43vHJRyD6esRYn72BE3rYIN gS/AIFOiBpPRIgdMCEuhhGPfFdYe5q2vIbM+YlceO3Pp2AoHiDlzCkVxGndC9iaJ4ubd Di0A== 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 d17si6703192edn.611.2021.02.26.14.36.20; Fri, 26 Feb 2021 14:36:46 -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 S229996AbhBZWfj (ORCPT + 99 others); Fri, 26 Feb 2021 17:35:39 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60924 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbhBZWfe (ORCPT ); Fri, 26 Feb 2021 17:35:34 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lFlh1-008fcg-S9; Fri, 26 Feb 2021 23:34:39 +0100 Date: Fri, 26 Feb 2021 23:34:39 +0100 From: Andrew Lunn To: Don Bollinger Cc: arndb@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, brandon_chuang@edge-core.com, wally_wang@accton.com, aken_liu@edge-core.com, gulv@microsoft.com, jolevequ@microsoft.com, xinxliu@microsoft.com, netdev Subject: Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS Message-ID: References: <20210215193821.3345-1-don@thebollingers.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210215193821.3345-1-don@thebollingers.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 11:38:21AM -0800, Don Bollinger wrote: > optoe is an i2c based driver that supports read/write access to all > the pages (tables) of MSA standard SFP and similar devices (conforming > to the SFF-8472 spec), MSA standard QSFP and similar devices (conforming > to the SFF-8636 spec) and CMIS and similar devices (conforming to the > Common Management Interface Specfication). Hi Don Please make sure you Cc: netdev. This is networking stuff. And we have seen this code before, and the netdev Maintainers have argued against it before. > These devices provide identification, operational status and control > registers via an EEPROM model. These devices support one or 3 fixed pages > (128 bytes) of data, and one page that is selected via a page register on > the first fixed page. Thus the driver's main task is to map these pages > onto a simple linear address space for user space management applications. > See the driver code for a detailed layout. I assume you have seen the work NVIDIA submitted last week? This idea of linear pages is really restrictive and we are moving away from it. > The EEPROM data is accessible to user space and kernel consumers via the > nvmem interface. ethtool -m ? In the past, this code has been NACKed because it does not integrate into the networking stack. Is this attempt any different? Thanks Andrew