From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: stmmac: Add SMC support for EMAC System Manager register Date: Mon, 13 Aug 2018 09:48:06 -0700 (PDT) Message-ID: <20180813.094806.2117966073798365808.davem@davemloft.net> References: <1534142494-11541-1-git-send-email-joyce.ooi@intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 To: joyce.ooi@intel.com Return-path: In-Reply-To: <1534142494-11541-1-git-send-email-joyce.ooi@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.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.