From patchwork Fri Nov 30 08:20:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10705953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4393013BF for ; Fri, 30 Nov 2018 08:21:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348542FBF1 for ; Fri, 30 Nov 2018 08:21:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 256022FBFF; Fri, 30 Nov 2018 08:21:58 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 A3F052FBF1 for ; Fri, 30 Nov 2018 08:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbeK3T3s (ORCPT ); Fri, 30 Nov 2018 14:29:48 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56065 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbeK3T3s (ORCPT ); Fri, 30 Nov 2018 14:29:48 -0500 Received: by mail-wm1-f65.google.com with SMTP id y139so4797756wmc.5 for ; Fri, 30 Nov 2018 00:21:17 -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:mime-version :content-transfer-encoding; bh=g6fDyXr3adFpuTH9G+ruIeWWkLZ3iM8ERWmFGu4Kdi0=; b=SdRkiTze7FJcu/orY1Ounsq77owwcLmuT/VjBp5Xzn4YvcUjmXkbDLuzC3w9DpQuTA U7ySkhDJ8CbtrS4xM81Yn7eA1cg1MAp4Varxt1pX5lSqVjJ8Uivr1cb69VkhXKk1KwC0 x0D6ghRLC4afx3WMKnxqrWz8f9tGlS+5yAU7JzIWGchjbKmJULEd5PCOVktC8Yib9f0X d6mipJrTo3li7yKK5WH0CwvSUu6bP0U2Fy5zdb6uMYI3Iar4NSs95SvJjTAufOL5yrUb 1/ptL8WHSPCaaIXoerioO1uo25SQOWJ1kibnpLx/P2peezhvfBvbR7BorAB0UM4JEqFo wL8g== 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:mime-version :content-transfer-encoding; bh=g6fDyXr3adFpuTH9G+ruIeWWkLZ3iM8ERWmFGu4Kdi0=; b=GzPVGMGtf9EKf0jxbY8FTxUMtrLWH6KJ0oz4W9GEZB0RrelgFTgFVs4e6t/VnCraWa C1RrhWRgx8iZGzfb62LIYjlQ9buWrS+Qatc5pB4jpOaksZi6e+qp0R87a2pBh+euPx/2 vLMrnFZYE0KeuIsPpt86ric7CjmYjXmZMw+vEPsdcTooCDzYEZntcEQPlZF/igmZ/ATr 2KAsRRdCQW8Tg720iOYtfv8QfSOv5ushegBk8d1WUsFaScGs4nGv9hpoVyspV4vAJo4L NXE49F9WgNlhL3ikfYBsa6kfGR53KceLPRmr0NDOC1m5iltkbJgYK0yn69wNAdWFawm2 7NFw== X-Gm-Message-State: AA+aEWYZqlPpoOhwbgxlzfowxLUjGhk7jbUYY3O/hEwwEPQZKewSS+v7 7pLWoLri2gY6+2d0YAtj9PNwW0C56gm5Kw== X-Google-Smtp-Source: AFSGD/VDOHrh3e+21hseD3mbZwxVT4ZVuFEbMdCpQ8KJw0BmOokvgh2RjLvJujGP94dUUCrL2PhcTQ== X-Received: by 2002:a1c:5f8a:: with SMTP id t132mr4749920wmb.40.1543566077010; Fri, 30 Nov 2018 00:21:17 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id x197sm6473374wmd.2.2018.11.30.00.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 00:21:16 -0800 (PST) From: Bartosz Golaszewski To: Grygorii Strashko , Nicolas Ferre , "David S . Miller" , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Rob Herring , Frank Rowand , Sekhar Nori , Kevin Hilman Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, Bartosz Golaszewski Subject: [net-next][PATCH 0/4] davinci_emac: read the MAC address from nvmem Date: Fri, 30 Nov 2018 09:20:56 +0100 Message-Id: <20181130082100.6241-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 series is part of a bigger series that aims at removing the platform data structure from the at24 EEPROM driver[1]. We provide a generalized version of of_get_nvmem_mac_address(), switch the only user of the of_ variant to using it, remove the previous implementation and use the new routine in the davinci_emac driver. [1] https://lkml.org/lkml/2018/11/13/884 Bartosz Golaszewski (4): net: ethernet: provide nvmem_get_mac_address() net: cadence: switch to using nvmem_get_mac_address() of: net: kill of_get_nvmem_mac_address() net: davinci_emac: use nvmem_get_mac_address() drivers/net/ethernet/cadence/macb_main.c | 2 +- drivers/net/ethernet/ti/davinci_emac.c | 14 ++++++--- drivers/of/of_net.c | 39 ------------------------ include/linux/etherdevice.h | 1 + include/linux/of_net.h | 6 ---- net/ethernet/eth.c | 38 +++++++++++++++++++++++ 6 files changed, 49 insertions(+), 51 deletions(-)