Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3394359imm; Mon, 13 Aug 2018 10:54:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyutbj2uKWWvyqWJW4dpHc4LW67xy5W6Ujp7pod3fBJ0hQ4oSVWsisHzczYHoDdsmWe13bw X-Received: by 2002:a62:8913:: with SMTP id v19-v6mr20160718pfd.127.1534182843674; Mon, 13 Aug 2018 10:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534182843; cv=none; d=google.com; s=arc-20160816; b=Y6cO1AIU47TQHG9/HD62Ao9kTR2n+bZLS28CcWM3zv82JEIPnfjP0qT2ZvpxQeD+yi mvaclTYzi0wlZH/5rMHX4MtwaxfWZVh+p5JIH1ugjG6wT9cXPOg8827cNw7HdiJT1kR7 zFIfujUyMspJTNT38lOkCnvVaXhsH5OUtdPz71Bigy443qdDB2k833AYkvuAhW1V91bT muoGWF/IppVvYjJjSjWfRod1XX4f5vuhSIo2utKSf4R8/bWVE/CB0/onvmGVJckuUSRE Fhvv69Tp3LYHX8qB4CdVl6lzPlJxmaBK05ydCiDwqP8xIOuKdSpsaycp/IRCQrMTA3aJ dXyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=GR1lXWJm5BOJVQXemTGGH8npKuHkQP1dU5zHgM8MwAs=; b=Swp1NlzzBF3ZRURjLK9ffZ3Wc6xgq6yzB7cFngQHYHryHIizpdP6nOye6J5DeG3faH 9HwqGlAr/yEhkl136eEqGR5myPhM8oh6GVHp1hdOgW7eAdQCfohPfNkF7nnDopy9640b cyybNxmyPOjs6uMYBq/qMC78NxBCuMzolkHxPGSw/iGsGaz0GkGZqImtkHJwgMrrNF5r 0Omr92bd2AO/p10xTqD0we/HBVlsNgbHSiveMBxd5ZVDNyz1xhAr/BRiZllyRQP2Tnb2 HWbn2vbURBMBySKI9HAsJitFvk5bPlq7JuvYTSKBaPxs5FRLwwWz0iA2cKrzcEAPGfRH L2IA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9-v6si16576098pff.370.2018.08.13.10.53.36; Mon, 13 Aug 2018 10:54:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730226AbeHMTbH (ORCPT + 99 others); Mon, 13 Aug 2018 15:31:07 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:54318 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbeHMTbH (ORCPT ); Mon, 13 Aug 2018 15:31:07 -0400 Received: from localhost (c-24-20-22-31.hsd1.or.comcast.net [24.20.22.31]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id BD94A145A9B36; Mon, 13 Aug 2018 09:48:06 -0700 (PDT) Date: Mon, 13 Aug 2018 09:48:06 -0700 (PDT) Message-Id: <20180813.094806.2117966073798365808.davem@davemloft.net> To: joyce.ooi@intel.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hean.loong.ong@intel.com, yves.vandervennet@intel.com Subject: Re: [PATCH] net: stmmac: Add SMC support for EMAC System Manager register From: David Miller In-Reply-To: <1534142494-11541-1-git-send-email-joyce.ooi@intel.com> References: <1534142494-11541-1-git-send-email-joyce.ooi@intel.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 13 Aug 2018 09:48:07 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Ooi, Joyce" Date: Sun, 12 Aug 2018 23:41:34 -0700 > As there is restriction to access to EMAC System Manager registers in > the kernel for Intel Stratix10, the use of SMC calls are required and > added in dwmac-socfpga driver. > > Signed-off-by: Ooi, Joyce > --- > This patch is dependent on https://lkml.org/lkml/2018/7/26/624 I guess I cannot apply this to my networking tree then. I would suggest that you make a helper in a header file which dos the special SMC EMAC accesses, or alternatively the regular regmap access, based upon the CPP ifdef. That way you won't have to put all of those CPP tests in the foo.c code. Thanks.