From patchwork Tue Jun 26 10:22:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10488631 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 F369B602B3 for ; Tue, 26 Jun 2018 10:25:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8EEE26E38 for ; Tue, 26 Jun 2018 10:25:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC99128606; Tue, 26 Jun 2018 10:25:48 +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 3A31826E38 for ; Tue, 26 Jun 2018 10:25:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934985AbeFZKZp (ORCPT ); Tue, 26 Jun 2018 06:25:45 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33182 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934770AbeFZKX0 (ORCPT ); Tue, 26 Jun 2018 06:23:26 -0400 Received: by mail-wr0-f193.google.com with SMTP id k16-v6so16678814wro.0 for ; Tue, 26 Jun 2018 03:23:25 -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=x9tAz9TB7Rhx1eB/dgg8uF02oHbyRX2HTzlv5KIKThU=; b=OwQn7Fw4iZDmBVfKh/AorNfgjPDWzYYEXR7HARB8jogPtJrhILeDv4fCkzWG7JojDx 9dC1+7fzVl3n30oPneDjkMod/LwXFZi46gAWaYBpVqPcC0riJODYIjixXxe0MMxI7Ghk EFI692j9LODAxYw6dWFZYMfAt6emoaO5UxO5tFt6DTgXKGVdVuSVmX7WjN9bv2U3bERK nYizMGDr1ljdzwPTMhaoZxcQTsY32QCEeS1R7Zh+VIyGFdK43BKJ+3avLLRJN+/21xPb 51/kqkualvED3OAwaJlV1RjRW3dO8hRjzNIM3xduEULiZA56b59KcB82eMVuTFpEzZ5K JaEQ== 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=x9tAz9TB7Rhx1eB/dgg8uF02oHbyRX2HTzlv5KIKThU=; b=BRICGd12BtTyXue4quRH7DuG+tNh5XS4hm5YymTjIaWRpDUaRP1DmVZ5nt2p8vw3KS z4lxSRvb24YvsQp+3veBXEXDj4TI6l4To3eO+kJPWpv6NoyYhmKQOqIconDyZc+2Kp3X 2+SVfGXkjOjT4qFq+Rlkmd6PGPIRDWYBhPprCHaLC5hbCdzkU52faXPAwrz6RX0z3SHJ akQtYY36kljjGMJyj6Xs16TnPw7FzJFRMyKhmmgJaSgrwkT7ax/ZSjB29XTCy0JOGb24 KqUJxeRRbYzFlk3ifKOABRADkTRQr0sifou8BjeyW2d6bmaNMOcQmSCD7qsLIGGsdThb Vxbg== X-Gm-Message-State: APt69E18a15qtkp+pJUBzX4N0EyaFotJLdo5Lwe9sO7VuH7Qj7LLAyTZ ylFgcaTV2h7ONmpcz8PbGnYN/g== X-Google-Smtp-Source: AAOMgpcAA945O4IhPVebSg828V1abNrIo/5REo1onwrXQ3TWHdsaV32JAtJ28qGi1x839joA2ri6uQ== X-Received: by 2002:adf:b839:: with SMTP id h54-v6mr965602wrf.36.1530008604921; Tue, 26 Jun 2018 03:23:24 -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 203-v6sm2573852wmp.23.2018.06.26.03.23.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 03:23:24 -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 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 v2 08/15] ARM: davinci: mityomapl138: don't read the MAC address from machine code Date: Tue, 26 Jun 2018 12:22:38 +0200 Message-Id: <20180626102245.30711-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180626102245.30711-1-brgl@bgdev.pl> References: <20180626102245.30711-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 2ec31ff61dbd..6263e6afcbf0 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);