Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2984503imm; Fri, 10 Aug 2018 01:34:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPytpZYV1t9WdxXoIoe9rYl/0gdI4lPMoj2C0/+kUWyYV0XzObF2i2TzRZgcs/HLkEblaQjk X-Received: by 2002:a17:902:b709:: with SMTP id d9-v6mr5326322pls.138.1533890050687; Fri, 10 Aug 2018 01:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533890050; cv=none; d=google.com; s=arc-20160816; b=NmgmKYi9mKfckSYmfh4lNgtRlLw9bCsfwejamXqjAY494ezBwiFEqruKzJQlrv+Qw3 AciWQGAyli/5S92DBpnhMQXKl2X4/wisUuIHAbQxI+qaQVznsYs1JDdB6iI+54ThAUQO HbnhHk7n0Xz4WkscY9oQctCbWzgnoAt62KEbI/Am44IchABAY/ZpWMnp9oUa4n0TVVIz F290ppzYjepdbS/dpfeppdDB+sCPz5ouyQcwzZhFG7n8igNV6mtzAddta0Asru9ifse4 qFfFnyQqMHQmGdo5CdrrhCNgjX6mhfTra2rwhGHpWbBxH8nTnB85bQnZOPVPc28+m+Y9 IGRA== 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=7hGAs3eonwoCQnALsYwyOyrZG60JWD61CbSNH1Ct6wM=; b=Zuyu1srWmPPJqI+oZ+coS7O9QwLzgkVjkn3srbwz+Cmtw8fAvFaq/BTqXr5VxSUrm1 FvSuqNrkBLpDFBMhx+vCXqoYOPA+Wo7ANY3tjb5bugXP0cdxxq2NhWO2eC2XKuXzb7Nl smwPD7I1seXwwfLfXNXlPq2b3CuCzf77WdQt9qwv2Q09CW6wt+9ESvzUwXEByTHEXe/S fwwfcchmW1iuDk1n1eWfmxC2FzDiTdFnDDOBJpa+/ClTN7Z+qarVCxiXUbGSQZx3QVB5 eYQtgwCPsHBSQ3MrTib8y5dOKxuklx/a31R1O1YHd1vQkXJUFSaqyH+4K5H/stgTgiv+ PFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=TW52wLxb; 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 a3-v6si6381564pld.123.2018.08.10.01.33.55; Fri, 10 Aug 2018 01:34:10 -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=TW52wLxb; 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 S1728362AbeHJKey (ORCPT + 99 others); Fri, 10 Aug 2018 06:34:54 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:45348 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbeHJKey (ORCPT ); Fri, 10 Aug 2018 06:34:54 -0400 Received: by mail-wr1-f44.google.com with SMTP id f12-v6so7432664wrv.12 for ; Fri, 10 Aug 2018 01:06:09 -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=7hGAs3eonwoCQnALsYwyOyrZG60JWD61CbSNH1Ct6wM=; b=TW52wLxb6U1S+RUIaPLZ6sLVh1ll5ayu4Tyxowh2V1yuOjo6qbPK8H0aTaBmRKlnFv SrS0jHot3Dwd6t0U6JIwAFAPBdoVjIW3SPmji9a8Z+EJSOIkCSrFS8F/K8Ezh9vI/ctZ +mxkzFJR65rNeIiq7Jt3JG7QLORDmLsbuCCSQsUycS+22h5v7szEm1I+E/GOE+mX7MV1 p7o5JN8tFkOE7r7rfpNe4BR73GiWTKa9GRuBICd8/bOwByErKcAD7r31paEBNHbtkySl DrGTWalChwpg2xfIzRYexE470R+mlhJWo+GinWS31pX0rx5vZMqe4s06IE73hLzu+CQw ii1A== 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=7hGAs3eonwoCQnALsYwyOyrZG60JWD61CbSNH1Ct6wM=; b=fOXrdZ/5pagzGUubWxYoHF2XvC5iFNlOMpbmfj83/zYfGlpXEk7xdkxd8OOOhGklU2 7dL+L0p6jksRCwV7O09vseyP73SB+WL0vQYPNUOdGcuKB9TYWna3y9ogH2/vBZ0sjLIL z0+2+8Pn7igDJDR4kJl/p2lkQasMk6pVLOJ76CbWyYU8eMJdM2bki3dd2U/JWpM3KTyF m8p5xZdPZHlKzUncrKZvkK//vYD2bNb341w2031WMYolmTsrvNJZ7RAdt71v8y4N4wum TVllH2ik7Zidy9c/7IyrYOQ3HEMUGfk6yUpclFlnXVO+RgmjjD5GcPO6IzEGXznR0cGn jAEQ== X-Gm-Message-State: AOUpUlEnMccZoRcZKfzdf0xXve+TrFrOzO/iyTjQNcBhrZQjmxLDBWTj QJg5oeyqT8qI4TMtF6lgV9OOhg== X-Received: by 2002:a5d:41c1:: with SMTP id e1-v6mr3517699wrq.25.1533888368546; Fri, 10 Aug 2018 01:06:08 -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 h7-v6sm9546405wrs.8.2018.08.10.01.06.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 01:06:07 -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 v2 19/29] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Fri, 10 Aug 2018 10:05:16 +0200 Message-Id: <20180810080526.27207-20-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810080526.27207-1-brgl@bgdev.pl> References: <20180810080526.27207-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 48a9bae76e4a..35b2b6068a7a 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