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: 10488679 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 3FE56602B3 for ; Tue, 26 Jun 2018 10:30:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B1E92887D for ; Tue, 26 Jun 2018 10:30:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E9F72887F; Tue, 26 Jun 2018 10:30:02 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 990FD2874E for ; Tue, 26 Jun 2018 10:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FB9vU5X8xrnxpHZIXMyoZyAdy0ua+Bob1dxXWX3SfQs=; b=cC1/F5iYvkoj9YcTYVTTuXl+YS pC7CzpMVAmqoFV1e1LnPTSNcS1TU6FkSy7kn7deQc8ppYiwjYR4JPWpE2kbyvmkCIQriEo5V6cASE b0faz0W6TzngmSVs5dkWggNexnCn8cEFDKy5qi3TJ4zJlTwcBuihHGmRr9kWRUXkld8G5ZaDcJZbA Nm0Y+L6EX36PLth/tRgpE3knktfAJFYEeIHXs2uPdt/2wGW3Q/aLn+/nPis/j04fEf3XOUBR82Wz0 +rixtZ3KEhEsLsX0au2QDzwI0RAPW/OSZjV29Bnc+D2MzA5DQrN8qrzqcY9OkxdO0+xrz7XEmiAGB s6jIi8dw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXlEO-0006Os-NZ; Tue, 26 Jun 2018 10:29:52 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXl8D-0001wX-NT for linux-arm-kernel@lists.infradead.org; Tue, 26 Jun 2018 10:23:34 +0000 Received: by mail-wr0-x241.google.com with SMTP id u7-v6so1387140wrn.12 for ; Tue, 26 Jun 2018 03:23:26 -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=kBoJoWM4IaD6rz+t6becLjU5lM1FCD5PGM8/iqsUqFICvG8Y4/Aa2wvtqtbSTLj10n rcmuOo/S62AzMVABnVmOltfLkuxKMoudUIhHOCQ+j5GOIvWFwJlO3zBuqaik9C6lWqIN Pk1WIsEngkAyTx0O57KzL01w52Jd2mwlzesua8uIHsphtYf/unk72m9rxA5oNWKUyM8Y dj52VE4gGRZIrGwQ9DO2GgoZgw0T9XExvAt6ETgs+PTGzOu6uDqqWsqNR562hLzc2EMV pTHMNYSL6hWayWGyJ6qEBUBWEcZSVmafFj4JXrP714T9rCPIOq4dmWFoF4MhFqIJ05Y8 zMZg== X-Gm-Message-State: APt69E1T85PM/rXNAxNhSINSAfLMrmwCIgF9Kk4QCFX+mpLPlGKilfAT Elptnb4+b+K+Pb3wH5X1hDuMcg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180626_032329_784190_860A1BCB X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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);