Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp405921pxj; Fri, 11 Jun 2021 02:03:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMv4Kao2uzpRU/I3/0fmGWIxDnFPJxcN4820/bvBW9g0r/jgHIykV7uPF692ty7I3prNV/ X-Received: by 2002:a17:907:2be5:: with SMTP id gv37mr2848486ejc.237.1623402194692; Fri, 11 Jun 2021 02:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623402194; cv=none; d=google.com; s=arc-20160816; b=BsSx0CtmB+V9ExxiLTYpGMg6b0ZNkttBKK96ZcrADJNzVzGaej4vcy8Of1zd6htpCO AhhNk7UkfcBNY9zeDZHtOLS7ZcQAoyf+Dl74w3ux3OWqvS8fdnOJDOGzz5cV3iwsjpqb p6aPl4o6alSzqOOoAXNlmAiAQZ4i7K7shXaKaZUxP0TLkaOVcmXtboyxiESPJYE0szjM FQAk9YguMR99B6c+/20ebwqT7scvYSC76McDkuADcJNi5CYiLUvdaMFLisysAqmu06mS 6OnKevDAjH0CcaqhU+93OEZTwB8X22z6hRLNpG+RaRegIJqjxATt7An/bAFSHRTT0uY4 4p7g== 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=fIlvnpCPbICwDJ4Vl00FPiAYRz1ggW2QfBtE3qOeQVk=; b=b82yTcXzm/z9doV4YmP9mOthexUux4+K92G+078QGayGGphiUqDaVJ/tZGMOIGJJcV zxQ4UmtOm3VDoGY7c6qeZRXmUQqmy8lUBOoB6+0S6wUAsGdv61YqURo5BTjI5Os63Kz3 h4mzz6wi4wOppSuDy2IU/83t64hTJV1Qg11/l9G879TEVEMdzODWCY/UJV4WokVNQf/l ujka2xO6N7zxJUtCiNi2k0LYgaGuFkxVkfo95VYJIOuM7JP6m1iPbSY1gDMG3x87BM1d SIRkSPk4Lgf0A8Wonr0CJjFWKq8/yqtkLgFS3fYt6NaGUBxhRxiulwI57l21q29OVZ+g UNyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TCKGtdyw; 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 7si4073434ejk.640.2021.06.11.02.02.50; Fri, 11 Jun 2021 02:03:14 -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=@gmail.com header.s=20161025 header.b=TCKGtdyw; 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 S231314AbhFKJD2 (ORCPT + 99 others); Fri, 11 Jun 2021 05:03:28 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:43710 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbhFKJD1 (ORCPT ); Fri, 11 Jun 2021 05:03:27 -0400 Received: by mail-pl1-f173.google.com with SMTP id v12so2504224plo.10; Fri, 11 Jun 2021 02:01:18 -0700 (PDT) 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=fIlvnpCPbICwDJ4Vl00FPiAYRz1ggW2QfBtE3qOeQVk=; b=TCKGtdywZsQ0mUdoNA1VIXMy1S4UFr0Ur7QxJ8scHxxHbnqqyS3zEccbMsxmjBTYF1 m5rPzJFtJuk4Y8f048RqUFJ2pXMI/EOQ8zAqiQ6Akh1+HrXreQP6fO83PnO7auH/J72A W9ugS5yt3wF/4/3yY6ZpFl/Se6GdI4MXMq9oM4+Pjfc7iEajS3aeMqnsYPrH012T1JmA O+kcBd9nMucev4zJwCRO6GxNVUibopNwpiTs7VsqPHd2aRj2/7kn8fqR527gbCQbT8K4 x+8+w37HZ7gyaUzd1KRNEj7YiE8h5f7EgBK85+PltyFgMEZ+ObAF07llCg276oaM2umZ qeiw== 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=fIlvnpCPbICwDJ4Vl00FPiAYRz1ggW2QfBtE3qOeQVk=; b=N95S2MhLkYQru+a5U6vwPC1YeDyPoKNlqjNF2zhF+vM2xGWrlMFOEhVSF3S9R+Unv2 jX4+o+iGJBH+ZfASXlMG8LjCeu5kSmApjpqKbHe4OtWuwtmejYVx4xQGAobJQxXgqiZe ts888de+dRgbilLs2AeaRSxsxR8FkBLWinjpDC9UekyDEu5qJrW2GYQXMjcXPByytZPK J3VagULo+TXAvvSsj2nj6P6dTCIZgGf5UNe00JBFXRQJaUr8thBbR2eZeQss1J0Vo/8G MpAkwkqK4ztQW1fBHyXSKlVrlWuSCbhD7dJ4x6e6Fv77zrnU3JPa2F3SXRf7HcvFx+wO epLA== X-Gm-Message-State: AOAM533U9RxSKoXtE/fKayTaoVExowa01hy5esHOutMxFY6Su/IwHSWU TiEbToZxVAO6T3BHGGN9/pA9KDnKvEkYUGC4pSQ= X-Received: by 2002:a17:90b:818:: with SMTP id bk24mr3566082pjb.228.1623402018625; Fri, 11 Jun 2021 02:00:18 -0700 (PDT) MIME-Version: 1.0 References: <20210610163917.4138412-1-ciorneiioana@gmail.com> In-Reply-To: <20210610163917.4138412-1-ciorneiioana@gmail.com> From: Andy Shevchenko Date: Fri, 11 Jun 2021 12:00:02 +0300 Message-ID: Subject: Re: [PATCH net-next v8 00/15] ACPI support for dpaa2 driver To: Ioana Ciornei Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , Calvin Johnson , Cristi Sovaiala , Florin Laurentiu Chiculita , Madalin Bucur , linux-arm Mailing List , Diana Madalina Craciun , ACPI Devel Maling List , Linux Kernel Mailing List , "linux.cj" , netdev , Laurentiu Tudor , Len Brown , "Rafael J . Wysocki" , Ioana Ciornei Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 7:40 PM Ioana Ciornei wrote: > > From: Ioana Ciornei > > 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() > fwnode_mdio_find_device() > acpi_get_local_address() > > First one helps in connecting phy to phylink instance. > Next three 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. > Last one is used to get local address from _ADR object. > > Corresponding OF functions are refactored. In general it looks fine to me. What really worries me is the calls like of_foo -> fwnode_bar -> of_baz. As I have commented in one patch the idea of fwnode APIs is to have a common ground for all resource providers. So, at the end it shouldn't be a chain of calls like above mentioned. Either fix the name (so, the first one will be in fwnode or device namespace) or fix the API that it will be fwnode/device API. -- With Best Regards, Andy Shevchenko