From patchwork Thu Jun 28 14:32:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10494117 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 89C8B60230 for ; Thu, 28 Jun 2018 14:37:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 714F42A0A2 for ; Thu, 28 Jun 2018 14:37:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 633652A0BE; Thu, 28 Jun 2018 14:37:13 +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 E01192A0A2 for ; Thu, 28 Jun 2018 14:37:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966385AbeF1Ogx (ORCPT ); Thu, 28 Jun 2018 10:36:53 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:46341 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966682AbeF1OdY (ORCPT ); Thu, 28 Jun 2018 10:33:24 -0400 Received: by mail-wr0-f195.google.com with SMTP id t6-v6so5743781wrq.13 for ; Thu, 28 Jun 2018 07:33:23 -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=KhjR6YwApHddMdYY7GngMCPJBStSJ4yNZFujpMhWRboYIegUOb3dNd3IgglzVtqZmJ fTiMT7d5fGikbySSyHBOvyfwKfxvBUBArtsYrnDw/9cUbi+1qvcX82A95ZfJ90u+pihd GrEuafL94Bt3Yu+eiladN/cY/6kK1uYl5NOyslF+l828KBnzfWvmV+SajT8cX2zT0b4w X7nmyPZc6AngMBd9epc6UCfsIGGND/EVxU63Lfc/OhBKvgAVVf4sWxoa6A9gg8a56sw9 qxzYPgHulaSvglQmMhkzoIc1ocWywI6W6EMTYkBPipfT+imMtIsL7aWCX/rStDMkf22h 69Ig== 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=hBLI+IbkG9pKkTEi6Zv/dHbDXgNDziI13QyKbve/4w/RjaVw3ZMl8X23wq+0GXtwNn ndVsa6lFK7gXIrB9cZJQ55i0EcptqYsslzQ0yN6+iWle4vKhz+//2CbuJ5C1WJXs+wof tgdSnJ9GMWTPgqHlpSULV9iI/qlcM6nvu0hzFD4jbm0kUFzlygRo9itZ3/omV4WzJ3Qy /zQKGma8/O2N5Lr13p/cCt6mP/c5Wbv7X9OVAWFtn78xiVBRSD8aUJqWnx8JL8jgCKJX HUojLmuYiXNcWgAtkMCRGOlwiWf7CnIz3XrUl5ibSZ4R0thU1D04KjH9sD2aNDliceG7 AUKw== X-Gm-Message-State: APt69E0o4L/YlOGtoFZgWmob7V6On+VtPb1QVzk8ABwMSPj2fqyxCImc BhPwJFU9Cd8Q6TDFw0UO75zNdA== X-Google-Smtp-Source: AAOMgpdxGovLwDoEewrO8MvkGgVb0qf4+H365n1fEykRhoFct48eFuX5TkxHuojc4+EW04js6crm5g== X-Received: by 2002:adf:fed2:: with SMTP id q18-v6mr9346815wrs.165.1530196402987; Thu, 28 Jun 2018 07:33:22 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-87-41.w90-86.abo.wanadoo.fr. [90.86.29.41]) by smtp.gmail.com with ESMTPSA id 4-v6sm8037499wmh.14.2018.06.28.07.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 07:33:22 -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 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 v3 11/18] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Thu, 28 Jun 2018 16:32:37 +0200 Message-Id: <20180628143244.4561-12-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180628143244.4561-1-brgl@bgdev.pl> References: <20180628143244.4561-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 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);