Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1549184pxk; Fri, 2 Oct 2020 12:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6fBxbyIH75Q0KuFBB3tsZd1ZPb5SoCgDzKbPsBgVxGexrKbgr2aQNw5guCNCB2bV8opxe X-Received: by 2002:a05:6402:1515:: with SMTP id f21mr4226158edw.175.1601666679881; Fri, 02 Oct 2020 12:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601666679; cv=none; d=google.com; s=arc-20160816; b=DOBY2EhBB+X8PoOKyEbUnKpiGTBpYq3TT6z/FkYIJaM1vIXf34x3hkx/fPLwfOf+IY 1yEIH0ByGQdL7zjWUcCmtn/dj2hBwzelP6uTMlUKGCK27RzpI3b6/232hlJkQH0E4R1p m+g1x8P5qFudELJS1veWE12QxQbeOvbM4WNT61EajsZZbMTromV0Y94ScKmceavyCtao A6wQ+4ijNysciWUT7bYuDyyy1NzO31z19570dYLTgwNeN7unpm4NvPAZo0YXYFVy8NdJ TY8KEk3rlbeyieRXyaeu72aB3RT3OcGvAJ0DhXy7mwZxTtLhJ4pHi5qK1Vf+KCPZuh2K 94Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :organization:mime-version:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=IYHHMSIuIvAG3ZQLIyXdOdDpcQO7KMCrzj+TUh356q0=; b=I37ZnVqeGPVmDGAUa5c8+RPpIUq6EzO0pnlnLevE8WQPCEgWu2WqYWBjWGYEQC2pAn Rvm1+g6WzgZnsft0Uc0yQwdQhfPYvwAdEj3RWUBy4+H+hnrtwB5m82iDZqGuB9U10egs knEo+0OGxwcM1r6IvBGjBJ1n7g73KyOiUObj4G01AdpQBElFtQVbNf3txSDRysm0LXW1 FNPj9yLENqOgz4RqNoMQanho1PvctUtvIYSX6VLGwG1egU6F2hIctjj59O0BrPZ4B3GN uhn2t07hoOsTLRwcf4RGEetqdeRpYj5a8J0VKqyuYqf81jgB0ssfKNsry3hehT+SZFXB CTvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="UG/0OwRR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si1559586ejt.519.2020.10.02.12.24.17; Fri, 02 Oct 2020 12:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="UG/0OwRR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388554AbgJBTWr (ORCPT + 99 others); Fri, 2 Oct 2020 15:22:47 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40073 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388454AbgJBTWS (ORCPT ); Fri, 2 Oct 2020 15:22:18 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201002192216euoutp023a2b837e083a9cc4887ef4b330955d67~6QzqgNVfr0516305163euoutp02X for ; Fri, 2 Oct 2020 19:22:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201002192216euoutp023a2b837e083a9cc4887ef4b330955d67~6QzqgNVfr0516305163euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1601666536; bh=IYHHMSIuIvAG3ZQLIyXdOdDpcQO7KMCrzj+TUh356q0=; h=From:To:Cc:Subject:Date:References:From; b=UG/0OwRRU7fTfplMBIcRqAgAtoV9/IRc7/u3Ic0d4f/yI8p/S4CZiAdnv2bBXoXpK uffWeGwj9EnsO8YNXW5Mr+Oc2NeGOFDfwdbb/b1sfXzalzrURJ/Qo/dPoB6UX7gm0T fosylOl9CJ+WiQQgwm4Fxk6FEO9P+vms6idFIy9Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201002192216eucas1p19865d73cc833792ed46ad5009a5c8fc9~6QzqBjom11168111681eucas1p1J; Fri, 2 Oct 2020 19:22:16 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B9.94.05997.7ED777F5; Fri, 2 Oct 2020 20:22:16 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201002192215eucas1p2c8f4a4bf8e411ed8ba75383fd58e85ac~6QzpibSem1780917809eucas1p2c; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201002192215eusmtrp2ba9424a133c51180ddb26148a6daef25~6QzphqwKJ3070930709eusmtrp25; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-5d-5f777de74384 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A0.54.06017.7ED777F5; Fri, 2 Oct 2020 20:22:15 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201002192215eusmtip2e80bf073e6134c5fe3753bd6016dbe29~6QzpVmV9N2142021420eusmtip2R; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: "David S. Miller" , Jakub Kicinski , Krzysztof Kozlowski , Kukjin Kim , Rob Herring , Russell King , Andrew Lunn , jim.cromie@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: =?UTF-8?q?Bart=C5=82omiej=20=C5=BBolnierkiewicz?= , Marek Szyprowski , =?UTF-8?q?=C5=81ukasz=20Stelmach?= Subject: [PATCH v2 0/4] AX88796C SPI Ethernet Adapter Date: Fri, 2 Oct 2020 21:22:06 +0200 Message-Id: <20201002192210.19967-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Organization: Samsung R&D Institute Poland Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0gUcRDH+93u3q3S2XqaDlpKR0IZqZXJQlEZBovRg+qfCh9XLmr54tZn Ulo+SinNU0vPS81MzXx7nZ6o4GU+EL1U1CyNUME3FCaYhHbnKvnfZ2a+M98ZGBKTjBA2ZGBI OCsPkQVJhaa4puOP/vDM/Sgfl0IPWj+uw+janGqCVukTcbqgvY+ghxfHCDp9ch6j9foaEf1Z k0bQo7oyRNdNDhP0YJNKSOfoWwW0LrsF0ZXt4yK6o9CKTmppF52hmMHhfoxRvxsVMFrluIip K08RMvXFcYy2cUnApKnLEbNUZ3eZvGF60o8NCoxk5c6nfE0DSprtw15ZRj9MnsHi0eSuVGRC AuUKBVWlyMgSqgzBL/WdVGRq4N8IJmsThXywhODrgALb6siqb0N8oRRBpvqjiA+mESyXFRNG lZByh/S3XYSxYElpMFioL8KNAUa1ItB+z9qYZUEdB0X3a4GRccoBhiZycSOLqROgepMk5P3s 4XFpg5DPm0N37tSGZhflCBWP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QVC1gZF7FKJJaWpybnltspFecmFtc mpeul5yfu4kRGJ3bjv3csoOx613wIUYBDkYlHl4Og/J4IdbEsuLK3EOMEhzMSiK8TmdPxwnx piRWVqUW5ccXleakFh9iNAV6ZyKzlGhyPjBx5JXEG5oamltYGpobmxubWSiJ83YIHIwREkhP LEnNTk0tSC2C6WPi4JRqYHTvTTBUu23MmW1wb6uCPTcnz87FQu8bln+L28f4QeTYM82CtW+O fL/+P/zFBoWN/VfMmJOdPiXxzis/8+K7r+EFyeuS+/elFb8L89p+5/C1vz07rmh/iC796/fS jNfSObDj93yXpX/0OOX2ZcxfxfnFdu6r8IedBd8PPfA/OE9i8gfdrr1vCqWUWIozEg21mIuK EwEo139k5AIAAA== X-CMS-MailID: 20201002192215eucas1p2c8f4a4bf8e411ed8ba75383fd58e85ac X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201002192215eucas1p2c8f4a4bf8e411ed8ba75383fd58e85ac X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201002192215eucas1p2c8f4a4bf8e411ed8ba75383fd58e85ac References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a driver for AX88796C Ethernet Adapter connected in SPI mode as found on ARTIK5 evaluation board. The driver has been ported from a v3.10.9 vendor kernel for ARTIK5 board. -- Ɓukasz Stelmach (4): dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver ARM: dts: exynos: Add Ethernet to Artik 5 board ARM: defconfig: Enable ax88796c driver .../bindings/net/asix,ax88796c-spi.yaml | 76 ++ MAINTAINERS | 6 + arch/arm/boot/dts/exynos3250-artik5-eval.dts | 21 + arch/arm/configs/exynos_defconfig | 2 + arch/arm/configs/multi_v7_defconfig | 2 + drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/asix/Kconfig | 21 + drivers/net/ethernet/asix/Makefile | 6 + drivers/net/ethernet/asix/ax88796c_ioctl.c | 238 ++++ drivers/net/ethernet/asix/ax88796c_ioctl.h | 26 + drivers/net/ethernet/asix/ax88796c_main.c | 1072 +++++++++++++++++ drivers/net/ethernet/asix/ax88796c_main.h | 575 +++++++++ drivers/net/ethernet/asix/ax88796c_spi.c | 111 ++ drivers/net/ethernet/asix/ax88796c_spi.h | 69 ++ 15 files changed, 2227 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/asix,ax88796c-spi.yaml create mode 100644 drivers/net/ethernet/asix/Kconfig create mode 100644 drivers/net/ethernet/asix/Makefile create mode 100644 drivers/net/ethernet/asix/ax88796c_ioctl.c create mode 100644 drivers/net/ethernet/asix/ax88796c_ioctl.h create mode 100644 drivers/net/ethernet/asix/ax88796c_main.c create mode 100644 drivers/net/ethernet/asix/ax88796c_main.h create mode 100644 drivers/net/ethernet/asix/ax88796c_spi.c create mode 100644 drivers/net/ethernet/asix/ax88796c_spi.h Changes in v2: - use phylib - added DT bindings - moved #includes to *.c files - used mutex instead of a semaphore for locking - renamed some constants - added error propagation for several functions - used ethtool for dumping registers - added control over checksum offloading - remove vendor specific PM - removed macaddr module parameter and added support for reading a MAC address from platform data (e.g. DT) - removed dependency on SPI from NET_VENDOR_ASIX - added an entry in the MAINTAINERS file - simplified logging with appropriate netif_* and netdev_* helpers - lots of style fixes -- 2.26.2