From: Gregory CLEMENT <gregory.clement@free-electrons.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, mw@semihalf.com,
arnd@arndb.de, Shaohui.Xie@freescale.com, andrew@lunn.ch
Subject: Re: [PATCH net-next v4 3/5] bus: mvebu-bus: Provide inline stub for mvebu_mbus_get_dram_win_info
Date: Fri, 18 Nov 2016 09:32:13 +0100 [thread overview]
Message-ID: <87k2c1b33m.fsf@free-electrons.com> (raw)
In-Reply-To: <20161117191914.11077-4-f.fainelli@gmail.com> (Florian Fainelli's message of "Thu, 17 Nov 2016 11:19:12 -0800")
Hi Florian,
On jeu., nov. 17 2016, Florian Fainelli <f.fainelli@gmail.com> wrote:
> In preparation for allowing CONFIG_MVNETA_BM to build with COMPILE_TEST,
> provide an inline stub for mvebu_mbus_get_dram_win_info().
Actually the set of SoCs supporting mbus is more reduce than MVEBU. You
can have a look on 434cec62a6d7 ("bus: mvebu-mbus: Provide stub function
for mvebu_mbus_get_io_win_info()"), PLAT_ORION seems the good option.
Thanks,
Gregory
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> include/linux/mbus.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/linux/mbus.h b/include/linux/mbus.h
> index 2931aa43dab1..0d3f14fd2621 100644
> --- a/include/linux/mbus.h
> +++ b/include/linux/mbus.h
> @@ -82,6 +82,7 @@ static inline int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size,
> }
> #endif
>
> +#ifdef CONFIG_MVEBU_MBUS
> int mvebu_mbus_save_cpu_target(u32 __iomem *store_addr);
> void mvebu_mbus_get_pcie_mem_aperture(struct resource *res);
> void mvebu_mbus_get_pcie_io_aperture(struct resource *res);
> @@ -97,5 +98,12 @@ int mvebu_mbus_init(const char *soc, phys_addr_t mbus_phys_base,
> size_t mbus_size, phys_addr_t sdram_phys_base,
> size_t sdram_size);
> int mvebu_mbus_dt_init(bool is_coherent);
> +#else
> +static inline int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target,
> + u8 *attr)
> +{
> + return -EINVAL;
> +}
> +#endif /* CONFIG_MVEBU_MBUS */
>
> #endif /* __LINUX_MBUS_H */
> --
> 2.9.3
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2016-11-18 8:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 19:19 [PATCH net-next v4 0/5] net: Enable COMPILE_TEST for Marvell & Freescale drivers Florian Fainelli
2016-11-17 19:19 ` [PATCH net-next v4 1/5] net: gianfar_ptp: Rename FS bit to FIPERST Florian Fainelli
2016-11-17 19:19 ` [PATCH net-next v4 2/5] net: fsl: Allow most drivers to be built with COMPILE_TEST Florian Fainelli
2016-11-17 19:19 ` [PATCH net-next v4 3/5] bus: mvebu-bus: Provide inline stub for mvebu_mbus_get_dram_win_info Florian Fainelli
2016-11-18 8:32 ` Gregory CLEMENT [this message]
2016-11-17 19:19 ` [PATCH net-next v4 4/5] net: marvell: Allow drivers to be built with COMPILE_TEST Florian Fainelli
2016-11-17 19:19 ` [PATCH net-next v4 5/5] net: dsa: mv88e6xxx: Select IRQ_DOMAIN Florian Fainelli
2016-11-18 18:54 ` [PATCH net-next v4 0/5] net: Enable COMPILE_TEST for Marvell & Freescale drivers David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2c1b33m.fsf@free-electrons.com \
--to=gregory.clement@free-electrons.com \
--cc=Shaohui.Xie@freescale.com \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=mw@semihalf.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.