From patchwork Mon Jun 25 15:50:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10486829 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 3CBA76023A for ; Mon, 25 Jun 2018 15:51:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 237E227DCD for ; Mon, 25 Jun 2018 15:51:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16E58285A5; Mon, 25 Jun 2018 15:51:38 +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 A3B2427DCD for ; Mon, 25 Jun 2018 15:51:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbeFYPve (ORCPT ); Mon, 25 Jun 2018 11:51:34 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35431 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754339AbeFYPva (ORCPT ); Mon, 25 Jun 2018 11:51:30 -0400 Received: by mail-wm0-f43.google.com with SMTP id z137-v6so4874020wmc.0 for ; Mon, 25 Jun 2018 08:51:30 -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=x9tAz9TB7Rhx1eB/dgg8uF02oHbyRX2HTzlv5KIKThU=; b=O4qOG1uhng/aL4D5B9SUpsXoE4H69H/8WWLN23msOM4R6xpu9z9Z2lB47+DRibee2o 0KpQodfZEpdpui89NE3lT32jP14rxruLKUXSvFldPBxgt6ftspL/nm82ebyNfoXkQ/wj +Utukf925a/nQQ6r4wE6p1Qp8qNpSSCqXPpK12nKF54ca88YBvlVqoDfVeY3ykLLqKaf 70E+pMhRLnzWjsubyCypai2W2aWEzIYvZ9w1cyDinh/gtJbC7fGYHonD/dIwyZejZdcj HWyK0NdW5t9wIZtipYSCw/ky8zy+yeMjTh8LRCLaGSlXwAifviHaSPTAerdazfUGPz43 OGJg== 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=x9tAz9TB7Rhx1eB/dgg8uF02oHbyRX2HTzlv5KIKThU=; b=ucwNpUsFCWYsgiYHFyrkiDKfz7k5S12rquz+AvgzWM3f2SnevpChTXoBlDEFlfvgYZ 3UoU0RZRIAtX+SPH9V4en/T4OQk3Z/Qtq0ihEMTP7dOA6g+MUWdyX9pW1yjuUcqdzCS3 jMujWgnYb50eq+QPb8hxrYknnvLsSZK7TRemN1ZKQUBvkhb7uMAkuvo7aWdPxrQXQVRx xtCFgjzNvpct3GzxnKgYnQeXRvb4e7vXSDADmVjUGoPNLAMlyPpkQyab3jHY01TpyFPX ipE+yvK381ck7ZhHJGRCys+gIMczWZBPf0A/x+HAYHwEIWo1D8Uk4pATtZXkUj0BJoHJ MPNg== X-Gm-Message-State: APt69E0h/2ksnOD1lKKJF7WntAceC3zcU73IxcXAfLbHAKcTBJ/G1UbY Q/7A63SpfJht4mwyC4ZB8UWDBA== X-Google-Smtp-Source: AAOMgpcII9hPRSyzDgelkg+sU2v5tkcyK5Hi9Ij50VpvyEQ9nP+jsBNymaPdXFcH3ug9ywRXnLv+mg== X-Received: by 2002:a1c:8f50:: with SMTP id r77-v6mr1527308wmd.77.1529941889347; Mon, 25 Jun 2018 08:51:29 -0700 (PDT) Received: from brgl-bgdev.home ([2a01:cb1d:af:5b00:e837:b8d5:48c1:571b]) by smtp.gmail.com with ESMTPSA id x16-v6sm3523737wro.13.2018.06.25.08.51.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 08:51:28 -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 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 08/14] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Mon, 25 Jun 2018 17:50:19 +0200 Message-Id: <20180625155025.12567-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180625155025.12567-1-brgl@bgdev.pl> References: <20180625155025.12567-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 2ec31ff61dbd..6263e6afcbf0 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);