Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1492319imc; Mon, 11 Mar 2019 15:16:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHrxjNHoaWPFmUjNymTFonxIuc7xoIUQJbzaZjDgffz5hPRsPEMxwb8RsFtO/B6Cywj/PU X-Received: by 2002:a17:902:f302:: with SMTP id gb2mr36833130plb.51.1552342607865; Mon, 11 Mar 2019 15:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552342607; cv=none; d=google.com; s=arc-20160816; b=PKTgtwpNKDGCJieKd4DpDwJhcGtQjual+vpbRN5Tatrg1QXevHBTcHAJJ49vETr+QH 9CKwaeyGAk61iJ0OVEp8pPlawtompYoV5KmbYlQ8ODUhnXkcJA7pE4301A+MxsSx1IjY hnaEbVb5pzmjR01u1eC3tJ8ZnLP0WCNhqnSXzl/PDgIpdEUPcb/Al+RQHv8Zi86CZ0z9 4GCP6FJckjqAkzEJx4GreW7yssXR6UZ6m1KjowVd4QLM8wm0Eiio+yhOfv2t6xE68uvf jdTDwUdHn1FQHBIIJdByxmS9tmvSapWRsWNUN1R9EuJJCcGz32Xi8qDdI+mb/Lw+GfGe raiQ== 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=fzPlI/L8Ewav9qhPXyA9YgeVgGF10I0gb2VzlsG4feY=; b=DVZrkQmBdtvsa7j6c8+zTj5R0VbJzL/eKOWDBrboS0NL+NflZBO7GRUbGaZuSDiveE 29bQux/MIxCkRBmeETKB0+kKeGOoCR3vnNN5Y0xksm0f578H9uO4nG2G2qa39CCP4Sat D9RODq5hMACZAy1xkj5+6kJdNKqh89OiMQ/99Fpqx5kaEh9d1TK+ygl2TK45CGZsHBLv 5X8LKG2DqdFxuAbbmALBkWIm8z19wMb9CKut8hLWkEaFtuAw7BEd1qsFRDT0QELrq0YT nKUGHfaaYBBkb810YlAF60S1mqBpVthJBq6dYNzvQFd0G5N11HiqH5dWgxrlsFnYU4Y2 if+Q== 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 h12si5821691pgs.207.2019.03.11.15.16.32; Mon, 11 Mar 2019 15:16:47 -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 S1728538AbfCKWQF (ORCPT + 99 others); Mon, 11 Mar 2019 18:16:05 -0400 Received: from mga01.intel.com ([192.55.52.88]:33616 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbfCKWQC (ORCPT ); Mon, 11 Mar 2019 18:16:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2019 15:16:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,468,1544515200"; d="scan'208";a="141133795" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga002.jf.intel.com with ESMTP; 11 Mar 2019 15:16:00 -0700 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, arnd@arndb.de, dinguyen@kernel.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, olof@lixom.net Cc: davem@davemloft.net, mcoquelin.stm32@gmail.com, mchehab+samsung@kernel.org, mark.rutland@arm.com, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Thor Thayer Subject: [RESEND PATCHv4 5/6] net: stmmac: socfpga: Use shared System Manager driver Date: Mon, 11 Mar 2019 17:18:07 -0500 Message-Id: <1552342688-6663-6-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552342688-6663-1-git-send-email-thor.thayer@linux.intel.com> References: <1552342688-6663-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 regmap_mmio 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 Acked-by: David S. Miller --- v2 No change to code. Update commit message. v3 Remove the unused syscon.h header. v4 No change - Resend add Acked-by --- drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c index 5b3b06a0a3bf..d466e33635b0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -15,7 +15,7 @@ * Adopted from dwmac-sti.c */ -#include +#include #include #include #include @@ -114,7 +114,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