Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp258018imm; Thu, 14 Jun 2018 19:42:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKjvp9PyM2RvtdCxzM7OK5sOhU388EYrF92+hpMIzMNkXS/0ZoiWrwk//LVyFJh1nIFsRE9 X-Received: by 2002:aa7:8148:: with SMTP id d8-v6mr12115033pfn.78.1529030570947; Thu, 14 Jun 2018 19:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529030570; cv=none; d=google.com; s=arc-20160816; b=WQdVM16LUu4dvDONIXWJqFiw21HrfHs0lRjYJLxDgpu1yYFOIIQnp7T/DVfkcJo41C rarjQS86Jx+6v5nFFDI6dWbYP99lllJPg3QNqSuxsX3TmnjXWWiRrag7xAAJ31tJePPi 3TrO+6BtCB++FLD8g4FO8OgTTeA1QGJ5WFr43miFmaCByZQd6G0hw9c4g8vFWJQ+dg2W QJWQOyDYK568JP6dyOPVWf+EOqfnUUePMRyJOc31ka2yMV+JE7tHgcpMKUHE6jiY11+5 Z/6i5YWKIFyhtYGj8c9AIQeIe3Nvt7xLpTDc6dTLj/7wfTxeVoKj/YrdvEpR3ANOG+3h u3zg== 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:arc-authentication-results; bh=yEVx+CfqyiQWc8Kv9uCYLo/KL3IFwB6D7a6FWCewhRE=; b=UafieRXbug8kDyuDg4B6uThFyXROXm4a9yaaNXC8PyE+HYXQzmYI0QM9fX+XrZMK7j Gdw5YA8WpNfMuIOgr6ttKSis5uCAz/m+ZX4XOV59UqOYdODUzpyLwz2YotPjK0Wl+tLf Q+lf3BRUUgWzjTfxvck9PxADvH1jY5iBq/Fc+owX0D5f7khf0F21VLiU64sx4qkvo8/W R4b6OAfxlIgWTPtuTSFNUgPHqCFa6rDQxYFrYRrmjKHLZ15orupNIXxHdakmvLHcCLoL 2qF7ZZQgjLFrzp+OJvf0LZILZpw9AO9ak6xUv634ekkTKR0BdujA+5W0mPEqk391O2eU fDeg== ARC-Authentication-Results: i=1; mx.google.com; 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 k2-v6si6690394plt.374.2018.06.14.19.42.36; Thu, 14 Jun 2018 19:42:50 -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; 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 S965471AbeFOClo (ORCPT + 99 others); Thu, 14 Jun 2018 22:41:44 -0400 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:41306 "EHLO resqmta-po-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965072AbeFOCln (ORCPT ); Thu, 14 Jun 2018 22:41:43 -0400 Received: from resomta-po-03v.sys.comcast.net ([96.114.154.227]) by resqmta-po-07v.sys.comcast.net with ESMTP id TeLlfIxzF6gX8TegIfEpOK; Fri, 15 Jun 2018 02:41:42 +0000 Received: from thebollingers.org ([73.223.250.230]) by resomta-po-03v.sys.comcast.net with ESMTPA id TegFfV1Mobew8TegHfutEC; Fri, 15 Jun 2018 02:41:42 +0000 Date: Thu, 14 Jun 2018 19:41:38 -0700 From: Don Bollinger To: Arnd Bergmann Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , brandon_chuang@edge-core.com, wally_wang@accton.com, roy_lee@edge-core.com, rick_burchett@edge-core.com, quentin.chang@quantatw.com, jonathan.tsai@quantatw.com, steven.noble@bigswitch.com, jeffrey.townsend@bigswitch.com, scotte@cumulusnetworks.com, roopa@cumulusnetworks.com, David Ahern , luke.williams@canonical.com, Guohan Lu , Xin Liu , steve.joiner@finisar.com Subject: Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs Message-ID: <20180615024138.oervj67t4zgt6icm@thebollingers.org> References: <20180611042515.ml6zbcmz6dlvjmrp@thebollingers.org> <20180614004044.jjz3ws3zyns7x4x6@thebollingers.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-CMAE-Envelope: MS4wfHPL9m7EWh62Ayu4f2p6qhkzzdvs76fb28Djr4SxkwzWiNoDKQCx2a4/hv52YPmmErRzAhDludguevp3QpU/R2wA6lF6tSdyOtmlzSO5KbaICgdDjefE PUYVin13iykXWgseBk3gROgjqmYw2ZV6/NTY0D6dcyHXNjjKbwb4Ri+LXxLWYg+oOv4mInbLSDOBcHDyk1W9Ha5uqL6Sh4AMxXd7Q6RvF/jj/zei3yRPw4Mt Aha3NU7bMEMHZP5sUkwpF0tktCCtJ7VLy8iXvoNIBfkaQbNsndpKDBugKP3SFAvFcP5B+49HeBsRohAJDK4dxYQ+b7SY1buzeKliIO3io2IzeZC8g3DixwGa GCHU0Kub6oFcNNZ+YwjnX+uBrVpxRuV/vXzkT09BzNqvtg3oVo1ZE3J7B8ZnGimcGps3IPmWCLDOZXL3g0FWMsxwyuPD2jt0X5PuLNu0Zwk3fc0gQX+Ij10V f+dy4aMJCf4weXV3os1vcBcECXWsUAbvBjk8GM+YfMvv/cFV7Vyb54hGQsItUpCkgBnYsWYyHqdhWCtJMPl2OCZB/rkouTMgxaPW6XCfe5XFgbXqTgH8B7lZ Ty8vLXuzQ89hMZSv+QXbCgQ3WKFEovDdjewjocgmB8FMdl26Wk6EuH2lPEc5Bkzm6p0NFZrTsPi/waN4IvW1569qYEAoGbzZWuCHOnz1UjJ6Ln0qQCAONytK b2pdyh+nPvoMrSNaq7vV+un5IflWyEqx0Uq7D979Fz8LBrQjdCxUTRB6LG+IZzfpiZk6gquYzBi6GGAaS0oIw0XCuO8MNpB0xk5PsnQV8rDRc3y9JIaYfQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 14, 2018 at 09:46:36AM +0200, Arnd Bergmann wrote: > On Thu, Jun 14, 2018 at 2:40 AM, Don Bollinger wrote: > > On Mon, Jun 11, 2018 at 03:43:02PM +0200, Arnd Bergmann wrote: > >> On Mon, Jun 11, 2018 at 6:25 AM, Don Bollinger wrote: > > >> > >> I don't understand this part: I see some older patches introducing an > >> EEPROM_CLASS, but nothing ever seems to have made it into the > >> mainline kernel. > >> > >> If that class isn't there, this code shouldn't be either. You can always > >> add it back in case we decide to introduce that class later, but then > >> I wouldn't make it a compile-time option but just a hard dependency > >> instead. > > > > Thanks for the feedback. > > > > Some background will explain how optoe got here... > > Ok, I see. For the upstream submission of course, none of the forked > kernel code bases matter at all, what we want is a driver that makes > sense by itself, and none of it should depend on any third party code. Got it. > For traditional devices, we would use a header in > include/linux/platform_data/, but a more modern way of doing this > would be to use named device properties that are either put > in the devicetree file (on embedded machines) or added through > the .properties field when statically declaring an i2c device from > a PCI device parent. > > Arnd Thanks for the guidance. It turns out that getting into mainline makes it easier for my partners to consume a header in include/linux/platform_data. I'll restore that file and remove all of the unnecessary items, which should address the concerns you have raised. Rev 2 coming soon. Don