Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp186231imj; Thu, 14 Feb 2019 18:13:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IYoGVDpa5kSPQ3Bhq+iX4LjyPA9vDErgtFfcXXa4cKQVl0hPg0M/hr+7cuSpN1srlQX9ICo X-Received: by 2002:a17:902:2865:: with SMTP id e92mr7334078plb.45.1550196822359; Thu, 14 Feb 2019 18:13:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550196822; cv=none; d=google.com; s=arc-20160816; b=m/cxelwDw/ezdto5zMcR7aPGiw2O0HExNTZfKpcdI0kdqvh8o93Ed6QvA5nlOO1XMM 24SThgVDL87I9vBdvBTir27ODQx6Hb/YnwnRKLtkHsY7D4t7r9QPBProusRGHc8JMnGx Gr+pmyyTXoZfGG16b5VWroaQrKUjGkl3+grmmjmEaAno+HiwQK0GhPyxFf4ePzP+co4s 8NHR+aebAar2VDFPSEJqFu5FMFqRSt9sO47Qhn5mVsQcri1YhMCGohelvcn37GECvjuE CaVszem9isHH3Z5iIvCLZSaPxdbtNZgFrzC6SJ1uS19Y/D7TBFTKCT5sLgSdDo5twvO7 jlMg== 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=fguL+0x5Aw6zbZ33qffInKfY+VdqGHjV6j5nQu8KwpY=; b=eqS6JtAZ1ShEuNwN/7DOuf2tI+z2r3q+wujw67Vpq5EgdavlzfrTQ7XrtQdQppLheV J14rIrivlv3hwmP4Jp95XtYXONT5w3xI4xCiibmz/Nk4JEs7gtMVgiDhWNWgK4qPiK7z ohS9u+ZiEH4mQZ1NCvYDGuIdahfI7gPI6YptNimiOhGHRhTr0dDmCkI8PctYiVK5Rr2a HUUtRRjezWJ1JtOaJOk/deP3jj+BH2RBQM4zhnNy2ZzrYWXC99xdNtBfgSxjEoo+oCX0 aa/COATcATqDb/FC3nPOudrRdv+2SiTc8VCBRhjANna/GX7DAn3oTEmLPqAuNDUcV2wh G33A== 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 u64si4180786pfi.239.2019.02.14.18.13.26; Thu, 14 Feb 2019 18:13:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503154AbfBNUm1 (ORCPT + 99 others); Thu, 14 Feb 2019 15:42:27 -0500 Received: from mga06.intel.com ([134.134.136.31]:37571 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503106AbfBNUmI (ORCPT ); Thu, 14 Feb 2019 15:42:08 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2019 12:42:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,370,1544515200"; d="scan'208";a="143557713" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by fmsmga002.fm.intel.com with ESMTP; 14 Feb 2019 12:42:06 -0800 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: [PATCHv4 5/6] net: stmmac: socfpga: Use shared System Manager driver Date: Thu, 14 Feb 2019 14:44:17 -0600 Message-Id: <1550177058-1860-6-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550177058-1860-1-git-send-email-thor.thayer@linux.intel.com> References: <1550177058-1860-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 --- v2 No change to code. Update commit message. v3 Remove the unused syscon.h header. v4 No change --- 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