Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5540059imu; Tue, 13 Nov 2018 08:05:17 -0800 (PST) X-Google-Smtp-Source: AJdET5djmPdhDEXVCJxElPWAGJu0dm7rRQcUfhuV1JNTbeJGYhO6pHmveUjgGbSfbFPws4dx19Tk X-Received: by 2002:aa7:8498:: with SMTP id u24-v6mr5716876pfn.220.1542125117898; Tue, 13 Nov 2018 08:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542125117; cv=none; d=google.com; s=arc-20160816; b=FThJWpUoO9fEHRGDsuXCCrQInezXAjYkajs0Gqdch4U1mPL3S76LtjIw8DjRk9kNRE 44h8dbyPCkAr1ETeQTw6bmsFMg40SR3JR1HeUsU1oYz6ASJOLX2BpbXpw3ZZh1F/j3+F oei/N2v2XtSgHHgEvnPAhIrhKIAyEZTDmPcNTF0wVHy5XHZITh6BZx9iW2Josc8QWBZh AfkAoUiAfonWLfkEJ0k8UpDNLQJ3UByN2uUCZsKHaKF8pjSY/wtpTzCkl8HqsaafaS4r zHaYsozwFtJQGbu6dEnvUdVmWTyOQW1PuL++r/i8xg2dxaPSM0Q0rFDqIvF5n27DooEv l1mg== 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=VtFgeK3xC+f+Q0lVcRmmTZmldDU2W9dHXoct+R/o8v9gRjOAqmM3/tzzP358GEGgTf 9VYGEQGcQjny79NOtSQFKKOBqcApXQDO9fRvWKhsteBBj5PF0r+EMv81z83F6aV275nY ZMmrj/y+l3el0bQAeVxpJ+wB2vc+HVz6PSOKkFuW5azlWPmpInvxOAf0EOZHc+tBTzT7 MZQLC5NuoZqTtWFfdbW2903VQXs/28++Yg6EbKAXPI69VnwTj3IjzLgoKTt59+rFKoSU lVvc38MSrhvWBGbfViLG91EFt5EHjQg+6c9vbw+wBTaSIaAyKCXVIG6ss4SzsCAUXiZ2 7yJA== 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 v4-v6si20602276plp.247.2018.11.13.08.04.50; Tue, 13 Nov 2018 08:05:17 -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 S2388209AbeKNCCw (ORCPT + 99 others); Tue, 13 Nov 2018 21:02:52 -0500 Received: from mga01.intel.com ([192.55.52.88]:43530 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388159AbeKNCCv (ORCPT ); Tue, 13 Nov 2018 21:02:51 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 08:03:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,499,1534834800"; d="scan'208";a="280745444" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by fmsmga006.fm.intel.com with ESMTP; 13 Nov 2018 08:03:57 -0800 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, 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, arnd@arndb.de, bjorn.andersson@linaro.org, olof@lixom.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Thor Thayer Subject: [RESEND 4/4] net: stmmac: socfpga: Convert to shared System Manager driver Date: Tue, 13 Nov 2018 10:06:14 -0600 Message-Id: <1542125174-8204-5-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542125174-8204-1-git-send-email-thor.thayer@linux.intel.com> References: <1542125174-8204-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