Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2926209imm; Fri, 20 Jul 2018 07:17:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkPiKX9pxFX4PBRomdl22A+Rjk9/r1L9HgxoQLZEt3zu8OLwFTaYTA4rJI8B7GVwihHpNo X-Received: by 2002:a63:d80f:: with SMTP id b15-v6mr2286586pgh.347.1532096270848; Fri, 20 Jul 2018 07:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532096270; cv=none; d=google.com; s=arc-20160816; b=soLueVHh/laueFfpgaMtVwL0EWH8RIJSmk8g3sQ6rnb6zCkQLGigLFmdxJ8KUr8orL yKTwkoxFdgniDeY95rOuWcyuI5K4z4ohPjwKZyF0q7glgcoNEmrI7GHOoUnIBH92AkGp L8OR6cH6s+fyI9aatehMfilwFgRzFp3q1SR/TWUPEDDxXYENUl1WStlk3Ki7ZejAD8YK hwQzMS3C1gRb0vvdhNUKSTUKlwlCLu8J45ymekg8Xdn23cn/kN5s3KX4we8Vbk+K+fy5 mi0O9Vu7u/SKl7GrRx4u0odFcULhC8sNPchnsaLaOcp9RvtFe+kQk0KGoa39ponpNa4u +SyA== 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=eYdCJpNWxgu+UtNhpuwoVQYntBf8c7eFSJg+EM38H6w=; b=HIM7mPuPkGWwkPkvLGUkv6541NToTYgjs4CE38NXXTRMiiNMvqDP9UWxrw4toiKoiK lTjDLHHH5JqGWJyD2IzuunrXwPHiXhSbQTLkLV/z3I8UuVJHC7xdrhpQnkAdvpm97sOI jkMqtztaagubGGmNuG9W+n5HjaL9VR0FmmQ6o0ol/HBmv4N6QOLDtueoAZo6fBWUtIQU o1IqKjCwzbQX0HIGuVsJjwtn5sU3ZABryA/p1ottReaEoBr0DDoIztpVmJdKyQaTNXXw 97WbllDYEiWzlwD/X56bhsnJNLZ4k8MqD6chmkx8pCdq1qmZS5xzVvgcedVCNEhuyea6 tc0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x1V8JQe6; 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 g35-v6si2002952pgm.54.2018.07.20.07.17.35; Fri, 20 Jul 2018 07:17: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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x1V8JQe6; 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 S1731817AbeGTPEw (ORCPT + 99 others); Fri, 20 Jul 2018 11:04:52 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41291 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbeGTPEw (ORCPT ); Fri, 20 Jul 2018 11:04:52 -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=eYdCJpNWxgu+UtNhpuwoVQYntBf8c7eFSJg+EM38H6w=; b=x1V8JQe6BZ3fMa543EahjY/YVhOCcVQYsvdEUaylXE4iP1pmqZGUcLb7BoMvJDp0U6qIt/WEI5IeO/3OyrDdgmX2CZ7ayiGaUFGgeATfRqd1HBnuliDGQw7f8g5F09ETjsBt+ZT8K6/gxs/2NTwf0huYYOyUN633ZPHcJCzkN6E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fgWBu-0000Ni-51; Fri, 20 Jul 2018 16:15:30 +0200 Date: Fri, 20 Jul 2018 16:15:30 +0200 From: Andrew Lunn To: Sekhar Nori Cc: Bartosz Golaszewski , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , David Lechner , Greg Kroah-Hartman , Linux ARM , Linux Kernel Mailing List , Linux-OMAP , netdev@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 5/5] net: add MTD support to eth_platform_get_mac_address() Message-ID: <20180720141530.GA1034@lunn.ch> References: <20180718161035.7005-6-brgl@bgdev.pl> <20180718164737.GE12477@lunn.ch> <20180718170352.GF12477@lunn.ch> <20180719150138.GC9119@lunn.ch> <20180719152712.GE9119@lunn.ch> <0355bdd8-f544-c462-99e8-da94488067bb@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0355bdd8-f544-c462-99e8-da94488067bb@ti.com> 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 On Fri, Jul 20, 2018 at 10:47:51AM +0530, Sekhar Nori wrote: > On Thursday 19 July 2018 09:05 PM, Bartosz Golaszewski wrote: > > 2018-07-19 17:27 GMT+02:00 Andrew Lunn : > >>> Unfortunately: this would effectively block me from improving the > >>> support for older davinci boards. > >> > >> Is there something blocking you from converting the board to device > >> tree? This is something i did with a lot of the Marvell boards a few > >> years ago. For a while, we had both DT and board setup files. After a > >> couple of cycles, we killed off the setup files. > >> > >> Andrew > > > > Actually some board are supported both in DT and board files > > (da850-evm) right now, but Sekhar wants to keep the support via board > > files in the kernel so that's a no go. > > Its not that I want it that way, but we cannot get rid of board files > till DT has equivalent support. > > The bigger issue is not on DA850, but on the 5 older DaVinci SoCs which > do not support device-tree based boot today. The nice thing about board files is they keep any ugly code near to where it is needed. The proposal here is to put some 'temporary' code in the net core. And it is assumed at some point somebody will write nvmem over MTD, which can be used to replace this temporary code, but that in itself needs an ugly list of special cases when using board files? I would prefer somebody just did the work to convert these 5 boards to DT, with a clean design of how nvmem over MTD would work. Having converted a number of Marvell boards to DT, i have an idea of the effort required. If most of the drivers already support DT, it can be done quickly. So the big job here is probably nvmem over MTD. Andrew