[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200630110654.00001d40@Huawei.com>
Date: Tue, 30 Jun 2020 11:06:54 +0100
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: David Gow <davidgow@...gle.com>
CC: Jonathan Cameron <jic23@...nel.org>,
Michael Hennerich <michael.hennerich@...log.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Alexandru Ardelean <alexandru.ardelean@...log.com>,
Brendan Higgins <brendanhiggins@...gle.com>,
<linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] iio: adc: Specify IOMEM dependency for adi-axi-adc
driver
On Tue, 30 Jun 2020 00:05:52 -0700
David Gow <davidgow@...gle.com> wrote:
> The Analog Devices AXI ADC driver uses the devm_ioremap_resource
> function, but does not specify a dependency on IOMEM in Kconfig. This
> causes a build failure on architectures without IOMEM, for example, UML
> (notably with make allyesconfig).
>
> Fix this by making CONFIG_ADI_AXI_ADC depend on CONFIG_IOMEM.
>
> Signed-off-by: David Gow <davidgow@...gle.com>
Hi David,
Could you confirm what the build error is? I thought the stubs added in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1bcbfbfdeb
were meant to allow us to avoid having lots of depends on IOMEM lines for the
few architectures who don't support it.
Jonathan
> ---
> drivers/iio/adc/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index ff3569635ce0..f5009b61b80c 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -263,6 +263,7 @@ config AD9467
>
> config ADI_AXI_ADC
> tristate "Analog Devices Generic AXI ADC IP core driver"
> + depends on IOMEM
> select IIO_BUFFER
> select IIO_BUFFER_HW_CONSUMER
> select IIO_BUFFER_DMAENGINE
Powered by blists - more mailing lists