Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1074921imm; Fri, 13 Jul 2018 11:01:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe4xtK46OzgLJQJ38rcm8sqQzoQzv96AWZhN9pMQmRrUhSI9Yobx9WrklhSZobUlPCDKr7C X-Received: by 2002:a63:4763:: with SMTP id w35-v6mr6936031pgk.140.1531504915050; Fri, 13 Jul 2018 11:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531504915; cv=none; d=google.com; s=arc-20160816; b=FF33FxHJ/K2N+JFkN+7mYCYr8lhrziCGz7XMLvjDflc4bb4tr84u6AxEEqDUyUvE55 JvwxbCLOHT5Y+9t4e7jKFmwdm5LxFNiipURvggToeinYnyLQW/LWEJ0l2Ae9ejyHl9Np tluiAVCcbY32fs8U5Vk0gn2ZWFt8VSAH0Y4zhCH3ayw+FSxQnJBKmlmJMIpwdBludBzI 5+fHU09WH51bfDx2PHboHuxfFD70YJf5kXOfwWyRBAeD+QLYr2u84XNljhZZmp2/9cgL M6FJrmR2T4zOrbHWUoOaCoq7aQEMbFVKwRsrMVnsIk0B10cFTHdztLwBBmjIlsE/cfqB snmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FBxFggsTk6+AE31MdG6lwBMi3W0q1vsEDThYgPWB+A0=; b=GEhRdKT5IUW0UNJ3soOkUObkImt1v9jjOWv1bp9NSbzqKA7GODbj9L4sX6LuGljAAt NmuNV4PUFVSveiUbFLy5WCSgCbSGRnGLaM/NtGrMgbCd7vGmpR8PUQyTJyS2WswlnhEt I91xNaBjqqujUDFenFqklBQ0L/Em9UvqSYSs/HO4BhtH20ux9j4j4ktuOQe7QonYxanf 0bvD1rzWIjO6xHui1iBwXCl5PyA3Z6MMLmRGjwYAb4IcWsh00pAtALJjKgWQvZlFZCNE rPpaNZdkDreriJaAQgq8dwfzuEJS7+khw74e18nyiak3bzRxXMjij/jNmblqep7O/WIM R9tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jKFb867F; 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 b35-v6si23949168plh.36.2018.07.13.11.01.39; Fri, 13 Jul 2018 11:01:55 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jKFb867F; 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 S1731898AbeGMSPy (ORCPT + 99 others); Fri, 13 Jul 2018 14:15:54 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:44813 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730070AbeGMSPy (ORCPT ); Fri, 13 Jul 2018 14:15:54 -0400 Received: by mail-io0-f196.google.com with SMTP id q19-v6so32055470ioh.11 for ; Fri, 13 Jul 2018 11:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FBxFggsTk6+AE31MdG6lwBMi3W0q1vsEDThYgPWB+A0=; b=jKFb867FTIJRA4baBU13sO5Q3e/LyLo2mXOZDghchUjZbX8SZhUBQpEiwPlJ/Bs3MA XVG+LWp0s9soUSId/x0nFjlAbtkbOOD7QJMz4P0qLY3LAA+cR2FbSTOdAH6o4/tDgfbQ 8r0rxZdIjaj/qhz3FmfAACT/nCkFtqKAwUiiGGsMbQwmH+RSZmHrLXcfITte99HVDqSA EUEAOeoxiusMcGeEdJEh3Em+kRmNNlBQryDrjGgeRdowYduu8bOO+f9K6toi4iuVUqK9 IrsIveTrRTHzKa0hgeGKjIS1bflQc1pSbP9zJ7A2O7AMArZLOLIO+JFOM6xFFMop0aiv //9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FBxFggsTk6+AE31MdG6lwBMi3W0q1vsEDThYgPWB+A0=; b=pjVwnXIuXKpVghq6VLsg1km0/jI88C2NgbcVpUSog8tnWcIMSEQxjLlQi+/Ho/Xixs raab5Xx5hFHXQGNbOUdJj4FSoVDrx+yyAdN1c9uFXuY2XHaNcv1mDkTe0Z5gmS2L0K6V OE2xmDS3NMK9HRm9ieO2MKOLR/WqVLJ9V5K4Na2Gfk1iE418sq+IHcgEeAGKiC40wqV5 4ASe8qLgI0N1PyPBibutoBOayBM4YrpEhSAEquvyTJesSTHu2X3WGfoPz+4SWSOjX4cU 9ZK9PduEmSuKwfp6lX4M7RfSx7E6dsSoHrGx4t9MRAOpaF27Vy4HUmj81ehYwLFMNol2 ZnEA== X-Gm-Message-State: AOUpUlE3VYNusoZQ323WS6MQVAz0l0ekrnHuRfWL5xR3ed6KxE82b34H kYhgeilKg6ACmOeIkrbt56oS5/UZxUebD5T7Va/rjQ== X-Received: by 2002:a5e:8d07:: with SMTP id m7-v6mr8860991ioj.258.1531504813722; Fri, 13 Jul 2018 11:00:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5e:9402:0:0:0:0:0 with HTTP; Fri, 13 Jul 2018 11:00:13 -0700 (PDT) In-Reply-To: References: <20180629094039.7543-1-brgl@bgdev.pl> <20180629094039.7543-9-brgl@bgdev.pl> <03b77e24-9ab9-fa01-2387-9de0408a9942@gmail.com> <20180704070919.GA14051@lenoch> From: Bartosz Golaszewski Date: Fri, 13 Jul 2018 20:00:13 +0200 Message-ID: Subject: Re: [PATCH v4 08/18] net: davinci_emac: potentially get the MAC address from MTD To: Sekhar Nori Cc: Ladislav Michl , Florian Fainelli , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Dan Carpenter , Ivan Khoronzhuk , David Lechner , Greg Kroah-Hartman , Andrew Lunn , Jonathan Corbet , Linux ARM , Linux Kernel Mailing List , linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-04 11:04 GMT+02:00 Sekhar Nori : > On Wednesday 04 July 2018 01:59 PM, Bartosz Golaszewski wrote: >> 2018-07-04 9:09 GMT+02:00 Ladislav Michl : >>> On Tue, Jul 03, 2018 at 09:39:51AM -0700, Florian Fainelli wrote: >>>> >>>> >>>> On 06/29/2018 02:40 AM, Bartosz Golaszewski wrote: >>>>> From: Bartosz Golaszewski >>>>> >>>>> On da850-evm board we can read the MAC address from MTD. It's currently >>>>> done in the relevant board file, but we want to get rid of all the MAC >>>>> reading callbacks from the board file (SPI and NAND). Move the reading >>>>> of the MAC address from SPI to the emac driver's probe function. >>>> >>>> This should be made something generic to all drivers, not just something >>>> the davinci_emac driver does, something like this actually: >>>> >>>> https://lkml.org/lkml/2018/3/24/312 >>> >>> ...and that's would also make it work when MAC address is stored >>> in 24c08 EEPROM, which is quite common. >>> >> >> This is what the second patch for davinci_emac in this series does. I >> agree that this should become more generic at some point - we should >> probably have a routine somewhere in net that would try to get the MAC >> address from all possible sources (nvmem, of etc.). This is somewhat >> related to the work I want to do on nvmem to make the at24 setup() >> callback more generic. >> >> Unfortunately we don't have it yet and I will not have time to work on >> it before v4.20 so if there are no serious objections, I'd like to get >> this series merged for v4.19 and then we can refactor the MAC reading >> later. >> >> How does it sound? > > I don't think the series introduces any regressions. We need to have MTD > and SPI flash built into the kernel even today to get mac address on > DA850 EVM. So from that perspective, I don't have objections (I need to > actually test still). > > OTOH, it will be nice to do the conversion once and not piecemeal. That > way there is less churn and scope for regressions. > > So from a mach-davinci perspective, I don't have a very strong position > either way. > > Thanks, > Sekhar We're getting close to rc5 so I'd like to make a case for this series again. I understand that there's more to do than just the changes introduced here, but we shouldn't try to fix several problems in many different places at once. There's just too many moving pieces. I'd rather start merging small improvements right away. The idea behind this series is to remove (almost) all users of at24_platform_data. The davinci_emac patches are there only because we need to remove some MAC adress reading stuff from the board files. Having this code there and calling it back from EEPROM/MTD drivers is already wrong and we should work towards using nvmem for that anyway. Currently for MTD the nvmem support series seems to be dead and it's going to take some time before anything gets upstream. So I'd like to again ask you to consider picking up the patches from this series to your respective trees or at the very least: I'd like to ask Srinivas to pick up the nvmem patches and Sekhar to take the first, non-controversial batch of davinci platform changes so that we'll have less code to carry for the next release. Best regards, Bartosz Golaszewski