Received: by 10.223.148.5 with SMTP id 5csp7424852wrq; Thu, 18 Jan 2018 05:24:23 -0800 (PST) X-Google-Smtp-Source: ACJfBotnTa4guCnOKBnqAxBJTow9TKjKfItaeGJW9dq/mXd0dGHkgtcxvAHCMXtBY27v3UOpzNcN X-Received: by 10.101.101.11 with SMTP id x11mr11575444pgv.130.1516281863679; Thu, 18 Jan 2018 05:24:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516281863; cv=none; d=google.com; s=arc-20160816; b=aszHld8ZljuEDGWOOHLOFWUbxCd030RcZPMMyDu1yx+uU9Leh28GgSCO6JlJhUIiBt m/+rJV1mfOJGm0CPPHnpCSi45c43bCRdirHx+IRAVRZR3CuVVYximlJjBEsm2SYlGc3s BRtyhsveask0PmateUKf6EqpYJwfu47BtRERLhS0snzLXfkmJyDRvnsA74mbjzsUM5B8 w4JArBLm6dhZQxJ1U0Bs5L3mX5pid4N5J3JFnB/ylqyu7nqvpfYIeB6iShS4SJr5hTcR /nBcCl/gkunw2PGcS8yVtjkMBTKmEnt5U8cOY4YSDxMnMQCGceSxNSYfeOYwBTc5b64t TugQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=1rieA+27YdcXMA+6OZlfKR0fhLZckLEAHsqrWk1Qo/E=; b=07AWX2WtZdWfKc67IqCU7SkC+Wa3nNgF3BKWGzlRDjRy6+2dGcDXn43wFlQJ1ZYyn3 25QkzMr1Z5FgxwtI+KDd4+lPW7FZK14ZGQ6NVm31z1+tZXQNdA/HIq9wXRLolpQGLGZh M0HVvFlyqD8gLwTGdN2fg8nubgv/z2HGLqEyhw9M8R8Ol8OpZp2hEY83XZSmPgDTTnKF nbQwY5WaNMi/m01xHEdAX5Zm7F0/DHqQ3Q2ud+vw2DJ8oN3OnYhIYic+sk0jvnpCkC47 WlfNCNsCkS+tI9JGN6gN5PtB++BqrAwY4NbwVloFYpl6Ju191uQphxh5GEKDFOXky6zT 3IIA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13si675741pgf.418.2018.01.18.05.24.10; Thu, 18 Jan 2018 05:24:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756244AbeARNXj (ORCPT + 99 others); Thu, 18 Jan 2018 08:23:39 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:34417 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756162AbeARNXg (ORCPT ); Thu, 18 Jan 2018 08:23:36 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 4064620990; Thu, 18 Jan 2018 14:23:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (nat.foo.tf [163.172.35.26]) by mail.free-electrons.com (Postfix) with ESMTPSA id 041912089A; Thu, 18 Jan 2018 14:23:22 +0100 (CET) Date: Thu, 18 Jan 2018 14:23:22 +0100 From: Antoine Tenart To: Marcin Wojtas Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-acpi@vger.kernel.org, graeme.gregory@linaro.org, davem@davemloft.net, linux@armlinux.org.uk, rafael.j.wysocki@intel.com, andrew@lunn.ch, f.fainelli@gmail.com, antoine.tenart@free-electrons.com, thomas.petazzoni@free-electrons.com, gregory.clement@free-electrons.com, stefanc@marvell.com, nadavh@marvell.com, neta@marvell.com, ard.biesheuvel@linaro.org, jaz@semihalf.com, tn@semihalf.com Subject: Re: [net-next: PATCH v4 0/7] Armada 7k/8k PP2 ACPI support Message-ID: <20180118132322.GE2690@kwain> References: <1516278704-17141-1-git-send-email-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1516278704-17141-1-git-send-email-mw@semihalf.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcin, I tested the series on a MacchiatoBin to ensure the mvpp2 DT support was still working. I was able to use all supported ports as before, and saw no issue. For all mvpp2 patches, you can add: Tested-by: Antoine Tenart Thanks! Antoine On Thu, Jan 18, 2018 at 01:31:37PM +0100, Marcin Wojtas wrote: > Hi, > > I quickly resend the series, thanks to Antoine Tenart's remark, > who spotted !CONFIG_ACPI compilation issue after introducing > the new fwnode_irq_get() routine. Please see the details in the changelog > below and the 3/7 commit log. > > mvpp2 driver can work with the ACPI representation, as exposed > on a public branch: > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/marvell-armada-wip > It was compiled together with the most recent Tianocore EDK2 revision. > Please refer to the firmware build instruction on MacchiatoBin board: > http://wiki.macchiatobin.net/tiki-index.php?page=Build+from+source+-+UEFI+EDK+II > > ACPI representation of PP2 controllers (withouth PHY support) can > be viewed in the github: > * MacchiatoBin: > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/blob/71ae395da1661374b0f07d1602afb1eee56e9794/Platforms/Marvell/Armada/AcpiTables/Armada80x0McBin/Dsdt.asl#L201 > > * Armada 7040 DB: > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/blob/71ae395da1661374b0f07d1602afb1eee56e9794/Platforms/Marvell/Armada/AcpiTables/Armada70x0/Dsdt.asl#L131 > > I will appreciate any comments or remarks. > > Best regards, > Marcin > > Changelog: > v3 -> v4: > * 3/7 > - add new macro (ACPI_HANDLE_FWNODE) and fix > compilation with !CONFIG_ACPI > - extend commit log and mention usability of fwnode_irq_get > for the child nodes as well > > v2 -> v3: > * 1/7, 2/7 > - Add Rafael's Acked-by's > * 3/7, 4/7 > - New patches > * 6/7, 7/7 > - Update driver with new helper routines usage > - Improve commit log. > > v1 -> v2: > * Remove MDIO patches > * Use PP2 ports only with link interrupts > * Release second region resources in mvpp2 driver (code moved from > mvmdio), as explained in details in 5/5 commit message. > > Marcin Wojtas (7): > device property: Introduce fwnode_get_mac_address() > device property: Introduce fwnode_get_phy_mode() > device property: Introduce fwnode_irq_get() > device property: Allow iterating over available child fwnodes > net: mvpp2: simplify maintaining enabled ports' list > net: mvpp2: use device_*/fwnode_* APIs instead of of_* > net: mvpp2: enable ACPI support in the driver > > drivers/base/property.c | 104 ++++++++-- > drivers/net/ethernet/marvell/mvpp2.c | 206 ++++++++++++-------- > include/linux/acpi.h | 3 + > include/linux/property.h | 11 ++ > 4 files changed, 232 insertions(+), 92 deletions(-) > > -- > 2.7.4 > -- Antoine T?nart, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com