Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2179291pxb; Fri, 5 Feb 2021 10:48:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpxXD8Zy/Aws0txZD2+wDwaO145pyCDR26+BeydEPvfYU6swztb7ZyR/cv0FFIGw42mBvj X-Received: by 2002:a17:906:ce24:: with SMTP id sd4mr5135564ejb.21.1612550934360; Fri, 05 Feb 2021 10:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612550934; cv=none; d=google.com; s=arc-20160816; b=MqOAS5KF/hDotVsb8LPv84XqWxBUfss3lj8RfHyVaAXQHWyyoOrk1gWKyO2dgavWyp OqDTf2NJEqL9od7XjlOIwzaCl1suUh2SA55HQ47MnxqDAUapoWLtMW/PHe+3NPSwyuRD WzH/WfqyGvSTy3UFlnhjY1Z9nmCowpXd91JFgI5ABKWAzb8a5GC4VoAMLhvTIrQu3sEx TxxBPVft8v/YFYHxOzGX4syRJMGnDqIK4/9LZn5GyC9sG3N+Qgkfu3Ci0rzpEI6dPt0l Y5BA1wRw3azVdYElbPWRlbkT/TPb+MV5CCa667N5CX/cwELS8yOkxmzfwKB/vdwbo6hL +YUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hC/UygB6GdsZ6eOraCnag63BwEncrG0x9BtmpVb+yMo=; b=cBHbRcAVFEMiM8W67h5gzXmAEn8lMgxFXsVc5e7XQBjZvyhCc9qFKWDFOIGFoVeT5F J5zdI45uk9AyzzkpFDqO0Bhgi2/4ciE57Xr6Pk3RWtgTVwmA6HvCVcF3n/QBbxTOZxz3 pL0vZAwsFeZfYogEMcFxp7JfTsRVW/FFYo2XFlzWtN7kZCusqnmmTnrBODME3mXOnr6Z Zd7D/Pi1jq2BZO6mf81Th18pDq7cNt7uvEUWiMquirVUWEZ1E0NV8OMoV1M5Ra83aPXH zdrfNDm9rX5YwMZXTkB4Zk2eKZ9tpnCL5u+W4XrxTrPviPNip6dlHAnj2LYy725bsGZb UMmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TjRy+eWK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si1389481edk.570.2021.02.05.10.48.29; Fri, 05 Feb 2021 10:48:54 -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=@gmail.com header.s=20161025 header.b=TjRy+eWK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233739AbhBERBm (ORCPT + 99 others); Fri, 5 Feb 2021 12:01:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233289AbhBEQ77 (ORCPT ); Fri, 5 Feb 2021 11:59:59 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50285C06174A; Fri, 5 Feb 2021 10:41:41 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id n10so5144904pgl.10; Fri, 05 Feb 2021 10:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hC/UygB6GdsZ6eOraCnag63BwEncrG0x9BtmpVb+yMo=; b=TjRy+eWKEXJUVeK/Gsejs2eaRhnLYsV0zq1vBr7NEsVAkz0F+cLP8n/qyRJhBd8RJ0 i8caCeYZvMwSx3PQRy3U8AhfRs5hqucvRhRetp4ZmWtJqjCOW0HJAW/NTdqZ1mGGjoCW mIDuyz974q+SPxzrjIL9HI522rILrBeWl/abgB2nqB3DVt//140xaEpCbIlXkGgtwBp4 pRbM8YhcnK6Rse+YEa49mhHgDHPaRCcJ0j2reS9o0w+LjupolZFbMeYnVPAkjymxt/QN mZ0Ruc/wh3S1ut7QZM8Czq4QjJFDsUQE6xbH/ei2zIONU8XfkXbOtixcQmkWIaNFQf97 1/pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hC/UygB6GdsZ6eOraCnag63BwEncrG0x9BtmpVb+yMo=; b=rhGvD0CSuvE+LuR7zxAg/J5myooHeVfr84Iu3ZuG6IJhAT747gyBiUw0/NR1zb5LwJ YA93cFMQBL/q1/5ZZdHHq3aAkhAqOtc1aGVRpXzXEBL2bDmtCsmC6W/eZGLfDhzlRV6l Bmh8hA0iiyCBre1awY3ipwbXNtqEAiUd+MVBAohyH1MOK4oCjJiuNx9jjR//j3SG0LTD JSyAu57CN8UeuFN/YWA9aN4Ge70vi8C7dZMwPsxeoJs3YdGe1FlnmC0AiGMEIjxQal4Q KDSv/1vSjhNd3wbjxYEEt/EsvGRYspJFCGQribOBmy4eGaKXpJqDxhDt2KMdZlUARWlZ oxjg== X-Gm-Message-State: AOAM532z53Ukecx25pkz8Uuyt2Io+BHYS6f6sJ9VCmULuf26MAp+Iwt/ fk5AT7D46d82HKX3KD7kgM8OdbjILOWd6vA17NU= X-Received: by 2002:a63:e50:: with SMTP id 16mr5569002pgo.74.1612550500873; Fri, 05 Feb 2021 10:41:40 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Andy Shevchenko Date: Fri, 5 Feb 2021 20:41:24 +0200 Message-ID: Subject: Re: [net-next PATCH v4 07/15] net: mdiobus: Introduce fwnode_mdiobus_register_phy() To: Calvin Johnson 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > } > > }) > > } // 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 -- With Best Regards, Andy Shevchenko