From patchwork Mon Dec 25 01:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 122689 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4977367qgn; Sun, 24 Dec 2017 17:10:45 -0800 (PST) X-Google-Smtp-Source: ACJfBov1NcKpGhRteQOGdS/yhk3UzzNFlfoyPSZhtqeqrOnZpXskwDoysUvEpIH1yq1Z6d2niuAc X-Received: by 10.84.129.9 with SMTP id 9mr21561704plb.138.1514164245177; Sun, 24 Dec 2017 17:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514164245; cv=none; d=google.com; s=arc-20160816; b=UR0jQjqlxRwMNVh+WHjVHUB9FOwpbkts6lB+hqOCWdO2zpqaf+GxuQ3Q1agVU3E1v9 Q9pVrcPuSph4ewqHwJ1uZfDWRfv9AL7ILczEX7Dz3131c01tKMKAjjxQleru9yiz99fc S3O8uZ25jpvZ2fygmGSExismba/5Wsovn5WJxF2b4U2ZfIOKdjhAJrgMO/Poozf+C5rK eRePD6jUt8qb9XquIflbqcWoeO/K7ni3BBm8qxSviEQhgU9qGTM98Qbt6nt6MP2oEWA+ wwLoEGs2ZTr2MGv2Qw3zQ64ooqSVpfioYxJG4fPMF2DLXI6jjt6RlhaxevGR4Z5oDqGX lGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=844MkzOEor0JyC4JYpoBsKhlYin2T4s7X0K8zeRgCqw=; b=C+jtJWJm4icGm8xe8h3PNu5RgH6tYT9e6l+ZWwXSjH3cX43z5tCVGH3RKICJmOmbvT 879ep010O1uzUaP00M4qees1pRIdF+rH3Oji2fZzM99INEt+vAvhapksm0UE3M7jJCUq ru4DukpDh5ItFLvg9Hzw24irmy+dmMYkQNaKjzaWLknk3Duj/hAc+4zDyM/HsHIFpyme AOWxcg/W/W4/O7a9HIwonMWt2+K5rxcZJTxwjAkal4/vHRnrw/VBka7t2UDhhyz5xveG Uyb/T8Z3H7cy4Aapdg6ugoYAnfRekR8HcxQgQ+5FmclqvMnm5hD4TRDmr3nk+Nn19fRA iXug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 91si20501092ply.766.2017.12.24.17.10.44; Sun, 24 Dec 2017 17:10:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751797AbdLYBKn (ORCPT + 6 others); Sun, 24 Dec 2017 20:10:43 -0500 Received: from mx.socionext.com ([202.248.49.38]:21328 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107AbdLYBKm (ORCPT ); Sun, 24 Dec 2017 20:10:42 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 25 Dec 2017 10:10:40 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id C48DB600BE; Mon, 25 Dec 2017 10:10:40 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 25 Dec 2017 10:10:40 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 27A2C1A0DEC; Mon, 25 Dec 2017 10:10:40 +0900 (JST) From: Kunihiko Hayashi To: David Miller , netdev@vger.kernel.org Cc: Andrew Lunn , Florian Fainelli , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Masahiro Yamada , Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH net-next v8 0/2] add UniPhier AVE ethernet support Date: Mon, 25 Dec 2017 10:10:36 +0900 Message-Id: <1514164238-28901-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series adds support for Socionext AVE ethernet controller implemented on UniPhier SoCs. This driver supports RGMII/RMII modes. v7: https://www.spinics.net/lists/netdev/msg473896.html The PHY patch included in v1 has already separated in: http://www.spinics.net/lists/netdev/msg454595.html Changes since v7: - dt-bindings: fix mdio subnode description Changes since v6: - sort the order of local variables from longest to shortest line - fix ave_probe() which calls register_netdev() at the end of initialization - dt-bindings: remove phy node descriptions in mdio node Changes since v5: - replace license boilerplate with SPDX Identifier - remove inline directives and an unused function Changes since v4: - fix larger integer warning on AVE_PFMBYTE_MASK0 Changes since v3: - remove checking dma address and use dma_set_mask() to restirct address - replace ave_mdio_busywait() with read_poll_timeout() - replace functions to access to registers with readl/writel() directly - replace a function to access to macaddr with ave_hw_write_macaddr() - change return value of ave_dma_map() to error value - move mdiobus_unregister() from ave_remove() to ave_uninit() - eliminate else block at the end of ave_dma_map() - add mask definitions for packet filter - sort bitmap definitions in descending order - add error check to some functions - rename and sort functions to clear sub-categories - fix error value consistency - remove unneeded initializers - change type of constant arrays Changes since v2: - replace clk_get() with devm_clk_get() - replace reset_control_get() with devm_reset_control_get_optional_shared() - add error return when the error occurs on the above *_get functions - sort soc data and compatible strings - remove clearly obvious comments - modify dt-bindings document consistent with these modifications Changes since v1: - add/remove devicetree properties and sub-node - remove "internal-phy-interrupt" and "desc-bits" property - add SoC data structures based on compatible strings - add node operation to apply "mdio" sub-node - add support for features - add support for {get,set}_pauseparam and pause frame operations - add support for ndo_get_stats64 instead of ndo_get_stats - replace with desiable functions - replace check for valid phy_mode with phy_interface{_mode}_is_rgmii() - replace phy attach message with phy_attached_info() - replace 32bit operation with {upper,lower}_32_bits() on ave_wdesc_addr() - replace nway_reset and get_link with generic functions - move operations to proper functions - move phy_start_aneg() to ndo_open, and remove unnecessary PHY interrupt operations See http://www.spinics.net/lists/netdev/msg454590.html - move irq initialization and descriptor memory allocation to ndo_open - move initialization of reset and clock and mdiobus to ndo_init - fix skbuffer operations - fix skb alignment operations and add Rx buffer adjustment for descriptor See http://www.spinics.net/lists/netdev/msg456014.html - add error returns when dma_map_single() failed - clean up code structures - clean up wait-loop and wake-queue conditions - add ave_wdesc_addr() and offset definitions - add ave_macaddr_init() to clean up mac-address operation - fix checking whether Tx entry is not enough - fix supported features of phydev - add necessary free/disable operations - add phydev check on ave_{get,set}_wol() - remove netif_carrier functions, phydev initializer, and Tx budget check - change obsolate codes - replace ndev->{base_addr,irq} with the members of ave_private - rename goto labels and mask definitions, and remove unused codes Kunihiko Hayashi (2): dt-bindings: net: add DT bindings for Socionext UniPhier AVE net: ethernet: socionext: add AVE ethernet driver .../bindings/net/socionext,uniphier-ave4.txt | 47 + drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/socionext/Kconfig | 22 + drivers/net/ethernet/socionext/Makefile | 5 + drivers/net/ethernet/socionext/sni_ave.c | 1736 ++++++++++++++++++++ 6 files changed, 1812 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt create mode 100644 drivers/net/ethernet/socionext/Kconfig create mode 100644 drivers/net/ethernet/socionext/Makefile create mode 100644 drivers/net/ethernet/socionext/sni_ave.c -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Florian Fainelli