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: 10496033 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 8C4C16022E for ; Fri, 29 Jun 2018 09:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70898298D5 for ; Fri, 29 Jun 2018 09:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6334B298D4; Fri, 29 Jun 2018 09:47:06 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12F93298D4 for ; Fri, 29 Jun 2018 09:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8TNiR1zkQlOfZDPTOVKDLmDjvmlwm+sPoHLes/O56tc=; b=KAqbLoCc3PdJCkn/4+SqVsXmmF C32/4AcBRKLlKbxMdeRt3OYWwhY6dbTCEuv/FtgMkreM01leu11uAgE3JK8hzgzJOcmwnrq66bNSQ bF5qPiN9q8X+vocwgd8Rhroi2MSyMZFrSh/ZJ/Ye7G/zIS1YEs3oVaWCC0xW7tMwHSrRqofNfxUQ6 ulH7CNopv0W5B1nMPQ3QVnd6rGQGApfQW67YP+aycVhtIHclMe0d4BWJ4Fx6BZ2d2eGDUNLYSR21i RNASAKW8W8FVJPmu3EGL2dR9Ym+4M1jDo3iVPlg4Q4hjNq5l0UyxFuhGchrK/s+l7exXTfP3bXu6a TZPJ3mhw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYpzS-0004ye-Do; Fri, 29 Jun 2018 09:46:54 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYptu-0000hb-HD for linux-arm-kernel@lists.infradead.org; Fri, 29 Jun 2018 09:41:17 +0000 Received: by mail-wm0-x243.google.com with SMTP id z137-v6so1377879wmc.0 for ; Fri, 29 Jun 2018 02:41:00 -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=eFRVtZifcqJAQD6RLauzAxgiTz8LeDBAcmgIJTEJBUMPofzfGJWnUGFJknscUam1tU 3IPbzfI9q0pCawK4uUXq1y1dOprTbZxxjKhmH5IHFRkq8PCmxUtB5tWvbv33e1EMCKBb dJI/8CNY7cQeydUhEKXfKAL/iudWRQygKlYMnaULINtSceR3IelH+NC4EX0uM+j4O3ph 15F8W/rlpMK4+LhrDw2O7qKj2XY5rWofT45A01aZAtMZDHfkmcRxMOvumjbvT0D6iQm1 V+uX/WbvU6zYHXDoiYq5dUyotvEUxBIwc/TfwIDRIZYZ2Y47WpTU887OPEIiL+lZDzfn 4YRQ== X-Gm-Message-State: APt69E2zSCKDupuyf6apVT0vrLLtwTQwLDJf7CS5TaNbqeZu2GDWIg0S R7Ur87Tf8fRW9g6MViw4XnBDTQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180629_024111_634312_7E5E557D X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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);