Message ID | 1481607848-24053-1-git-send-email-hofrat@osadl.org (mailing list archive) |
---|---|
State | Rejected, archived |
Delegated to: | Sylwester Nawrocki |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from <linux-media-owner@vger.kernel.org>) id 1cGfrW-00053u-VJ; Tue, 13 Dec 2016 05:42:50 +0000 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.84_2/mailfrontend-8) with esmtp id 1cGfrU-0003Hp-lo; Tue, 13 Dec 2016 06:42:50 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbcLMFma (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Tue, 13 Dec 2016 00:42:30 -0500 Received: from www.osadl.org ([62.245.132.105]:48036 "EHLO www.osadl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752017AbcLMFm3 (ORCPT <rfc822;linux-media@vger.kernel.org>); Tue, 13 Dec 2016 00:42:29 -0500 Received: from debian01.hofrr.at (92-243-34-74.adsl.nanet.at [92.243.34.74] (may be forged)) by www.osadl.org (8.13.8/8.13.8/OSADL-2007092901) with ESMTP id uBD5gFFZ028363; Tue, 13 Dec 2016 06:42:15 +0100 From: Nicholas Mc Guire <hofrat@osadl.org> To: Kyungmin Park <kyungmin.park@samsung.com> Cc: HeungJun Kim <riverful.kim@samsung.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire <hofrat@osadl.org> Subject: [PATCH RFC] [media] m5mols: add missing dependency on VIDEO_IR_I2C Date: Tue, 13 Dec 2016 06:44:08 +0100 Message-Id: <1481607848-24053-1-git-send-email-hofrat@osadl.org> X-Mailer: git-send-email 2.1.4 X-Spam-Status: No, score=-0.9 required=6.0 tests=BAYES_00, KHOP_SC_TOP_CIDR8, RDNS_DYNAMIC autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on www.osadl.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.12.13.53917 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1600_1699 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, FROM_NAME_PHRASE 0, LEGITIMATE_NEGATE 0, LEGITIMATE_SIGNS 0, MULTIPLE_REAL_RCPTS 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FROM_DOMAIN_IN_ANY_CC2 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_RCPTS_CC_X2 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, __TO_REAL_NAMES 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0' |
Commit Message
Nicholas Mc Guire
Dec. 13, 2016, 5:44 a.m. UTC
The Depends on: tag in Kconfig for CONFIG_VIDEO_M5MOLS does not list
VIDEO_IR_I2C so Kconfig displays the dependencies needed so the M-5MOLS
driver can not be found.
Fixes: commit cb7a01ac324b ("[media] move i2c files into drivers/media/i2c")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---
searching for VIDEO_M5MOLS in menuconfig currently shows the following
dependencies
Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=m] && \
VIDEO_V4L2_SUBDEV_API [=y] && MEDIA_CAMERA_SUPPORT [=y]
but as the default settings include MEDIA_SUBDRV_AUTOSELECT=y the
"I2C module for IR" submenu (CONFIG_VIDEO_IR_I2C) is not displayed
adding the VIDEO_IR_I2C to the dependency list makes this clear
Q: should a patch like this carry a Fixes: tag ?
Patch was tested against: x86_64_defconfig
Patch is against 4.9.0 (localversion-next is next-20161212)
drivers/media/i2c/m5mols/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 12/13/2016 06:44 AM, Nicholas Mc Guire wrote: > The Depends on: tag in Kconfig for CONFIG_VIDEO_M5MOLS does not list > VIDEO_IR_I2C so Kconfig displays the dependencies needed so the M-5MOLS > driver can not be found. > > Fixes: commit cb7a01ac324b ("[media] move i2c files into drivers/media/i2c") > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> > --- > > searching for VIDEO_M5MOLS in menuconfig currently shows the following > dependencies > Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=m] && \ > VIDEO_V4L2_SUBDEV_API [=y] && MEDIA_CAMERA_SUPPORT [=y] > but as the default settings include MEDIA_SUBDRV_AUTOSELECT=y the > "I2C module for IR" submenu (CONFIG_VIDEO_IR_I2C) is not displayed > adding the VIDEO_IR_I2C to the dependency list makes this clear > drivers/media/i2c/m5mols/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/m5mols/Kconfig b/drivers/media/i2c/m5mols/Kconfig > index dc8c250..6847a1b 100644 > --- a/drivers/media/i2c/m5mols/Kconfig > +++ b/drivers/media/i2c/m5mols/Kconfig > @@ -1,6 +1,6 @@ > config VIDEO_M5MOLS > tristate "Fujitsu M-5MOLS 8MP sensor support" > - depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > + depends on I2C && VIDEO_IR_I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API There should be no need to enable the "I2C module for IR" to use m5mols driver, so the bug fix needs to be somewhere else.
On Wed, Mar 29, 2017 at 11:56:08AM +0200, Sylwester Nawrocki wrote: > On 12/13/2016 06:44 AM, Nicholas Mc Guire wrote: > >The Depends on: tag in Kconfig for CONFIG_VIDEO_M5MOLS does not list > >VIDEO_IR_I2C so Kconfig displays the dependencies needed so the M-5MOLS > >driver can not be found. > > > >Fixes: commit cb7a01ac324b ("[media] move i2c files into drivers/media/i2c") > >Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> > >--- > > > >searching for VIDEO_M5MOLS in menuconfig currently shows the following > >dependencies > > Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=m] && \ > > VIDEO_V4L2_SUBDEV_API [=y] && MEDIA_CAMERA_SUPPORT [=y] > >but as the default settings include MEDIA_SUBDRV_AUTOSELECT=y the > >"I2C module for IR" submenu (CONFIG_VIDEO_IR_I2C) is not displayed > >adding the VIDEO_IR_I2C to the dependency list makes this clear > > > drivers/media/i2c/m5mols/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > >diff --git a/drivers/media/i2c/m5mols/Kconfig b/drivers/media/i2c/m5mols/Kconfig > >index dc8c250..6847a1b 100644 > >--- a/drivers/media/i2c/m5mols/Kconfig > >+++ b/drivers/media/i2c/m5mols/Kconfig > >@@ -1,6 +1,6 @@ > > config VIDEO_M5MOLS > > tristate "Fujitsu M-5MOLS 8MP sensor support" > >- depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > >+ depends on I2C && VIDEO_IR_I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > > There should be no need to enable the "I2C module for IR" to use m5mols > driver, so the bug fix needs to be somewhere else. > yup - my bad - not clear how I came to that conclusion, guess it was due to the indirection of VIDEO_M5MOLS needing !CONFIG_MEDIA_SUBDRV_AUTOSELECT Step-by-step its: 0) x86_64_defconfig Depends on: MEDIA_SUPPORT [=n] && I2C [=y] && VIDEO_V4L2 [=n] && VIDEO_V4L2_SUBDEV_API [=n] && MEDIA_CAMERA_SUPPORT [=n] 1) <M> Multimedia support ---> Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=n] && VIDEO_V4L2_SUBDEV_API [=n] && MEDIA_CAMERA_SUPPORT [=n] 2) [*] Cameras/video grabbers support Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=m] && VIDEO_V4L2_SUBDEV_API [=n] && MEDIA_CAMERA_SUPPORT [=y] 3) [*] Media Controller API (NEW) [*] V4L2 sub-device userspace API (NEW) Depends on: MEDIA_SUPPORT [=m] && I2C [=y] && VIDEO_V4L2 [=m] && VIDEO_V4L2_SUBDEV_API [=y] && MEDIA_CAMERA_SUPPORT [=y] So now all listed dependencies are satisfied but the M-5MOLS drive is not visible du to default CONFIG_MEDIA_SUBDRV_AUTOSELECT=y Not sure how I ended up with the VIDEO_IR_I2C dependency - which as you state - is wrong. though VIDEO_M5MOLS probably needs a !CONFIG_MEDIA_SUBDRV_AUTOSELECT in the dependency list though. thx! hofrat
diff --git a/drivers/media/i2c/m5mols/Kconfig b/drivers/media/i2c/m5mols/Kconfig index dc8c250..6847a1b 100644 --- a/drivers/media/i2c/m5mols/Kconfig +++ b/drivers/media/i2c/m5mols/Kconfig @@ -1,6 +1,6 @@ config VIDEO_M5MOLS tristate "Fujitsu M-5MOLS 8MP sensor support" - depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API + depends on I2C && VIDEO_IR_I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on MEDIA_CAMERA_SUPPORT ---help--- This driver supports Fujitsu M-5MOLS camera sensor with ISP