Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5399373imu; Tue, 13 Nov 2018 06:05:51 -0800 (PST) X-Google-Smtp-Source: AJdET5e4EmgghGyqlynlC+mhTkT1QPRrqMsVQqyw6c9Bk8ZqmTr9vlozGccQBgPmP/OHnlFqXJiN X-Received: by 2002:a17:902:bd8e:: with SMTP id q14mr1001388pls.146.1542117951615; Tue, 13 Nov 2018 06:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117951; cv=none; d=google.com; s=arc-20160816; b=xjbwiws2+s6CNjtuq8pAA4LJhNB1FJDup64dkEGAmJE1TezBLcGTX6XnihFbl7h24M rBBXfWUxfeanZHfvJcKV++akMPs0AsnSrSpj0PDvxJ/WguY3xqhhzpHanp71iYoLDVi5 tVkbVNKSctSh5quAkUVmlJNNwtg+BZFsT/B2XREYcavBZ2Wa8mRsCdjQava4Nf0z6nbF bxAmuZ+LdlOMAAvSNvfo2JkWuMku/erD+WQJ73qtpN/oOWTYx1g0rH1Jvp+6fZNEmd85 7yI+TOcqmCJTHOvkgVB8elHQN5Vz7uq4MYOgCN7GBJbRNu/fpTc6JtrtlYJmDqHxPMXV AgfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rzIOy5k8NvgMAGaMyhICjOaJC80/j9SQ1XPs3RN4Qj8=; b=PWzKZLz2M3o/PI2zMLkPzTQMTDsqY9SNmAh6EfjYwvYflEOjiwzC+5TRns9U90AiKS vfsHEvBpdII/IKx12BTA6/Sod0YHJQL53PGM4cvxGcn64gAPOvwB5LNSoEpiKT2suKTw T+zIiEIT49rFAA1XUdISl47wD7l4JxhEDsXoWnJFEI1LsK8i2cYqyIT/+VB78BCSrrQa UQhJ3Sz/RFI/6vQnYq1n8t4CZpNZVA5+PGNuP0irDs/GMGkDFKFv6Edbhpkotf/qKAHh xHkTC2MYJnsa8+Fc62t1IQj6hcveKU23A40bIOlu1cDoYO/PSKbrFvw8TrfQnkJxIBjl iUEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=czxsBaTI; 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 33-v6si21974943pls.173.2018.11.13.06.05.10; Tue, 13 Nov 2018 06:05:51 -0800 (PST) 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=czxsBaTI; 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 S2387969AbeKNAAk (ORCPT + 99 others); Tue, 13 Nov 2018 19:00:40 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53074 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387968AbeKNAAj (ORCPT ); Tue, 13 Nov 2018 19:00:39 -0500 Received: by mail-wm1-f68.google.com with SMTP id r11-v6so12019577wmb.2 for ; Tue, 13 Nov 2018 06:02:21 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=rzIOy5k8NvgMAGaMyhICjOaJC80/j9SQ1XPs3RN4Qj8=; b=czxsBaTIPylrdoZnIop/vzqSbcMKwqBFiN/pcIU147oEk9zTP3NdX9TSPh78RwQtE9 3jRDWdnsbuepnfF0ABAlMrqHS87O+5tsZ9sbMTyQBOpifi/7XMrMX/V7gwZodPwGsJGi dqVY+O4clHSia80j4pbhTM9h5nt6AVkTadJxhRQYOmlYeHNwoi2CRAGHTiDNUDPsXys7 0HKhWFEeX6T1V0Up53zF8ieYCV7cF0dbCYEzPCRajntX2XIQJoiQwtUUwXeV2TEJ+cd1 Cbd3d0z6KKefOsE3gRi19GLQivBI6DvvhWfLII38bPV+xKCsUWZVviX8ATVE12fXl0Qo rryA== 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:mime-version:content-transfer-encoding; bh=rzIOy5k8NvgMAGaMyhICjOaJC80/j9SQ1XPs3RN4Qj8=; b=HVcio/+pt7FAcixVU2nyIPiI3vBTj6Kk3N8oE3aagIs9yCtAts/9SADs/yS8J3wT9f RZnYgtThNMjsm7sEtYj0x1D3qa/Cn0cqp8StWLBB9w3yaZa/AZrvGit0RxPVOEb/CbdU xSpU5eV/fWlwlgVUWipjL7/9eLp+tfbZFUML/kBlICumIqZG2U1DmIroBzO6/t5P9oyq iPm1v0a2F06XWfrIPGO8ZKDWTuInF/0DKXs2tuDMqHIKkHMBdcLbqGl/FD/zUw1gyyyt 1k2D5a76sfE+NaGQu+lgoI/0WqJgQ79iu4ccIO6LWwoZ1oQnLmGsfkXz/0hzMQMNIlsV debQ== X-Gm-Message-State: AGRZ1gKZlbdzW9VPFZ+wkgXeqCvDGooS5d9QUWkziTFzEBxzzu62AKOa cWvEffy0rFiyL4iLh8duP5YWHA== X-Received: by 2002:a1c:b8d:: with SMTP id 135-v6mr3273167wml.128.1542117741207; Tue, 13 Nov 2018 06:02:21 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id m69-v6sm16604122wmb.8.2018.11.13.06.02.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 06:02:20 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Nicolas Ferre , "David S . Miller" , Grygorii Strashko , Srinivas Kandagatla , Andrew Lunn , Florian Fainelli , Rob Herring , Frank Rowand , Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 15/25] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Tue, 13 Nov 2018 15:01:23 +0100 Message-Id: <20181113140133.17385-16-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181113140133.17385-1-brgl@bgdev.pl> References: <20181113140133.17385-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 8df16e81b69e..3286dc2457a5 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c @@ -121,7 +121,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"); @@ -147,13 +146,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.19.1