Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4569634ybi; Tue, 30 Jul 2019 04:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqycwp9GD2QCegDQl5Jifref+YkksnWULKCkW7ttBti+A64p0YrcoY8rv3E1n4SECr6cDXap X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr111357645plr.74.1564485920247; Tue, 30 Jul 2019 04:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564485920; cv=none; d=google.com; s=arc-20160816; b=KYUbAldj5DNdwrf9QYjM0uFkDQGQK0Vwj6wk70hsP2XRW0GlMDsrJYZy4Iz/JOFEld DnVC8jICzsnNY/pksCYiom5YTiDlBg3Gj3eQGourGjZOE+vLjUxIYVeegH0H7ICIrSuo bKWZf+/tN7agsg8E9zejZng3E6WMLwAJqH9a2UKgPgNFOqvcXUQYvtxMGWDzjH9+RnTF k5ON48swJyM5tHFv/DKRLE20J0+D/qFB0bB2YbxRgdhntrYoGhEXpb+KOsZf+xfnaN3U dkwraH2s0Vtgh1X706HXFjwIW5omK5Z5xkayihyH88ebUHYlTW65EeJoJslek450sbAt WE/g== 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; bh=K/vo77nWtXxbU+PNMTUlHERDTERPsjRISGgs62RzQQ8=; b=mB3pET3xTMXhJS7YhGPlR+FapDhsNPHntyL7aIWzUe8jFkBpQXbk3uwoj4WCZTM8bU ioiuizcXZcKI6YGbrQDXirvPA30xgMeSUBVvg0HLAc1VCmE8p1Cpi00RyaQiapsdqh7w wVU2yJgD9RvImPz17B7Sg3ro+wbSZ3eS4aK+kx86EsNVYtERrZYk3BQM64NkbhPNCZRo i70CV8lrB2hyDdSBfv0kplnc6M+VHeOISStzuQ0ED9BcNxPuz++UDDuJFc9pY3DSv1RG WfMZ+wMEF48jcz9NSBNIxWmLv5G6vnHfvEF/xXC6Gxf4nbSAgCMkW939BepEVS1yeKR/ aZlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n129si30140589pgn.254.2019.07.30.04.25.05; Tue, 30 Jul 2019 04:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731893AbfG3JpX (ORCPT + 99 others); Tue, 30 Jul 2019 05:45:23 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54562 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727582AbfG3JpX (ORCPT ); Tue, 30 Jul 2019 05:45:23 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 76086200635; Tue, 30 Jul 2019 11:45:21 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 69B3820062E; Tue, 30 Jul 2019 11:45:21 +0200 (CEST) Received: from fsr-ub1664-016.ea.freescale.net (fsr-ub1664-016.ea.freescale.net [10.171.71.216]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 00D64204D6; Tue, 30 Jul 2019 11:45:20 +0200 (CEST) From: Claudiu Manoil To: "David S . Miller" Cc: andrew@lunn.ch, Rob Herring , Li Yang , alexandru.marginean@nxp.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v4 0/4] enetc: Add mdio bus driver for the PCIe MDIO endpoint Date: Tue, 30 Jul 2019 12:45:15 +0300 Message-Id: <1564479919-18835-1-git-send-email-claudiu.manoil@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First patch fixes a sparse issue and cleans up accessors to avoid casting to __iomem. Second patch just registers the PCIe endpoint device containing the MDIO registers as a standalone MDIO bus driver, to allow an alternative way to control the MDIO bus. The same code used by the ENETC ports (eth controllers) to manage MDIO via local registers applies and is reused. Bindings are provided for the new MDIO node, similarly to ENETC port nodes bindings. Last patch enables the ENETC port 1 and its RGMII PHY on the LS1028A QDS board, where the MDIO muxing configuration relies on the MDIO support provided in the first patch. Changes since v0: v1 - fixed mdio bus allocation v2 - cleaned up accessors to avoid casting v3 - fixed spelling (mostly commit message) v4 - fixed err path check blunder Claudiu Manoil (4): enetc: Clean up local mdio bus allocation enetc: Add mdio bus driver for the PCIe MDIO endpoint dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint arm64: dts: fsl: ls1028a: Enable eth port1 on the ls1028a QDS board .../devicetree/bindings/net/fsl-enetc.txt | 42 +++- .../boot/dts/freescale/fsl-ls1028a-qds.dts | 40 ++++ .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 + .../net/ethernet/freescale/enetc/enetc_mdio.c | 190 +++++++++++++----- .../net/ethernet/freescale/enetc/enetc_pf.c | 5 +- 5 files changed, 232 insertions(+), 51 deletions(-) -- 2.17.1