Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp969298imm; Wed, 8 Aug 2018 08:37:24 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyhEZR0iIdBH7e3zqj2rcmp0QUclvENRTftfI9427ZkQ2Lmwg8VajE2ExyEeDVICvaIpTLE X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr3077718plp.333.1533742644713; Wed, 08 Aug 2018 08:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533742644; cv=none; d=google.com; s=arc-20160816; b=iborkl3mXW2hskvyHTODi0kj8yvzKIRXNdwS9EWTuqR9QLhPBzZlkdwLkGCSX7gWM4 g3LSrLvK5NSaR5lnKs5P8DQ1YYfhxgQx2mJ7XoXg72ZJPxo68+iMz6z0SpTw2yIH6CKR 9FHxmPIvtiL4QGoGICXNjsexzrs7LBZzT2cF6nEwd51T/b5FL1FiDAtlnFEpmBwUlR9R TL8xJNbUZ26cCEipivKZgjhg3+lidmcbMD1ztpC0L/Gd+msGoqLW0RgrITFZS/7+tTaM 2RXJiVc6yPJpHtnmzShZhylvcdGDsYENw30AwxWmZWGvNMS7ehlnOTD3RP4sNo7KRssa SStA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=yskxlK8HP/dt20rNOu7PQtYqAortOf6F4fEk7Jpuvng=; b=cG6MGdpGV2d05WgyxG/yy06Hs0/lOgi4/LyoABMbeflFAi23RSdY1hQPoWxP5/cqDM PlATkEVGXTg5zcdxBR52PzypWOQEzlLdkzgLi5jRzXMS1c1l9gb3xr8PkYp9/26aXLZB cnP0lu/AR1GqFXfDuwZ04laSNEIqLLnAUXWc+IXJcI9WjSYlXyhtENMz+uZKEtiup9bL Sy9IRVaa4RSykMWF9vZw2RHsF6m7xOJTYayFSoCQTyl2fq1G6iMFSEOsydpw/l0l/r0H Umn/CqS3n6wKivDOm08l2rEWcci8s4QplZIdfBXqBNAyYa9zE2IDxdODJ/1B5rlETs8T YtDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=0ZP8sK9X; 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 c38-v6si4644643pgb.489.2018.08.08.08.37.10; Wed, 08 Aug 2018 08:37:24 -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=0ZP8sK9X; 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 S1730875AbeHHRzw (ORCPT + 99 others); Wed, 8 Aug 2018 13:55:52 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:39806 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729720AbeHHRyO (ORCPT ); Wed, 8 Aug 2018 13:54:14 -0400 Received: by mail-wr1-f52.google.com with SMTP id h10-v6so2405019wre.6 for ; Wed, 08 Aug 2018 08:34:03 -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=yskxlK8HP/dt20rNOu7PQtYqAortOf6F4fEk7Jpuvng=; b=0ZP8sK9XBdVSH9MobfykpL+Uw9YJ6GOBO4g0FLbw5rMI0ZV/ywOn8AqHzeM19JM6kK ECh4d/wDg7PPGqMse2IUl/Ix+OIGI6Df2mPVv9Rq1pu85PS2f073OpzQUEdfUN1pwYBs 8Bccw/IWu7MjcYyiO3vh2xF/kUXTvH+to2+/GgNlLsoxVIMFsFJ5wbmyyJMlgzSWeEfK 7Km5q9GB/uVVPS79AKQhNixxtH6p20awJFiB1NLu3/ySEVYqRK77kFIK83cjFQiBLY02 zG7QbASRPikl5keWpttElubb+pvL7DgBi3W2iTpENH09QiiHmz4UysXZxWQQp31/OyNJ /cmA== 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=yskxlK8HP/dt20rNOu7PQtYqAortOf6F4fEk7Jpuvng=; b=lYWY1onOSC/YbvkCKg+V1/E/B7dAkkZ4zyDaoZeiCDp0FRswQCxsVSWHy8d+M/Bx4f rtoBF+Psl+W86wJEKEbufLd3N0kl0iVUEJBKR3LokjfuaKUE9+RVQFyaP7Jtb03J8qO8 xNxbEYcjqVXlEBs749hOuzkEYEiJ/bTFZSBcMIMZ1fiPkxthuz4d17VdeQQ2tJslcmD3 Ou9Tr2guTkaQBHQERDYMO7bsqwKnc29o1tzvxABztTxU3Aox0b9G/sVaT8beXx1T7q8N OyUYDHx4aDEzYuOzu9cZ5q1yTyS0j2jjymVX5N8ED6o/k8B3G8JHKDxNgvqOUnibb+dn jDxA== X-Gm-Message-State: AOUpUlF2bpdIzuwMidbN2WrmuA9nLKVA+DnjwNIhN4WwXE9M5637LV8a jkJsVcMiWDpO28rfOifCksjBbg== X-Received: by 2002:adf:e887:: with SMTP id d7-v6mr2321857wrm.43.1533742442418; Wed, 08 Aug 2018 08:34:02 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-MAR-1-609-89.w90-118.abo.wanadoo.fr. [90.118.185.89]) by smtp.gmail.com with ESMTPSA id s2-v6sm5240915wrw.52.2018.08.08.08.34.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 08:34:01 -0700 (PDT) From: Bartosz Golaszewski To: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , Andrew Lunn Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 18/28] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Wed, 8 Aug 2018 17:31:40 +0200 Message-Id: <20180808153150.23444-19-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180808153150.23444-1-brgl@bgdev.pl> References: <20180808153150.23444-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.18.0