[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180813.094806.2117966073798365808.davem@davemloft.net>
Date: Mon, 13 Aug 2018 09:48:06 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: joyce.ooi@...el.com
Cc: peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, hean.loong.ong@...el.com,
yves.vandervennet@...el.com
Subject: Re: [PATCH] net: stmmac: Add SMC support for EMAC System Manager
register
From: "Ooi, Joyce" <joyce.ooi@...el.com>
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 <joyce.ooi@...el.com>
> ---
> 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.
Powered by blists - more mailing lists