Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2899474pxb; Sat, 6 Feb 2021 11:31:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqFAgPx0pPxPb3MF2z3NPHjiQJZWzskQlVW98gAdFN2WfrOwbijMx6nZw/VGNIj1ptl+UC X-Received: by 2002:a05:6402:4382:: with SMTP id o2mr9838033edc.371.1612639902956; Sat, 06 Feb 2021 11:31:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612639902; cv=pass; d=google.com; s=arc-20160816; b=A82S/vRzp4Un9BxRUYNgD/yIST5Fnn13i+8EKeS1qJ4Rx3DbvKr4Q/CNWbK8RoXaG6 TFZ1yCxSjdXy8jqkK8OwoXdW6zPn+vBAXG1CVgY2BCWqni08cxKK0J0IGnssZtiQcG+7 pFoyavzL5OGk2LXgDOt3WBQEKCU+vnGB1n9ATXfHoPOC37UKQZA7LgxslFbnUbOIqKSS BFG/6QlsSPmwUO07vFPeZOq/lqtoQ9m/bmaDZHU74P8eunCtodeaOh4VzDjDPfJ8BKu4 Cu43SMJrJfTZqv+oCsOnqQEMROM+7wBOFwD4/4JsJ9NiO0awr0OTxJw1suCvOwVp2fci 1ctQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kPlT7soqoN4nAImNEpec1VfzwHurAkc6rhE2oGSjYmo=; b=x9udLPYEhUYcju1Bs78ZMCsUjmmnl4mxlL2rXFBGsWIaDHpg1p/ONKHD+yZNk8Hc1l MOD0HnAmgDSH+yRUzhgQqMZYM9gZjinz88coquuGQzownqYi7/Kob5gW1GuhLLS0EKaG 4ZsyzEX3P4v0Xy9OgHvtTcZWmO6WW05ihPMDPEnbGE4+f1yme/s4U+IOGCSA+881ZqXV wo3QVcvyD/HlHTM8qESRG6bDsfB1zQPttbAN98Skc2n/Irj+p5uCcYDLjzXIcsuNynza Br/ixoz92hJKAgIImP6Ik9Yom7N7FXm93OKZh7rOTmx2w69jjbDw09J/cbkK0afByBRn 56WQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IZLshWTy; 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 ka8si1145594ejc.675.2021.02.06.11.31.18; Sat, 06 Feb 2021 11:31:42 -0800 (PST) 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=IZLshWTy; 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 S230096AbhBFRQF (ORCPT + 99 others); Sat, 6 Feb 2021 12:16:05 -0500 Received: from mail-eopbgr60088.outbound.protection.outlook.com ([40.107.6.88]:39494 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229506AbhBFRQD (ORCPT ); Sat, 6 Feb 2021 12:16:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhHrnfa7xENeym8Xa81lRA0fwWFVNITVMn7xaW7QHELlE0PqgwHzKvefr7z9u8OJhGjI1QX6Xb/SL6zvLLhPNOizFTgS+JhovD9pMcB3AiciwF4ADRDAX1+YcaipWXaONJMKVrcto0bqcAS1hAPZHExHJcpA6/+5yycgXLmILmXMbV+r97MwvuqMl/mw4oZOhZZ+etnKW0TKADm7zcwyHJ7QsP4rmlv5+eV2dhEwRZ6O2CmqQL+Q8q95OUQwN4lBb6yyPqFUcPMnXJrn49D50L9tfKidz1nHr8Rntgog+GhY8Tc4DCMulfVUrdBkdRDZ9NmtF+I1C1Elm+c8WIH5qA== 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=kPlT7soqoN4nAImNEpec1VfzwHurAkc6rhE2oGSjYmo=; b=eY5uWqwj0itg8b69bD/HKeKbnNXgN6uCzJR255iuqWutrpkLVZnmDduWDfpXJjYsBj3qKhrFG/4S2UiqCKsCuxlm1tfnIoqU5i9pWbSaA5nOS54KYdz+t/43KgwpC3G+a5Q3wpgzdSvIgvsvi03u7sv8FwrZU+n3/2+8gMPi8XXRmJk39ILFACFeu+cS+vY3I6auLx3RvCk8L8cTp0AYGP9+oppjVJ3MgsXgsUNarKs//Sakrjf6dIz/oUh5ikY0osYgEzhpd3Hqi0Ligj+PxDolDLjLg3C28qdbUcNviF6tUo8ejJ9c0ACR3LEX2ui6cwl+oBGpBfMXXEdqZkQ5Lw== 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=kPlT7soqoN4nAImNEpec1VfzwHurAkc6rhE2oGSjYmo=; b=IZLshWTyd87/ffXEd+BSYGxyyTO2yWXxIs43LtFfML63tA+6l6NQ/roSFV4mXX18hlTABy2/+wopX8XX8qJ5d3CiUr3y3sulyfZVhV93UYaGNDcZknZ+c6aKG03DrJmKFfkzFbpOiD3QeBet659MCk2t/p2gXwFxT+6CwLan99Q= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) by AM0PR04MB6899.eurprd04.prod.outlook.com (2603:10a6:208:183::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Sat, 6 Feb 2021 17:15:14 +0000 Received: from AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::e90e:b1d6:18a2:2d42]) by AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::e90e:b1d6:18a2:2d42%6]) with mapi id 15.20.3825.028; Sat, 6 Feb 2021 17:15:14 +0000 Date: Sat, 6 Feb 2021 22:44:35 +0530 From: Calvin Johnson To: Andy Shevchenko Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , "linux.cj" , Diana Madalina Craciun , ACPI Devel Maling List , linux-arm Mailing List , Linux Kernel Mailing List , netdev , Laurentiu Tudor , "David S. Miller" , Frank Rowand , Heiner Kallweit , Jakub Kicinski , Rob Herring , devicetree Subject: Re: [net-next PATCH v4 07/15] net: mdiobus: Introduce fwnode_mdiobus_register_phy() Message-ID: <20210206171435.GA25451@lsv03152.swis.in-blr01.nxp.com> References: <20210122154300.7628-1-calvin.johnson@oss.nxp.com> <20210122154300.7628-8-calvin.johnson@oss.nxp.com> <20210205172518.GA18214@lsv03152.swis.in-blr01.nxp.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [14.142.151.118] X-ClientProxiedBy: SG2PR01CA0110.apcprd01.prod.exchangelabs.com (2603:1096:4:40::14) 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 SG2PR01CA0110.apcprd01.prod.exchangelabs.com (2603:1096:4:40::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17 via Frontend Transport; Sat, 6 Feb 2021 17:15:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 49c4db1a-3056-41f9-9bdd-08d8cac2c3cb X-MS-TrafficTypeDiagnostic: AM0PR04MB6899: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aas+jgtl+d77N4daY19u+JJvb5i0d2lGOgFuKx8SgT0gh7oP3BvR7rJSkw3uiXy4jTFO8iuWHYsE3pSAGMvRbP3F8LJSaIFSqIaFXELyO4eNl9/gCmqU4dXcjrr0pKZT7p/mahQMdEkBN/XSnY2QrhKRDpacqUuVHhVeMY1ftsQ51U/9RiUbkOeY6gk7jxFssTkjBmpzl4FtnXyr+4iv66UKTz7ZT+rcJ60GRdOJElUnR5slDaR9DRAMI7xGAJIGk7UsiHgNZYsJKPuRNhPtrZeT/k9rMvsKcC8rKR2Vrliw99k9avCir5YvTlRAkyCguT2Jjr8Dfeh3RYKgwa54UJl2eIt5gkMLmc40u0zwt9KDm6AETuNWGbKNyIUCsljOM19fdsZIhha9coAt9nQT4qwMtovrgFAxTKALl+CuvG+yt3vBg4LKLvjMQmDQDJp+nsHUDvu7ACEE778bc7xd3NYaP8E96x6lxqluGJ7lDIDRTdQ7KezAgr8sZ0a1ERXmj4tLliKMNdCkFn+zTmmB//YPxoTJxZ6I45lYe2XOUWTLZP2FnHQMxH2QgCQw6y1gM86N0VaeSwftqVFZnQwOsQ== 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)(376002)(39850400004)(396003)(346002)(136003)(366004)(1006002)(6916009)(83380400001)(1076003)(66556008)(316002)(478600001)(44832011)(5660300002)(54906003)(6666004)(956004)(8936002)(2906002)(66946007)(66476007)(33656002)(16526019)(4326008)(55016002)(52116002)(9686003)(186003)(26005)(86362001)(6506007)(55236004)(53546011)(7416002)(8676002)(7696005)(110426009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?R93C3xXcHjARSm7cUPz4ua0wl0jm2FjGfN7U6+Sc9Ig406fx4DsLHMWY7nIX?= =?us-ascii?Q?kCwcnxYPxj6TWliiaZCTHH4LYQxOA8cwO5u23v/cWfTt4W5Uc4KHTc7Ghh4s?= =?us-ascii?Q?g4zqc9a59ZiLWr7bMk19v1ysSIw6+2f9qnTHv5b7l7JEuxfnHf9NPJOWAois?= =?us-ascii?Q?BU5tYggLV8htkzfUD3UVcqfN4J6d7nGjoO0qhVi5NRchdrzSQa7YYJGqucK3?= =?us-ascii?Q?3DuL4eeQCsjDnh7WhpGEJ+y4xSrRHzNbioOGp5iFyM9zQeNLEuhI+i0uNLX/?= =?us-ascii?Q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bwL6JArvZr67O?= =?us-ascii?Q?M5VStAJXMck+wtrky8ZMKYYV9EHrB+aanLO8nk3bL0FEeNaYU8Q2uAdqZQ79?= =?us-ascii?Q?L/uhJ69PoYiAgglQeLX9HiVsL8jc3r6wG49pCAsrw8hUl1XR8nBiPgqJR4qo?= =?us-ascii?Q?dQhMrih+7JU7GmOtH6KvyRYTfMPDeeiQZ+xpC4g1vE4PIw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49c4db1a-3056-41f9-9bdd-08d8cac2c3cb X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5636.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2021 17:15:14.1475 (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: wNYUVl9Ho9OIuPj/wsS8NOZf1qn5pa/l3bsxeqUaSBjbib6hzUq82JofzNzcwf++7r2UvHBMU1WFX/LXZZqDYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6899 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 05, 2021 at 08:58:06PM +0200, Andy Shevchenko wrote: > On Fri, Feb 5, 2021 at 8:41 PM Andy Shevchenko > wrote: > > On Fri, Feb 5, 2021 at 8:25 PM Andy Shevchenko > > wrote: > > > On Fri, Feb 5, 2021 at 7:25 PM Calvin Johnson > > > wrote: > > > > On Fri, Jan 22, 2021 at 09:12:52PM +0530, Calvin Johnson wrote: > > > > > > ... > > > > > > > > + rc = fwnode_property_match_string(child, "compatible", "ethernet-phy-ieee802.3-c45"); > > > > With ACPI, I'm facing some problem with fwnode_property_match_string(). It is > > > > unable to detect the compatible string and returns -EPROTO. > > > > > > > > ACPI node for PHY4 is as below: > > > > > > > > Device(PHY4) { > > > > Name (_ADR, 0x4) > > > > Name(_CRS, ResourceTemplate() { > > > > Interrupt(ResourceConsumer, Level, ActiveHigh, Shared) > > > > { > > > > AQR_PHY4_IT > > > > } > > > > }) // end of _CRS for PHY4 > > > > Name (_DSD, Package () { > > > > ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > > > > Package () { > > > > > > Package () {"compatible", "ethernet-phy-ieee802.3-c45"} > > > > I guess converting this to > > Package () {"compatible", Package() {"ethernet-phy-ieee802.3-c45"}} > > will solve it. Thanks a lot Andy! This helped. But is this the correct way to define compatible string value, i.e as a sub package. > > For the record, it doesn't mean there is no bug in the code. DT treats > a single string as an array, but ACPI doesn't. > And this is specific to _match_string() because it has two passes. And > the first one fails. > While reading a single string as an array of 1 element will work I believe. > > > > > } > > > > > > }) > > > > } // end of PHY4 > > > > > > > > What is see is that in acpi_data_get_property(), > > > > propvalue->type = 0x2(ACPI_TYPE_STRING) and type = 0x4(ACPI_TYPE_PACKAGE). > > > > > > > > Any help please? > > > > > > > > fwnode_property_match_string() works fine for DT. > > > > > > Can you show the DT node which works and also input for the > > > )match_string() (i.o.w what exactly you are trying to match with)? > > > -- > With Best Regards, > Andy Shevchenko