Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756859AbcCCNHW (ORCPT ); Thu, 3 Mar 2016 08:07:22 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:56075 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbcCCNHR (ORCPT ); Thu, 3 Mar 2016 08:07:17 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , rtc-linux@googlegroups.com, Linus Walleij , Sebastian Reichel , David Brown , Alexandre Belloni , Laurent Pinchart , Krzysztof Kozlowski , Lee Jones , Dan Williams , devel@driverdev.osuosl.org, linux-samsung-soc@vger.kernel.org, Vinod Koul , Daniel Lezcano , Kishon Vijay Abraham I , Andy Gross , linux-media@vger.kernel.org, Jason Cooper , Mauro Carvalho Chehab , Marc Zyngier , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, Giuseppe Cavallaro , Thomas Gleixner , linux-soc@vger.kernel.org, Alessandro Zummo , Greg Kroah-Hartman , linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Eremin-Solenikov , netdev@vger.kernel.org, dmaengine@vger.kernel.org, David Woodhouse Subject: Re: [rtc-linux] Re: [RFC 09/15] media: platform: Add missing MFD_SYSCON dependency on HAS_IOMEM Date: Thu, 03 Mar 2016 14:05:33 +0100 Message-ID: <13054519.5feSCc5dgv@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1456992221-26712-1-git-send-email-k.kozlowski@samsung.com> <2181866.k24LVvUjTs@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:L8sBPsqbkDII7aeUZbPIYOGNBsCQ6ofbyAgV3CQeoOokYW8++Dl HkBa/wlp2OmPDyAJ31wJ8coVxWKD5sDvhHhccELcO3gYVi9DGGo7eMcUJWBXkqJKr8x5HEi Z/6Yco4hlCift1KYqgaMRmL09hKhkbF2ROjaqw/TU3vATXI2qjw2JkU2VgXGT6kcmWMaNeB p6BApqQa3kcX2WcVzw9oA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dwpc1rn5bSs=:4D/Y/E/Yc1lEKmsYPib49u Fj/pNrTx75VQsfOhxOCAf3un33/P/WQpYpvwyGgoPC8t4hOxF0sjlJ6I3e6CXtwdk1r2oNEAj sPJpdsKu+HwZdsBUCfo1JaBmulBPCKrz86+NTg2ikxS4E+wD4ZdExPBkuyEq75DuHZ/M2/Gvv P0t1Iv1BBO2ymFODAq4y5Yzzp/Yf/+Sd7szZ0Iv/WOp+Yg5TMjeeSKWjvflKB8q7x580uJEp3 mCTf9tozN1xrTDsEpYTLeIFK7Q+l48xtcSVm2yIvNqgwUPfl30tThIvigss4jq0IZr9xKmBUT hzCjm0ziYgtLZQ11nClXlaonmBn7hJzQpFaMb58VT3OI42SX/f/E6vH5K0OwwpYvwCsYkTAE9 0WDAzCs3Rtevs44YW9AIxV3iI3ndsbjDKurIHtpEkQL1kq9oOd32hNXe2RnKysVchSye7DZIW 2akc5q2drqAwtGvKF0odXRTSVpr2LGNfbXmxFfgCGylFbGdljqtDZGf8d4Bv+/dRDWvlKr1O+ HzVfkSltKfL9XM/ElS9x97CHEF0bixwb0I9Bz7NkTs0IGyTsxtbVgZ9R1uyt8sZjNH1wRp4hc M7NihVhXstOF2TenCqBHX6Rk37CSQ1TTbBER8SQVJsaLJ0VGFr0pqWWYv6+0vYgzTinZx63Sn LUMqL7q9Cbk5UmYbqmz09BKE2CfA4L4wm9UQhho3xbjd01vBbwivbRcbydlvxIy1x4OLi8hyB RfU52m242nL/8YJZ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1296 Lines: 32 On Thursday 03 March 2016 21:40:23 Krzysztof Kozlowski wrote: > >> select MFD_SYSCON > >> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >> index 57d42c6172c5..c4317b99d257 100644 > >> --- a/drivers/media/platform/exynos4-is/Kconfig > >> +++ b/drivers/media/platform/exynos4-is/Kconfig > >> @@ -17,6 +17,7 @@ config VIDEO_S5P_FIMC > >> tristate "S5P/EXYNOS4 FIMC/CAMIF camera interface driver" > >> depends on I2C > >> depends on HAS_DMA > >> + depends on HAS_IOMEM # For MFD_SYSCON > >> select VIDEOBUF2_DMA_CONTIG > >> select V4L2_MEM2MEM_DEV > > > > This is guarded by HAS_DMA, which implies HAS_IOMEM afaik. > > Looking at Kconfigs - no, it is not implied (or am I missing > something)... and sometimes dependency on HAS_IOMEM is next to > HAS_DMA. > > Ah, you are right: UML has no DMA and no IOMEM, but s390 can have IOMEM (if PCI is enabled) and always sets HAS_DMA. In practice, I think the HAS_DMA symbol is not as well-defined as it should be, it basically refers to the presence of the dma-mapping.h API, and that only really makes sense when you also have IOMEM, so there might be an implied dependency between the two, but it's not enforced or actually true. Arnd