Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2169374pxb; Fri, 5 Feb 2021 10:33:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx67jLB+vQVJDPzCcTI++p9r1hDDeiPLC8bvTUIUWRXl1cm8IR05NJ0KR5u8m0VtTCF8TB2 X-Received: by 2002:a05:6402:309c:: with SMTP id de28mr4735699edb.96.1612550008397; Fri, 05 Feb 2021 10:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612550008; cv=none; d=google.com; s=arc-20160816; b=Chu5vRTgBuDK5VxjG3AfItG8EZUH8RCJmJqAgq2eV0yhn7U0u3u9UGadAL13X/vtWc vabuXRc6QgKtLPPeYfE6KZ0ipmYU1PtleHeymDCIIsOARrJdlEmvNfhpCyCf5SQPO+rH xesl7wLz5ruUAKsNWy3YUjt4UrH1vRT/6RMJkyhmZ7vOMkVo8Uyfd8uQClEGwWhyHC4E U8aMAJbFYfkgZnysRHyxfKU4VO6cWP6MT3OkMFq+yatWS5gIYcv0KSO4N4mnOl79Q6/p Yqauvv8DGq1ImzyV1KQgSWkVaB+P2AU5pVqnvBxAvc5vmoyIrvId2cldO/wKnndPFm5I /i9w== 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=hDtDmxYzgl4d3/qs8/uzGh/wEnBrhxdK4yPraq/NRyY=; b=VIg9BUMo7YuklkMPIENX8zFJkm5qrt5ESXbotP4U1O63fB9HAc4KT3nWO6C6B1dljX f4dy0OuOUoi8CzK6cKV+qyCMTPh0CkfjjBnmvVfECcQg2Mq4mWf72CeCM6nSx8cibYQY J5Z4NG0vdW8SU4rDgiiftyHRUGvquXWY3hbr1OeXhlz926UrAhVQINl6HIDQx1rts3+r 6UPz8rbvL5fcnFtYNsE+tPDybqwMC7GCW63CyzPWfig8ibidUpBv7MQJWI2O6qwAh4tK X1tZgHo4RYGQpr0G9mCHkfYx9x60tEmLqznaA5BO1EpCxyNCvuyjVQrZjpTAC3aE47TZ hAkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t/YdSGFw"; 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 jl7si2751821ejc.746.2021.02.05.10.33.03; Fri, 05 Feb 2021 10:33:28 -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="t/YdSGFw"; 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 S233627AbhBEQqo (ORCPT + 99 others); Fri, 5 Feb 2021 11:46:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233367AbhBEQnp (ORCPT ); Fri, 5 Feb 2021 11:43:45 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93589C061574; Fri, 5 Feb 2021 10:25:26 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id y10so3996902plk.7; Fri, 05 Feb 2021 10:25:26 -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=hDtDmxYzgl4d3/qs8/uzGh/wEnBrhxdK4yPraq/NRyY=; b=t/YdSGFw8VqVoa1GNBxu66fezqmi5TUbADL4oVBPP0/IG+bTi9h+DonXXD74X7QVK5 II/iIdPGSImQKVW0c0xTg+LpukBQkR3ZCwdgBBONudJ5sJ1CmSIZtK0fFW596jozgVfP jDxRTaesog5T9hs6HHcA05q67L2mtvNUCgnbTcvhePAkiB1gbBgexUo+16qYPESc35cS 12YFYIz8AiLXqUaeA6GU0MdLL5T50YfvsHreaRKnTAL5VcciMUWT1OxjMi5lik8twYGl ZEaEPXqp50XtaKR1OyCyTUpzAxhFczg3p+5TRhO45kA/kIUAuzqXOMjyXssWzV7gOPjc etiQ== 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=hDtDmxYzgl4d3/qs8/uzGh/wEnBrhxdK4yPraq/NRyY=; b=LWthXTU67G1g5KeSCdClGLDWBO0B5k0kCMSI0WXLH054gb/qjarwjGlMhsvWjJ31j0 cFIglaaqnNqnQpoMvapGCXS3LE3SDJrq4UvMB1udptcHIzgPgJNZ7jVpM3Sb3hfW0GMb c1oykQghk9vRFXSR4gKn60AtTdg54IJQpLcUneR5i5BuMJl9cAvihfhEpfeyDjLcnYXm fqX0gGOYvSppUSfEQ5vk2qT/rEcdWcO4qAQLAbO9TxkKhowuSyh9WgqlemcT5+ekV7+z eO6wY+vA3vDgVEJwSTNGCibERPxEIwHZvH+T6nyonaP91tmyRpZaa3Clf112B7n5535d IvHw== X-Gm-Message-State: AOAM533dqfsuIj3UXS5DMWlbCvy3zcMb+QPS9X36etqoK7zsnWnEb1PY DOe5sb61vGsQ9qKcY6iQ0n3LU13N6F21ByhR7Rw= X-Received: by 2002:a17:90a:1b23:: with SMTP id q32mr5408942pjq.181.1612549526116; Fri, 05 Feb 2021 10:25:26 -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: <20210205172518.GA18214@lsv03152.swis.in-blr01.nxp.com> From: Andy Shevchenko Date: Fri, 5 Feb 2021 20:25:09 +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 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"} > } > }) > } // 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