From patchwork Wed Sep 30 16:04:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Calvin Johnson X-Patchwork-Id: 11809803 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EC391580 for ; Wed, 30 Sep 2020 16:05:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E08B32087D for ; Wed, 30 Sep 2020 16:05:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tz1i5RYZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="jPclxXE1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E08B32087D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=JMMGekldG3P5pEy2wfL0vTddGk6yBDIt9UBN4ZBGGBk=; b=tz1i5RYZF2rZmeOPii3+t5zSLI nL2qjpoIGA/xMRDsnA7KdVa9huLcgggOo73maC4cwN7PDOa4yqefcX0ub4ppZ6+VYzeA4gtyZVDaC yFju6+KNiqGIcjhbjN1ouE4FH2l5EXdl3JfSApi+fIC7nwPaLXMKSYitM5d+7zbp7lFm/NZ7qTicK DvNrCvHWUuNspQUNrQg2geT9516wCe+m+ctImg6/spCZJMNo12k5eT4fldKTtPMLQLIQtG+n3vqQT KeuyjHonttR44JdPOcRxdcnxlpZUovyFgXMvnanUzssoHRuxBGqMQbJaKxJRKRLjjf8Dx1pI+5EsW evT+6p7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNebo-0005Vr-Hz; Wed, 30 Sep 2020 16:05:36 +0000 Received: from mail-am6eur05on2058.outbound.protection.outlook.com ([40.107.22.58] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNebk-0005V7-Pb for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 16:05:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O/7smms0sQtVS1Wo3ozYcYoE1XYuF9zcCT7txo9nfogmLOzwjhFxvIkxRqY7s93PRJR31A5ADc5YQewr2qnQwhqYjIvrW3GnVsW+MIzHIbEg0PW0TKzcdd9t4ep/guysW11fxsN+F6KYxj2h5+W/EvtGTkVgwv4nEw/GjQotkJTPWHBT5KZ1oX1iZMy5ciaMhF6GXIdrba1sNBtos0jpKB9g7rgGvsVfI2D/GPtHi0YsZTKzmCHnCXEvfes3XTwFHuFqxWLAB2CGaEgXLj+LZMVTmPEmGdmKls7xg6eNLiLFLYLaCHxW/BInFy/UmffivaBjxAZ92EIeST4I3KGKKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DdUY6ypKBM+uPWgn/FdgTu1+zSc8SiKtX13Gx1uuIBs=; b=odvFxtCY77xK1sGHocwN+nIYqqxdO0GXseS8j239+VVqpYyG1qM63fqnc8iAxnKZXH5QBzeSFgIYVpBWnMcGkX6DodRwMKpqSEBg3zVX0y/7mNyGM0OlcnQpEt6ECBR58mJ+2UQusb6IQWJSGB9KFCYckV3ZD3gXHXuOIp+WQXe28mJvrPVrpXdfYNQ7bUPlXAoKZ1s29Ua7WgrhYDxkx5CazW4c0ms0RgsTg3eVlR5y26NtQ6CJf16AIYu63NmOARfHubq1zj4dATTRmXyc28oLLoRKv3UeTItwfnoOm2RzcxcALJKf+UoEPRCud7LCcZkOhLd5KxfbKjSIMCnPhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DdUY6ypKBM+uPWgn/FdgTu1+zSc8SiKtX13Gx1uuIBs=; b=jPclxXE1GnLXiH9ZG80xmq726HqxFs12eNhgP02Me6PTRATTgFXm0ZD6+s+MJZz6O/0V9ddzvAqvb10dKkJ/1BJE2Kgx1Xx7p6riFzAaOVBDWrKoFdL3w/OMWRuFgdcR2nM5mAkBRm+rwAokGbjAKbj5VIc+92SDUudU/uwPYAw= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) by AM0PR04MB4385.eurprd04.prod.outlook.com (2603:10a6:208:74::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Wed, 30 Sep 2020 16:05:29 +0000 Received: from AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::a997:35ae:220c:14ef]) by AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::a997:35ae:220c:14ef%7]) with mapi id 15.20.3433.032; Wed, 30 Sep 2020 16:05:29 +0000 From: Calvin Johnson To: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Andy Shevchenko , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus Subject: [net-next PATCH v1 0/7] ACPI support for dpaa2 driver Date: Wed, 30 Sep 2020 21:34:23 +0530 Message-Id: <20200930160430.7908-1-calvin.johnson@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [14.142.151.118] X-ClientProxiedBy: SG2PR03CA0168.apcprd03.prod.outlook.com (2603:1096:4:c9::23) To AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03152.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR03CA0168.apcprd03.prod.outlook.com (2603:1096:4:c9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.16 via Frontend Transport; Wed, 30 Sep 2020 16:05:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 38e8447b-0868-460f-d979-08d8655aa699 X-MS-TrafficTypeDiagnostic: AM0PR04MB4385: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KZP2xu+nbMq6bMAqzeIQgKtNcFkO5fXHk6jvSc5oAlpMn1nbnoyyKRyUxyABHcjOroneXDFiK/88879tioRYyfv8f+OSzC3ujALiPwLu4U+/OQVGRhXCFtjHyF53rb13vwGOE1xPvAR3qtoD7yGMHPo6bI9Dh4Nyp5/D5a6/T1uE2C1tUnu2c+2+3V3htjNrWjjGguf7Q5npoW/UmAeZ14mJW698y8reURHKuQ4eImc2243ri3k3HfZq7U1JZDtAnNNcB9/aA+PPCuaB/Z9HBSAuWdG4oMf+CDdOjJcEB7SECc0PcRrrTbnQVM2o+15M8KoFJJbzthcLcNThNBeFpA506zE0Av1B/lvgJchknRtFVmn7S6cuPGMjz2wlmWIZDorRMzA2nCTTKex1mkrYTTEVbwM2zGWh9XxTu2YuXC6CPqKTasqNIbqb25CZp3Bv X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB5636.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(39860400002)(396003)(366004)(4326008)(2906002)(16526019)(186003)(956004)(2616005)(86362001)(8936002)(55236004)(44832011)(7416002)(66556008)(66476007)(1076003)(26005)(66946007)(8676002)(1006002)(478600001)(52116002)(6486002)(6512007)(5660300002)(83380400001)(54906003)(110136005)(316002)(6506007)(110426005)(921003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: vk3SZn7xJaVfePJU954DgNaC17X8czr7ThqItsFlGo8leQyPs7cdDPIVNbvlMggr8vCnTMKymov+Z3R71FBCLLcA+wvoFoKF79JZkyYYGt5Bl2RQ/GZNSR3sPzZkg3kMBWlLMGGsgCMB4uu92Wbv95P64ugKkn0+SGNV/UGY/mG83U5HLzon0h6MtUIwPI3If35Yue9zofICEM/lZkrawlhGTM984IL1qb0a6sHDw3bDz7rH21QL2JMJeXtE/54dEns812/dteKdGwu0B32QCNmeZqBx97y6D1nInlmxoadKLQfHxRu8F5t8djthQpABvY+21SbhjQPxuS3hq1ot8Xw0Ci3YeROIxH7P72NUtoOncGG5UMfIFnn+xOSYWee+dUMl3z4fllQFaac84HoWr67DnkQFYnhz0ev3ojC9kJmQNpc/Vp3TUDXMGF46iq1cJQZ6D5ksK7ay3SFFb5baSUIHL+03xwMTrEvJtmtbdZJuvRf1KUTMEXih6WpWpiOgpjoenA3MCwnwZkfu5CRn0Ym1j7bFh2zQyfjVNnhzjmEWsr9Pmgk/NrWxhsGb/kM/T6RTcaVuILRGuBegKintBTn6Q94AOmzFPs2fAL6lqXCjSqaJOhbZVWkpWNESsjOs4lx8SQDyFfS6DWPAzXh/OA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38e8447b-0868-460f-d979-08d8655aa699 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5636.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2020 16:05:29.1656 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1r2V3hmrPC5tCQv3Fe55xszoUJnFmtokix2JTMonFBEWFhA+LaPUvlmH8DeY6gm3r2Wqr1lgDIlJUsDVfpvAZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4385 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200930_120532_947876_C2E0B9E0 X-CRM114-Status: GOOD ( 12.74 ) X-Spam-Score: -0.4 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.22.58 listed in list.dnswl.org] -0.4 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.22.58 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ioana Radulescu , netdev@vger.kernel.org, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Calvin Johnson , Diana Madalina Craciun , linux-acpi@vger.kernel.org, Len Brown , linux.cj@gmail.com, Jakub Kicinski , Heiner Kallweit , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch set provides ACPI support to DPAA2 network drivers. It also introduces new fwnode based APIs to support phylink and phy layers Following functions are defined: phylink_fwnode_phy_connect() fwnode_mdiobus_register_phy() fwnode_get_phy_id() fwnode_phy_find_device() device_phy_find_device() fwnode_get_phy_node() First one helps in connecting phy to phylink instance. Next two helps in getting phy_id and registering phy to mdiobus Next two help in finding a phy on a mdiobus. Next one helps in getting phy_node from a fwnode. Calvin Johnson (7): Documentation: ACPI: DSD: Document MDIO PHY net: phy: Introduce phy related fwnode functions net: phy: Introduce fwnode_get_phy_id() net: mdiobus: Introduce fwnode_mdiobus_register_phy() phylink: introduce phylink_fwnode_phy_connect() net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver net/fsl: Use _ADR ACPI object to register PHYs Documentation/firmware-guide/acpi/dsd/phy.rst | 78 ++++++++++++++++++ .../net/ethernet/freescale/dpaa2/dpaa2-mac.c | 79 +++++++++++------- drivers/net/ethernet/freescale/xgmac_mdio.c | 48 ++++++++++- drivers/net/phy/mdio_bus.c | 40 +++++++++ drivers/net/phy/phy_device.c | 82 +++++++++++++++++++ drivers/net/phy/phylink.c | 51 ++++++++++++ include/linux/mdio.h | 2 + include/linux/phy.h | 25 ++++++ include/linux/phylink.h | 3 + 9 files changed, 375 insertions(+), 33 deletions(-) create mode 100644 Documentation/firmware-guide/acpi/dsd/phy.rst