From patchwork Sun Dec 31 11:58:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 854217 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=semihalf-com.20150623.gappssmtp.com header.i=@semihalf-com.20150623.gappssmtp.com header.b="ekj5QH4W"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z8f6252dpz9s84 for ; Sun, 31 Dec 2017 23:00:26 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128AbdLaL6y (ORCPT ); Sun, 31 Dec 2017 06:58:54 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39351 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbdLaL6w (ORCPT ); Sun, 31 Dec 2017 06:58:52 -0500 Received: by mail-lf0-f67.google.com with SMTP id m20so38718846lfi.6 for ; Sun, 31 Dec 2017 03:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NuUuIHebTz4Kw9qURvaFzwyQ7+t2O0GjzF+uaO8jiwM=; b=ekj5QH4WhL8o+1IZKMb2vN3lvEhbEPPiHM8+2C0GGPNi1v+GJRGivi9egtT8GGqBoi AY8bPxuqDLnuG4mJRgI/Ug7/m0ZLYAHuVvxz7bSJyY1HXyFSnaERpGHWZOMeTNbW4MIN JgSuAthDXUtR9rUW6PImZ/qRmFhpJQOBpLEcjPwhqAu5YYywnpkprc50vl6nzhGFMPE4 mdvrWscOJvBk/MDjuaIY/WKar0bQkICcWe/qsmPtG7NV9JXOP4JbW69paV+vtva+jgPC 8Wi2ORmtipdHP6VqWSwdJTtI/GjxpMKo38d4xihvAcdI+F0RE8FmFA0sNv0VCMswQ7CP 9ejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NuUuIHebTz4Kw9qURvaFzwyQ7+t2O0GjzF+uaO8jiwM=; b=GP/m/hgr5JnQxRq29Xz0bmvF9NTDspkiGp8KUTtZ6gTn5u+vb+WKJlYpKAI9YQoJXv fSxrKLPF+scxBF6wGeAE3X3UriH6j35oRe6wOmxe7NaCh2Nf4XZqcDtBHRJYs3Mk12vQ ExIJU8XARu1lh9/RSbExbaT32l5SPzQ5xyxlXxQl1xT95JJToYmYtZgGlmIo8SEWfTB9 rWU2J3xG2f6HGgl+2r1E5E5ebjkbHPWW6B3QyRfWqwYp/zsZwvM/26q1/3B/8V5XO3FA QsHyhIqmYy8N5dUENA4nJUrrP3nc+e9QknqrpRP82xJ1HkevHzmoLNxFWBPYDqIDeb/L Cwkw== X-Gm-Message-State: AKGB3mLieCIj+UcLesTNMVKFppGgO8mBcNPDhodvfcJEyhLu6Lr+Esxm RKFyHVe81v7tyrexrW5k/bR6kA== X-Google-Smtp-Source: ACJfBoss5h78UgdiIbHK3eO+0H7H55M6UXTjShQhwluru+VauqPV+yQoLeem6TqOceVBf4y0KEgm5g== X-Received: by 10.46.5.12 with SMTP id 12mr23450334ljf.116.1514721530860; Sun, 31 Dec 2017 03:58:50 -0800 (PST) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id f10sm8646298lff.56.2017.12.31.03.58.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Dec 2017 03:58:49 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-acpi@vger.kernel.org Cc: 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, ezequiel.garcia@free-electrons.com, nadavh@marvell.com, neta@marvell.com, ard.biesheuvel@linaro.org, mw@semihalf.com, jaz@semihalf.com, tn@semihalf.com Subject: [net-next: PATCH v2 0/5] Armada 7k/8k PP2 ACPI support Date: Sun, 31 Dec 2017 12:58:35 +0100 Message-Id: <1514721520-18964-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This a second version of a patchset, which introduces ACPI support in mvpp2 driver. Comparing to the initial one, all patches touching generic ACPI MDIO bus / PHY handling were removed and after some modifications will be resend separately. They may require a longer discussion in terms of phylink support and ACPI specification extensions. This way mvpp2 driver is able to operate using the link interrupt capability (a.k.a. in-band management) on all ports, 1000BaseT RGMII included. Driver operation was tested on top of the net-next branch with both DT and ACPI on MacchiatoBin and Armada 7040 DB boards. 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/marvell-armada-wip/Platforms/Marvell/Armada/AcpiTables/Armada80x0McBin/Dsdt.asl#L201 * Armada 7040 DB: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/blob/marvell-armada-wip/Platforms/Marvell/Armada/AcpiTables/Armada70x0/Dsdt.asl#L131 I will appreciate any comments or remarks. Best regards, Marcin Changelog: 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 (5): device property: Introduce fwnode_get_mac_address() device property: Introduce fwnode_get_phy_mode() 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 | 52 +++-- drivers/net/ethernet/marvell/mvpp2.c | 222 ++++++++++++-------- include/linux/property.h | 3 + 3 files changed, 180 insertions(+), 97 deletions(-)