Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4031787ybl; Mon, 3 Feb 2020 11:12:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzPXYVuhYQjE3xR+iOVI5f2CzGCovCOocEqSndVW+Y4oIJmFIrhMko/v/KBZeKvFYdOy6yW X-Received: by 2002:aca:560b:: with SMTP id k11mr363185oib.53.1580757123507; Mon, 03 Feb 2020 11:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580757123; cv=none; d=google.com; s=arc-20160816; b=DvWYdF0fM7eqKhN2VHj3BESH29EqFMT6O5Uc1gEwfHP0QM+TQVBnNhFS6t9x5Y6WWM g+0pv2gcF9vQh2oXuhjsT7tj7DA2ekTya7Vhc7MBTR4YcEthCjTkQjk3aK0DbBva/x0/ terpPzPtUHo791vAzifQ8OXB/D8GI5Q5bJJ+oMg4b1neih9oMO2Y53samIVRfPwlZM6u iIvN/wJP5xijP4a2HMbXh27EAjTpC3oPp0m0WC6EmaGhgo7Wr6SZ7z8JKHPWXLxMlULq 29/KwMgSmuY7Qvz7Er4MxGEn4iUMmQpmNB14BpJMjhLgWii786dbu93snDMjaZTfgg6+ v2pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=pjL7Y0zp+kMKEMjjA17pY3haLYvj/yXBgXXkYe32lfA=; b=HJxlk79h9U+ttt+RX8c3hs06jNlzGZwgNOXHCLj6tIpWQcCCs9GnhGtDjeSK++VWIS 465Ds+yhag8g5cIfd0I7ZhmDxe4UqbHa45CxMZ0WwP0kdHUiUzYnhYXymRzXkDJ8xJu8 8S5i2rwNhOx4hSWGRKyWqQXQos/UeMwjcqkldbd1JYsVSYjrYwKozxHQ4+ApZVizQJep ZADXH7afhq9pgmhQ9hGoDnzJ1yovU+tIwfTMEF/wyXBrrFi30H8jW1czhGNY3hn4EVH7 MspowSuTKBpu4UZpCP+C4DuTOo/0jfpYAwNeF5O62OYdFo6owwGM5annTPDmIL6q+Leu Pj3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C2D54H2O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z1si9750501otp.70.2020.02.03.11.11.51; Mon, 03 Feb 2020 11:12:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C2D54H2O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729486AbgBCSCX (ORCPT + 98 others); Mon, 3 Feb 2020 13:02:23 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42705 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728871AbgBCSCX (ORCPT ); Mon, 3 Feb 2020 13:02:23 -0500 Received: by mail-pf1-f194.google.com with SMTP id 4so7963510pfz.9; Mon, 03 Feb 2020 10:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pjL7Y0zp+kMKEMjjA17pY3haLYvj/yXBgXXkYe32lfA=; b=C2D54H2OsHe2iRBTF6t711yuQ+Tbku62vjvBSz3+oyUNBhGQgfWRZZva0jQ9993ARU 9HZVgUC6aO9DK5EOwV1WAQhkqW/idMrkBfNpoHJueCDnRBCeTQ62qkNNbwP8DxnKZ/6H 5EdK+qVFB1CTrb1PtgPtGwURyMQHHX49Zxj5NZfLHxFhye45zWRu7b3/a8xhi51m/Kbz q9Tl9Q2/FJT+jwP09NLKmifD95k+BzTVSpD9+rhq1BYqkvBMZWAAgTh8Ov1p6d3YmrSC xqDrla2QU5KbzDU7kOA5ysmeWpHHI5dKYwSOWsjDNttmuwio3aKbheqYc754XCYhdCfY yPHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=pjL7Y0zp+kMKEMjjA17pY3haLYvj/yXBgXXkYe32lfA=; b=Oft8nnOIB0bx46qu6d1Orw6S9AkQLk3iIuHNBszXyP9nbVf/Iy+oqvHllVEIU5Ly4S ENuhJxG7O7Cjl0zf5iiBTd7m8C1neWn4ljLaD3lK06/3uu6pzVBd6nwUk+eX4C5yogGU Z72KdYjmWlVma8KNrh99n2yL2lEonDQPZF7rt39QFITxYB9UgVySeJ8QvBQ7SLY4Utgf eKqRKvMPtt4JWu4iCSG459gdG4ST+GkmXPPIwL4cD5T37RQgbSydmaCilDiL6GAE0Dlu o49RojAkEVNL95z8WtZiPd99CUtyw5mAbA/uTlP0Wuby4+JBsnxVmMXZojs4QjZqNul/ 8JXw== X-Gm-Message-State: APjAAAXHSt4An5601NDN8sOUyYTAYTdzLPmLP6IwtyboeEeBT4c1eZQN ffaCgmF2HzqqtYIIp7tVqH+TmtKl X-Received: by 2002:a63:e954:: with SMTP id q20mr27773347pgj.204.1580752940401; Mon, 03 Feb 2020 10:02:20 -0800 (PST) Received: from [10.67.50.115] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id b21sm21783747pfp.0.2020.02.03.10.02.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Feb 2020 10:02:19 -0800 (PST) Subject: Re: [PATCH v1 0/7] ACPI support for xgmac_mdio and dpaa2-mac drivers. To: Calvin Johnson , linux.cj@gmail.com, Jon Nettleton , linux@armlinux.org.uk, Makarand Pawagi , cristian.sovaiala@nxp.com, laurentiu.tudor@nxp.com, ioana.ciornei@nxp.com, V.Sethi@nxp.com, pankaj.bansal@nxp.com, "Rajesh V . Bikkina" , Jeremy Linton Cc: Calvin Johnson , Andrew Lunn , Andy Shevchenko , Antoine Tenart , "David S. Miller" , Dmitry Torokhov , Greg Kroah-Hartman , Heikki Krogerus , Heiner Kallweit , Ioana Radulescu , Madalin Bucur , Matteo Croce , Maxime Chevallier , "Rafael J. Wysocki" , Russell King , Sakari Ailus , Thomas Gleixner , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20200131153440.20870-1-calvin.johnson@nxp.com> From: Florian Fainelli Autocrypt: addr=f.fainelli@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwH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64LrqdmiVVPC TwQYEQIADwIbDAUCVF/S8QUJHlwd3wAKCRBhV5kVtWN2Do+FAJ956xSz2XpDHql+Wg/2qv3b G10n8gCguORqNGMsVRxrlLs7/himep7MrCc= Message-ID: Date: Mon, 3 Feb 2020 10:02:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200131153440.20870-1-calvin.johnson@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/31/20 7:34 AM, Calvin Johnson wrote: > From: Calvin Johnson > > This patch series provides ACPI support for xgmac_mdio and dpaa2-mac > driver. Most of the DT APIs are replaced with fwnode APIs to handle > both DT and ACPI nodes. > > Old patch by Marcin Wojtas: (mdio_bus: Introduce fwnode MDIO helpers), > is reused in this series to get some fwnode mdio helper APIs. Andrew's comment on your first patch is a good summary of what this patch series does, instead of consolidating the existing code and making it less of_* centric and more firmware agnostic, this duplicates the existing infrastructure almost line for line to create a fwnode specific implementation. The preference would be for you to move away from that and use device_* properties as much as possible while making the code capable of handling all firmware implementations. Can you also show a few DSDT for the devices that you are working so we can a feeling of how you represented the various properties and parent/child devices dependencies? > > > Calvin Johnson (6): > mdio_bus: modify fwnode phy related functions > net/fsl: add ACPI support for mdio bus > device property: fwnode_get_phy_mode: Change API to solve int/unit > warnings > device property: Introduce fwnode_phy_is_fixed_link() > net: phylink: Introduce phylink_fwnode_phy_connect() > dpaa2-eth: Add ACPI support for DPAA2 MAC driver > > Marcin Wojtas (1): > mdio_bus: Introduce fwnode MDIO helpers > > drivers/base/property.c | 43 ++- > .../net/ethernet/freescale/dpaa2/dpaa2-mac.c | 78 ++++-- > drivers/net/ethernet/freescale/xgmac_mdio.c | 63 +++-- > .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 7 +- > drivers/net/phy/mdio_bus.c | 244 ++++++++++++++++++ > drivers/net/phy/phylink.c | 64 +++++ > include/linux/mdio.h | 3 + > include/linux/phylink.h | 2 + > include/linux/property.h | 5 +- > 9 files changed, 450 insertions(+), 59 deletions(-) > -- Florian