Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1362985imm; Tue, 3 Jul 2018 09:49:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwC1LCEp4B/6UYxUS7TaIpYP6VVysmjE9zharYMWq3Bn7p0PRJ0qjQKYxF7FWxZyDEz+cz X-Received: by 2002:a17:902:8c88:: with SMTP id t8-v6mr9216352plo.117.1530636541602; Tue, 03 Jul 2018 09:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530636541; cv=none; d=google.com; s=arc-20160816; b=0HepYRPHPGokQVxelHDQ/zuk+BefkEhZy+sbRN9gIXP7QG+z4SWPQo50uAoziE4SOy 7PT7CA4VBhth2WHI8QbdWGz753FNsaMKJ71pTONV1cZ4UJNobdQVbJ2DksWLDWevMv42 p5g699Vsvul8PjEGDSl44sONq8lmUglpFelX2VRZUlfxtSfrPerYlKiolGYg7kL4AtWj j2KKgvbFI1gHoVJx2B9qOPIlT+A3uI0t3VgEQLL8cNZrCfD/hd8JMGZLm39HMjqmgmjp qXEDOIpyVAJsTYFkBIw4hF+GzMaHb9Dj3r83MH/+9rHD4Z+I/UHKOOH+K0sALaUSlYyh EbhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=dZ0tuJT+8sRAPhUeMcO/8RQYnUkZQeN1qjmAE9fKA7Y=; b=BR4h669cuR8qUAQv4p7aIuVtX4CL+cc4nUYw2vil6sCHq/wqRKrbtQzsjSDPb1iD2Q zV+YGkKa3DoovGHrQO7Mg6NsiDd25zSfgKg4GjFDJKWd9YuP/EUKFqnF7TxD9dOeHbrg KmLZX1BNdoGNAiQ/IQank/kGei0F5SdGGWCtNh/cQ6G/2giGsm9e8XeG3GcQ3mq4h6Pr R9XsQRZx7uzFahjh5Ky97qyafkHuYpcUbceoO/tFWca1IKqfTV5S7Y4Z13Q1PhjWKInH JeF2FDtGQHOpeVsm554eoGVwv09p8TG5nuoBvoXMtjr2HcjrOv/rkbnQLybtgwxYa8le Gqaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b="Qx/Ds5z6"; 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-v6si1440237plt.374.2018.07.03.09.48.47; Tue, 03 Jul 2018 09:49:01 -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=fail header.i=@lechnology.com header.s=default header.b="Qx/Ds5z6"; 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 S934083AbeGCQrZ (ORCPT + 99 others); Tue, 3 Jul 2018 12:47:25 -0400 Received: from vern.gendns.com ([206.190.152.46]:37003 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932759AbeGCQrX (ORCPT ); Tue, 3 Jul 2018 12:47:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dZ0tuJT+8sRAPhUeMcO/8RQYnUkZQeN1qjmAE9fKA7Y=; b=Qx/Ds5z6Us9IMmlp6DpuXStH6w 79aHwzR86Qh2aF0vOMKGStOSuUfZJDpoXGEoPu+8IGhiv3fydHzV6PGZytjAe+OM5K7ivRjA+7NaW B19THACU7S9Q1u0OlmHYuhSl6+nzehruAiWKmZ/0uCjTuRoo9sDjzLq4kFL5CnhdXTBmVyXGcpT+u foIp6X/yNXBfK7t2bRBhy9/LqHkGY85oPVEBIZ651hq/iWh3Nz3fw0dtTmDyWxNATJFXAHK8Cv7EW 27nPZqCZ9jXFksZy3BIhzN7gSe/X3RLPNz50yFFgp8LIwMcp0T/HVV+ZL/ZiDK7dHkjoBDisk73Ai e/9p9i/w==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:58838 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1faOSU-00HTG6-Sq; Tue, 03 Jul 2018 12:47:19 -0400 Subject: Re: [PATCH v4 08/18] net: davinci_emac: potentially get the MAC address from MTD To: Florian Fainelli , Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Dan Carpenter , Ivan Khoronzhuk , Greg Kroah-Hartman , Andrew Lunn , Jonathan Corbet Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski References: <20180629094039.7543-1-brgl@bgdev.pl> <20180629094039.7543-9-brgl@bgdev.pl> <03b77e24-9ab9-fa01-2387-9de0408a9942@gmail.com> From: David Lechner Message-ID: <83c551d9-9e66-fc72-7f8d-c43337d05a71@lechnology.com> Date: Tue, 3 Jul 2018 11:47:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <03b77e24-9ab9-fa01-2387-9de0408a9942@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2018 11:39 AM, 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 > I was thinking about suggesting adding a nvmem provider for MTD devices as well. It would fix the kernel config dependency problems I was running into since nvmem lookups can do -EPROBE_DEFER.