Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3060075imm; Mon, 24 Sep 2018 15:07:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV61lVtdPTD8Fq0eETIWiJwqI4kYe3VrEnBrERSdX3F1HO66A6lyWxru7XQ2lfIXrQcIEfmEG X-Received: by 2002:a63:c44a:: with SMTP id m10-v6mr617872pgg.416.1537826865937; Mon, 24 Sep 2018 15:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537826865; cv=none; d=google.com; s=arc-20160816; b=oibTF0TH7+mO798Y7Q2N/CzrKCZ26y1CMV+ikPFnLGOHcJb3vk08IE1XyvU0iofJmv SV/OvL7ZjRrbhCIEekWLKpI8bICg1acUODu3rC8pywWWpCe8CPUINELEvrseDZFNq5Ea sV0FivLEU0+TWx844Ckeddc8TV8V3BQY0um0KhTcZeg+kPdL4Shr5g8R7XTHW/mUJeI3 kQUm0apVPUEDKst4VAINy+TMTEoBrh+zLRtkCjIokBCuzGSexCxf9s7HEDiq+dCdDl92 xiVZFW+NCGAWjSixUnuUr3QwgMHVli0Ua40RzrYmxIRnUqs9WyszUkup63fxNj4O/JH5 lJog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=MPR1cPIEjKmhaMgBUoqN6Crcc3zliURHlcx1NsSSzKQ=; b=mXWKfYk9PsFU/fO0I4eIsAthU27QSK9VUAkWmxZNpP7CnGcY6iCkHUFQxn599ynQo0 ZQ0wNcYjw6Y/8xdo1zhBcx1r/XycRQyB3PlQq96hNF8z1itdWP8fsH9TF2wVNg5Bcv4j z0OS6TtA58nT9Y4IERCWTOzfL5l/f/W4sIYwiu4PXiULVn2QUbDqn1c9BrwXO55EWtll gW3rarp57Br9EO3vSm9fw4HFm+vnJuKRThDhBA3jm7eM+CCH53uKlHdYmxEBmEPJsvD2 PcFd4Ggj6OT8hgMZcreAuTzrK7jklbtwflh+MgzmP9UTr7nVtskBm2Pe5yysWGVmWcsY 9sXQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si496040pgj.443.2018.09.24.15.07.28; Mon, 24 Sep 2018 15:07:45 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728343AbeIYELZ (ORCPT + 99 others); Tue, 25 Sep 2018 00:11:25 -0400 Received: from mga14.intel.com ([192.55.52.115]:5955 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728244AbeIYELZ (ORCPT ); Tue, 25 Sep 2018 00:11:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2018 15:07:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,299,1534834800"; d="scan'208";a="75595433" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.132]) by orsmga007.jf.intel.com with ESMTP; 24 Sep 2018 15:07:03 -0700 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, peppe.cavallaro@st.com, dinguyen@kernel.org, linux@armlinux.org.uk, alexandre.torgue@st.com, joabreu@synopsys.com Cc: thor.thayer@linux.intel.com, davem@davemloft.net, mchehab+samsung@kernel.org, catalin.marinas@arm.com, akpm@linux-foundation.org, arnd@arndb.de, aisheng.dong@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] net: stmmac: socfpga: Use shared System Manager driver Date: Mon, 24 Sep 2018 17:09:06 -0500 Message-Id: <1537826946-18942-5-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537826946-18942-1-git-send-email-thor.thayer@linux.intel.com> References: <1537826946-18942-1-git-send-email-thor.thayer@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thor Thayer The ARM64 System Manager requires a different method of reading the System Manager than ARM32. A new System Manager driver was created to steer ARM32 System Manager calls to syscon and ARM64 System Manager calls to the new access method. Convert from syscon to the shared System Manager driver so that both ARM64 and ARM32 are supported. Signed-off-by: Thor Thayer --- drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c index 5b3b06a0a3bf..743c7f471edb 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -15,6 +15,7 @@ * Adopted from dwmac-sti.c */ +#include #include #include #include @@ -114,7 +115,8 @@ static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device * dwmac->interface = of_get_phy_mode(np); - sys_mgr_base_addr = syscon_regmap_lookup_by_phandle(np, "altr,sysmgr-syscon"); + sys_mgr_base_addr = + altr_sysmgr_regmap_lookup_by_phandle(np, "altr,sysmgr-syscon"); if (IS_ERR(sys_mgr_base_addr)) { dev_info(dev, "No sysmgr-syscon node found\n"); return PTR_ERR(sys_mgr_base_addr); -- 2.7.4