Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3961596imu; Mon, 28 Jan 2019 14:13:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN4sBvnixbtlshd6ildlJmSv8YSClO3whfn8XMNtqun3gzcRR1t6FeR+yBAf8QpMee8lve9P X-Received: by 2002:a17:902:d697:: with SMTP id v23mr12095003ply.261.1548713583581; Mon, 28 Jan 2019 14:13:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548713583; cv=none; d=google.com; s=arc-20160816; b=mgKFb7KqrItV3RzG9oWm261TfiV5CwB672V2h3vgT3LZbLlbrOGIaAtWZyA93A1GAO 8A4/IbJJc23A0uRZ2qX92PoG1tmcDiOJvytht1nogfnShqtkKzzDeLTY7Z8qZ6O06XG4 ZSXC7S19tvE8+UKnm4+EZ6gDxZ4obBs4hKMzYo5SOPOHw1vrguBdXU9+ScGAGchsol+z 6bwDuwqT6bAB/pm1Exw2BY8akUR7WXqdIElT84vIrgE2K5rNbneQIjO4mB98gpQuq9xD HzOCt1RXtcYfcPguBOyt19hxtUIJHTpcmZfZ28SEhIwlZh/w+V+Zckz4o7mYId4Valj4 n0wg== 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=9jphYgc5PyOiK5Kiug9n74T+Jwoi0dKGzMNkEOnWpK0=; b=PZQaQKYJPvxqvmWG5+1wmWchhWoksSVvQRIVv0eX5Aq4Xk7EZ8WDFHYjYtBBaYUa8T o7tfemMIsNLSn95hzGO4ySEyvtDxrmCJ4MVOsIM/pEiLl34nWw9VuvPCSFct5aRgUAsk PfTgE3eKEdAnWnAQv7gVw1pKOGRrRLNjXXCKzWpVhLOu08Ow3sXsGtZON/o3ORv2Jjii IqybSKo0ovYWkUyxUW4UZtJz+wgBbFjEn+/Lw5h6548lZfLaxV4CTVr6S5opmDTL+rL1 84Y8dLpz+dgPtuhfgITQWVruhG4Gt88rAfoULsmMaozpMmtiRxTuifTrkYi+kkS7lOFC lWUg== 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 y15si12975902pgf.321.2019.01.28.14.12.47; Mon, 28 Jan 2019 14:13:03 -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 S1728549AbfA1WMY (ORCPT + 99 others); Mon, 28 Jan 2019 17:12:24 -0500 Received: from mga17.intel.com ([192.55.52.151]:37504 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbfA1WMJ (ORCPT ); Mon, 28 Jan 2019 17:12:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2019 14:12:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,534,1539673200"; d="scan'208";a="111810524" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga006.jf.intel.com with ESMTP; 28 Jan 2019 14:12:07 -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 Cc: davem@davemloft.net, mcoquelin.stm32@gmail.com, mchehab+samsung@kernel.org, mark.rutland@arm.com, bjorn.andersson@linaro.org, olof@lixom.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Thor Thayer Subject: [PATCHv3 5/6] net: stmmac: socfpga: Use shared System Manager driver Date: Mon, 28 Jan 2019 16:14:14 -0600 Message-Id: <1548713655-25940-6-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548713655-25940-1-git-send-email-thor.thayer@linux.intel.com> References: <1548713655-25940-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. --- 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