From patchwork Fri Jun 29 09:40:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10495983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3F8226016C for ; Fri, 29 Jun 2018 09:43:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2840B2998D for ; Fri, 29 Jun 2018 09:43:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BDAC299A2; Fri, 29 Jun 2018 09:43:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B86E62998D for ; Fri, 29 Jun 2018 09:43:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966724AbeF2JmP (ORCPT ); Fri, 29 Jun 2018 05:42:15 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50285 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935742AbeF2JlA (ORCPT ); Fri, 29 Jun 2018 05:41:00 -0400 Received: by mail-wm0-f65.google.com with SMTP id v25-v6so497466wmc.0 for ; Fri, 29 Jun 2018 02:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jOLtKJCxnJbnqKQvbWA8E9QMQLQ8bmWHWXbRtOMMgfU=; b=wr4HQRE3sMQY+zKu7CjA9b7W9TER2hQBDLtm116esFdNjBLUiBY4fQ1VEmeNxpYzNF E2b15rEDJO0c9Whj6g7dmGFwwGS/BloSSrDuQyLHkTuA1pwDwFIidB9sQ5wdQRE3vvLy ft4/ZcoZPENLzb63M0qXOQwiZWafZFvyshkX0723qv8ulttkacldr8pcNjNZK8tABZmq 1v5ggrCcNB9XUb0qyuF1MV5/mO91LNelRyBIYnMO55y+FOyX5f7uN8tvFZozxVdSQTkS fyZ2335/E/aFEAiujw+oAwlEf4R10xzr5IQS0ehGO3FXV1GUhovAkQM9S/wxVSIEuMkU LpPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jOLtKJCxnJbnqKQvbWA8E9QMQLQ8bmWHWXbRtOMMgfU=; b=gPda9jORt/pQ9iZFb/3WklXmWWazldOg3+7yUJGGn0ya6qOMy45tW/PDkpIWJzgF92 IcTyc5oKv9JZMBoDgmKyBkH4c2X99iQY8tSTmM4f0E4FeZ5A1dkT4og+hlaWvM/e4t0Y vxdXVkpDvTbTL2I/47f/Ek/48qxO7HAvhcOTrVuYkmPYaD5Xw7PgmQKVruSD40t3RvUJ HHtPO+/kyn2Kjw5E03C+Jp+TLtClRQIjmbpMsxzfi1ILrO/HtWqcyy1lcOsyuej0U2MO tC+yTzFDWLmeKN2mCJJZJuyjfJp7ORwviRSNsQnNc6lS2vwdcDFs411zcTAWzysprdsB Zl1g== X-Gm-Message-State: APt69E0DsbTx6/p87ncZHmeG90ctrJgYNmZgOXaywLStZTtyjlkitu6q AQWJvW0UZUjUG1CPf1NAQADYQQ== X-Google-Smtp-Source: AAOMgpesV0a0XXZEvpYWn+GihtzTXVYTNl3lHZbM8pXZZtQPhUDZnjaGBZj/6qnA6OaQ3NQKzM15FA== X-Received: by 2002:a1c:d812:: with SMTP id p18-v6mr1280072wmg.92.1530265258872; Fri, 29 Jun 2018 02:40:58 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-NIC-1-55-10.w2-15.abo.wanadoo.fr. [2.15.147.10]) by smtp.gmail.com with ESMTPSA id d102-v6sm1386394wma.10.2018.06.29.02.40.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 02:40:58 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , 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 , 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 Subject: [PATCH v4 11/18] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Fri, 29 Jun 2018 11:40:32 +0200 Message-Id: <20180629094039.7543-12-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180629094039.7543-1-brgl@bgdev.pl> References: <20180629094039.7543-1-brgl@bgdev.pl> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski This is now done by the emac driver using a registered nvmem cell. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-mityomapl138.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c index b5be51c0451e..5c0a0557a361 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c @@ -120,7 +120,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) { int ret; const char *partnum = NULL; - struct davinci_soc_info *soc_info = &davinci_soc_info; if (!IS_BUILTIN(CONFIG_NVMEM)) { pr_warn("Factory Config not available without CONFIG_NVMEM\n"); @@ -146,13 +145,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) goto bad_config; } - pr_info("Found MAC = %pM\n", factory_config.mac); - if (is_valid_ether_addr(factory_config.mac)) - memcpy(soc_info->emac_pdata->mac_addr, - factory_config.mac, ETH_ALEN); - else - pr_warn("Invalid MAC found in factory config block\n"); - partnum = factory_config.partnum; pr_info("Part Number = %s\n", partnum);