Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2217726pxf; Sat, 27 Mar 2021 05:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfQgoGG6Ci6RtkU5NrFwY95M/Wri0aTBsXHPjkw9BwBYe9Wp6gYp//3qiOVv27ab0xi2If X-Received: by 2002:aa7:c503:: with SMTP id o3mr7120664edq.224.1616848979712; Sat, 27 Mar 2021 05:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616848979; cv=none; d=google.com; s=arc-20160816; b=EhxGq6HKJLnaY0exxk3gZFgolxSFGvHl+5CF09TCZCUSUjehQO08wtIS1x1K5eVoM/ /DlbtiMGasxqR8XOzuP/SGZn/flO+tmNWU4j/lAL/Her/LMFHW5am5mVevSFkKIqf5Ch m/Ku3DslKm66S+xljidmYC0ZBdWhVHW92BgLlDcSzDhhAIg2YbYVZkNEkm6fumKaXX5f wi6HfxB16J4g6G1jOUcGBUkKTVwGD+kuxwTrpCdIfwkwT4PruZ43TUsrpo88nMmU22Ec n/54kb4xup1ijPHdn9tgmKcjpBHJ9+hdINz54W8Q6UCodtgKZ2UV5UjAu0tm53UPgGmG UYiw== 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=dqrQNaB9UrVSAQpBXBhqSyJJYfz2kMXRM7Nb4J1Hivo=; b=K1s5EWyDSRLghA4d4xdLjU7TkT6XzLipPj4U2NuBCqL5OAs4tE7GiKpz3r/wYJPjii T8JJW5K/SNC6SG3rNCNIEdOH0iKXEOoQOS2hGFctd7om6Tha2f+ocYNnpD950JaLYcif xHaTAPXJW7k7qynpD+F5c6PiZcJDfm4vBGBXi5h2gozQey3j/ZpNJVtBhoxp3JFvYa4U SpDnWQ5e9W27VW0uqT2G7+NE2r37Fcr3KUDl2nXl2j/qwWpHBJq9v1s2s1WoT8gFssCX 5Ytiz9aUTUeWi9srbegLDkzqpbAOLfxnqmMO936lDjBysscBBSOYrJYnVeTjnR2JpvKL aK2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p8JnJotc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si3986042ejg.157.2021.03.27.05.42.37; Sat, 27 Mar 2021 05:42:59 -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=@linuxfoundation.org header.s=korg header.b=p8JnJotc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230086AbhC0Mk7 (ORCPT + 99 others); Sat, 27 Mar 2021 08:40:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:57108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhC0Mk7 (ORCPT ); Sat, 27 Mar 2021 08:40:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E64A619C9; Sat, 27 Mar 2021 12:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616848836; bh=3VV+CnI+qYEN6es0BwNT6G0L+Q81CDeO0DCIN1lsJoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p8JnJotcN5reSX3u3jwu39BrFYw6UC2hIqpEx0c11GihYdHOV08mPJ/ouMPpYi8zV 31KiI4TjfmtaeILHLYgmewx7jvkMkelguau719vwaj6+y/ubZsmEhMgfpZfotoIT44 6csfU4qR2FgsJKzG6cp4gisl+S1zjiaIKt666YqI= Date: Sat, 27 Mar 2021 13:40:34 +0100 From: Greg KH To: Don Bollinger Cc: 'Andrew Lunn' , 'Jakub Kicinski' , arndb@arndb.de, 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' , 'Moshe Shemesh' Subject: Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS Message-ID: References: <20210315103950.65fedf2c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <001201d719c6$6ac826c0$40587440$@thebollingers.org> <009601d72023$b73dbde0$25b939a0$@thebollingers.org> <011301d7226f$dc2426f0$946c74d0$@thebollingers.org> <011901d7227c$e00015b0$a0004110$@thebollingers.org> <011c01d72284$544c8f50$fce5adf0$@thebollingers.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <011c01d72284$544c8f50$fce5adf0$@thebollingers.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 02:09:36PM -0700, Don Bollinger wrote: > > You keep missing the point. I always refer to the KAPI. The driver we can > > rework and rework, throw away and reimplement, as much as we want. > > The KAPI cannot be changed, it is ABI. It is pretty much frozen the day > the > > code is first committed. > > Maybe I don't understand what you mean by KAPI. The KAPI that optoe exposes > is in two parts. > > First, it makes the EEPROM accessible via the nvmem() interface, an existing > KAPI that I call from optoe. at24 implemented it, I made use of it. This > interface exposes EEPROM data to user space through a defined sysfs() file. > I didn't invent this, nor am I proposing it, it already exists. Again, a "raw" interface to a device that is just memory-mapping all of the device information directly is no sort of a real KABI at all. It is no different from trying to use /dev/mem/ to write a networking driver, just because you can mmap in the device's configuration space to userspace. That is not a real api, it is only using the kernel as a "pass-through" which works fine for one-off devices, and other oddities, but is not a unified user/kernel api for a class of device types at all. thanks, greg k-h