[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140506144242.1b098f30@skate>
Date: Tue, 6 May 2014 14:42:42 +0200
From: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: linux-arm-kernel@...ts.infradead.org,
Lior Amsalem <alior@...vell.com>, Andrew Lunn <andrew@...n.ch>,
linux-usb@...r.kernel.org, Jason Cooper <jason@...edaemon.net>,
Mathias Nyman <mathias.nyman@...el.com>,
devicetree@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
linux-kernel@...r.kernel.org, Felipe Balbi <balbi@...com>,
Nadav Haklai <nadavh@...vell.com>,
Gregory CLEMENT <gregory.clement@...e-electrons.com>,
Rob Herring <robh+dt@...nel.org>,
Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>,
Grant Likely <grant.likely@...aro.org>,
Tawfik Bayouk <tawfik@...vell.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
Subject: Re: [PATCH v3 06/20] usb: host: xhci-plat: Add support for the
Armada 38x
Dear Arnd Bergmann,
On Tue, 06 May 2014 14:21:55 +0200, Arnd Bergmann wrote:
> > That's not what we do for any of the other drivers that use the
> > MVEBU_MBUS functions.
>
> Fair enough. I guess using ARCH_MVEBU as the dependency works as well
> because it implies MVEBU_MBUS. However, you can't use COMPILE_TEST
> then because the driver itself needs the interfaces provided by MBUS.
>
> It could be
>
> depends on ARCH_MVEBU || (MVEBU_MBUS && COMPILE_TEST)
>
> to describe the dependency most accurately.
Right, that would work indeed, but is in fact not necessary, at least
for this driver. The only mbus function used by this driver is
mv_mbus_dram_info(), and <linux/mbus.h> provides an empty stub for this
function (returning NULL) when MVEBU_MBUS is disabled. So from a
compile time point of view, there is no problem with compiling the
xhci-plat driver with MVEBU_MBUS disabled, so in fact:
depends on ARCH_MVEBU || COMPILE_TEST
will work just fine.
The only case where this doesn't work is for drivers that use the other
mbus functions to create/remove windows, because no stubs are provided
for these ones. However, as things are today, the only driver in this
situation is the pci-mvebu driver, and its dependency is:
depends on ARCH_MVEBU || ARCH_DOVE || ARCH_KIRKWOOD
For this one, we could indeed add || (MVEBU_MBUS && COMPILE_TEST)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists