Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2888034ybz; Mon, 27 Apr 2020 06:26:57 -0700 (PDT) X-Google-Smtp-Source: APiQypJv3Kkiiz4k6YqvQeA+Wvh+EUscm6T5CgmG/hxUwPb/N1KxZaW7T+3iRFzxwh6BNEnVpPNl X-Received: by 2002:a17:906:4a4e:: with SMTP id a14mr19999563ejv.363.1587994017393; Mon, 27 Apr 2020 06:26:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587994017; cv=pass; d=google.com; s=arc-20160816; b=EbggD463FTRkeTerytEMcrQDEsDRaKmDgaJWTD6dxG+dxwredwOqvOwnsNukcu64e0 jWmcM2ykmAJ3NZmeaow31ThzDHni/EbaJPP4UFwSiCxt5NnE3K2pKLOoc+K0o9yIU7Qy ACTtdwUucrYVzPDbtTbh+0w0W2VvA1T5VFnDkR93gxjzVE/vtjrjnXZin+GpTCx1n+H6 SyEgLmIgiIusSfzovgyN6Y0OLFwVealDcMX5ND2gZF+csOnuNBQZx60w8BQVSr1OEpqC bYRlTehHK/C9KlORRFZ/Zj2cmyNlbiJXVIiUxyfA7Gjf7DKH0R+puO8vM26kcKDA/DGN SLUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=QDIISntgPyNzQgq2M7Zk7hxiN0ad+WOU/OJG37zmS/A=; b=0Ntk16dLC7DKyqCSeDJjMCZCwnahEEkOgzoGUDx7EGwCY0y/7IYWt8CdtvKFmAIlnr mpDfu1WJVdCpyrUpmP8YzDQpCxeWxVIUDLV18zf3xZ27iR2IKC6s832c+jBFV9gIhLB3 Ppwwem+muVjKSuuNxzRXt19Bsu1UdKLjc8E9HL43VNyBipfMbu7Bi2ixdgEF76bArp7A HcOfEZWshRa3vqBMneeTdKyy7XVj6LO7g5s1RnGIUXvRhQkeRDdU0LkL5YcSChFtfbZJ zFyFfyAsrZNEhhH/Srl9HfEDw/ieMuaEkKr/pHIsCckxR55W3AT//mwv5J+TrDQ6fpAr 92CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ipZNpZk3; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si9040382ejr.86.2020.04.27.06.26.33; Mon, 27 Apr 2020 06:26:57 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ipZNpZk3; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727823AbgD0NZI (ORCPT + 99 others); Mon, 27 Apr 2020 09:25:08 -0400 Received: from mail-db8eur05on2049.outbound.protection.outlook.com ([40.107.20.49]:33848 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727006AbgD0NZD (ORCPT ); Mon, 27 Apr 2020 09:25:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZYlbO6xOhdFkNrpHAwMpNJpzorz5nt6ZpJxUwltO8+R7IrpMYkE7+hsYJ5hijvEBu4dk9d43wnxIa3NXj5Arv6iLmOP96zcTSGMyzloWt35Q9rGupAq1Bbrr8dzXloAAQ4ImqjIKXfIQEkWNHz80RfaSjgeThHGP3HTwlfI8l/XJSv50HTxlKDgj1zH3iQChf52H9/vUiIG5NI/F7X+n8j39C0XEhiCyKGpEJnVwJLymb0dVkSv7E8m231ZgqWR3eYzjy9Vo3WIvJsxMSZ6hUDSGJd9TOZpawVPN0uuGmG+AAhPuKGEiERXnVZwtZuqcDRmajv1yeheAl6NWK0y6Gw== 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=QDIISntgPyNzQgq2M7Zk7hxiN0ad+WOU/OJG37zmS/A=; b=I/DMPM0HxCAWtVh3xFzVFez5bUEi2+Q9+oZxOFfdge6M16tX+duGGBDiLm5LbZs7reTAVSlIDiMOcY4jehEKuTeWp3jh/W4jy0v6ktkKUG1EIY4y2voZWsFWv7vc6VquWnBtmZYOydI1CcB05WGfh7qGNJ96xKwroPRrkI5lRM72znx5AWAhv+o8PgAMOfZy+NDETuHbqfXMMVpype+cpWFV5+o3ElOTPSiZzNA9JK9rGu9SnFtUfuDupG9DC7DS3w7NiAMRkxzVLvahPRsJYfLSFId0oHNDp5Dn/enlSEuYBWuw4wagO9abc9fGTPTjHAa6CQWEw1suOnxnLrk7zA== 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=QDIISntgPyNzQgq2M7Zk7hxiN0ad+WOU/OJG37zmS/A=; b=ipZNpZk3tHvNcdk2NaH/TIXYS63x/lW04Zf26XrYy9mdc6692Gp/6bMTndFuxjtk8YJVCBKaml2eorMR2IVSFz8KatqcIOBKvETGI32ir/iNEo7YUT7d0Ckk+coMbux341oIZw9rL1kPt1lDe1seGW1BhO6k1vBdchukJqwOMfI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=calvin.johnson@oss.nxp.com; Received: from AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) by AM0PR04MB6867.eurprd04.prod.outlook.com (2603:10a6:208:182::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Mon, 27 Apr 2020 13:25:00 +0000 Received: from AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::c4fe:d4a4:f0e1:a75b]) by AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::c4fe:d4a4:f0e1:a75b%4]) with mapi id 15.20.2937.020; Mon, 27 Apr 2020 13:25:00 +0000 From: Calvin Johnson To: linux.cj@gmail.com, Jeremy Linton , Andrew Lunn , Andy Shevchenko , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Greg Kroah-Hartman , Heikki Krogerus Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Diana Madalina Craciun , Laurentiu Tudor , linux-acpi@vger.kernel.org, Marcin Wojtas , Makarand Pawagi , "Rajesh V . Bikkina" , Varun Sethi , linux-kernel@vger.kernel.org, Pankaj Bansal , Calvin Johnson , "David S. Miller" , Heiner Kallweit Subject: [net-next PATCH v2 0/3] Introduce new APIs to support phylink and phy layers Date: Mon, 27 Apr 2020 18:54:06 +0530 Message-Id: <20200427132409.23664-1-calvin.johnson@oss.nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0191.apcprd04.prod.outlook.com (2603:1096:4:14::29) 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 SG2PR04CA0191.apcprd04.prod.outlook.com (2603:1096:4:14::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Mon, 27 Apr 2020 13:24:54 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [14.142.151.118] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cd8988b9-ab13-4b9a-387d-08d7eaae62db X-MS-TrafficTypeDiagnostic: AM0PR04MB6867:|AM0PR04MB6867: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-Forefront-PRVS: 0386B406AA 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;SFTY:;SFS:(4636009)(346002)(376002)(396003)(366004)(136003)(39860400002)(86362001)(8936002)(44832011)(2906002)(478600001)(66476007)(81156014)(66556008)(5660300002)(1076003)(66946007)(8676002)(4744005)(26005)(7416002)(6506007)(2616005)(956004)(6512007)(4326008)(16526019)(110136005)(52116002)(6486002)(186003)(6666004)(316002)(1006002)(54906003)(55236004)(110426005)(921003);DIR:OUT;SFP:1101; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NDNHAPl3W0Y+ELkg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GyqR1QGmfNg23YOh38Yx1whlXfEn+SiW+kMqZk55b9NSw8hCksED4JElL0EDwNeoqfpXZ9VVB+53pkS80yYyorKs3MEadOZvLcxX7AQIeZqOMqrgAoT66rH+YO0n7+y6mFXPdrd36YkC+13T+a9UkI1zOmy81Pm+8C88FAcXdv8LRFoj4VlszJby8JWZKlxFzMAUX1SBh6ac1OL6OeZCUmW5X5phJMDp5Sk8bSXxhV4xbZ2fQ8esFPvga9XM2/r5c1yIvR+g= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd8988b9-ab13-4b9a-387d-08d7eaae62db X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2020 13:25:00.3765 (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: 6hJrQTVV2JLew8BHmXlji93FHT7aUTR2HJz9+mFN/sZqa1RrcIK8mEdbA6zNL3RJng7X7mcIYDqRk0jJDFYMcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6867 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following functions are defined: phylink_fwnode_phy_connect() phylink_device_phy_connect() fwnode_phy_find_device() device_phy_find_device() fwnode_get_phy_node() First two help in connecting phy to phylink instance. Next two help in finding a phy on a mdiobus. Last one helps in getting phy_node from a fwnode. Changes in v2: move phy code from base/property.c to net/phy/phy_device.c replace acpi & of code to get phy-handle with fwnode_find_reference replace of_ and acpi_ code with generic fwnode to get phy-handle. Calvin Johnson (3): device property: Introduce phy related fwnode functions net: phy: alphabetically sort header includes phylink: Introduce phylink_fwnode_phy_connect() drivers/net/phy/phy_device.c | 83 ++++++++++++++++++++++++++++++------ drivers/net/phy/phylink.c | 68 +++++++++++++++++++++++++++++ include/linux/phy.h | 3 ++ include/linux/phylink.h | 6 +++ 4 files changed, 146 insertions(+), 14 deletions(-) -- 2.17.1