Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3280752rdb; Wed, 13 Sep 2023 07:35:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVeOx/jInfXhf0tgE/v9Vh6GpSyp/MTPIPtgo4I9bS9RPbOtYlLeEWIl+RvTBLtfEnKbEM X-Received: by 2002:a05:6a21:18f:b0:152:4615:cb9e with SMTP id le15-20020a056a21018f00b001524615cb9emr3932310pzb.13.1694615730497; Wed, 13 Sep 2023 07:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694615730; cv=none; d=google.com; s=arc-20160816; b=wRduiTSOfSs9z584toq9+IuDbarsKjaCoV5M/bzzG7fVZbA7IOjELeRX5jsJUQYdvH 8PShzfBrBmUJb7kDLKvtESWO0Vf8+U57cwdCFSO4eHj6IA8uK0X1gC31wva8Jmn4PjXy ctYYnnJnBQ2rzAfBDDwveveHrmfkaq55VEPz5+5nBUYz57EwJHDpgn/uB2aOzKxz6/7D xXMVihjHQH+ms3yIkcsKEHH8T2o4ZJQpe+S0tHnzIyMFOy3phEbOFGBVCutjQwIaYnJa RrmJgrzuolnSeL84/xOhMh/Cexk5VhMUmM4HfRJvz8B3HjtMDSxa5bN4pP7UKApp0Xj1 KgpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7ISiF+4dwAQJY3W5Fym9uJA8zfykhLT6XQM20zqa00c=; fh=cVDSwQvj32sRe9Ezt3fstBCJbVpJAXZTQusS74jCz18=; b=opXd5JvYfgDx7IGPwnVpGBpOfR3TrTYS8d4PyRbTUs7D2RtNJiiDTjM75Nxr9+Wc3r VD9G6GZ82npr6eXg6noSbvQRKOmhboultVj+nvGpfiZ9bJf9LEdWAPY5YB6/VOETD1oS GWYlk7HWthGzMjtpgCV3LWzNbhikA03QhxZbC4dUX0SwTs4uEJpPjnm1TCWBYRNcAgrS rJ2hBR/sojg//m3D/Ho38lqQQeej+ZglUJoxfWDHa/b2Vxb0Ah12UTamt0aKZajXhYRO vguHjE/uJ0KNb9dQJc1YEY8Vs/t7HLRE6JDIn2/k5n+/rT2EO9vpoGcdZWcu9xPe3cGs ymeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X6Ks3DG5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q22-20020a637516000000b005774452aa40si2065796pgc.269.2023.09.13.07.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X6Ks3DG5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 252E681F3394; Wed, 13 Sep 2023 04:24:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239997AbjIMLXo (ORCPT + 99 others); Wed, 13 Sep 2023 07:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236689AbjIMLXn (ORCPT ); Wed, 13 Sep 2023 07:23:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8874F1BF1; Wed, 13 Sep 2023 04:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694604219; x=1726140219; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qB+psZAiJV5s+cle8h9zCVh4A1p3LGypwTsSrk1Fzb8=; b=X6Ks3DG5oFDWLIjq2RbKw2KzzTVwCIehKkneO/T/Rs9470sLNe0RNy+5 Cg8p3SSdPW8jK/4O6Pcnf54qnfk5AcgD6bH1O/vE8Exn17q62zKqT/Lfq hZmzDEHIWeRBzR8XAv4+pK//UB2/fVlpgTUpCelIC10uOuV7hKE1tQq3u rTMG+JknSeaGKB/MXFfy27zRlM0v30IswsRKFDDWUotrUdRAeosBWTAgq YLcg6szyHjxsko+CwNjIULXreDni+A0bVyj6HeRsAv9DzgyN0Gyt0jfNS coaLGRZNPGbZAgUOSo7dM5SWU+XTrro7GugR+9IIZmPSuS0IFev3c2Pna Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="409582040" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="409582040" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 04:23:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="773427816" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="773427816" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 04:23:20 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 8098911F831; Wed, 13 Sep 2023 14:23:11 +0300 (EEST) Date: Wed, 13 Sep 2023 11:23:11 +0000 From: Sakari Ailus To: Laurent Pinchart Cc: Arnd Bergmann , Mauro Carvalho Chehab , Hans Verkuil , Hans de Goede , Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: fix VIDEO_CAMERA_SENSOR dependencies Message-ID: References: <20230912120159.4118842-1-arnd@kernel.org> <20230912155956.GC30767@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912155956.GC30767@pendragon.ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 04:24:00 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Hi Laurent, On Tue, Sep 12, 2023 at 06:59:56PM +0300, Laurent Pinchart wrote: > On Tue, Sep 12, 2023 at 12:16:03PM +0000, Sakari Ailus wrote: > > Hi Arnd, > > > > On Tue, Sep 12, 2023 at 02:01:42PM +0200, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > The new Kconfig submenu now guards the visibility of camera sensor drivers, > > > and any driver that selects one of them runs into a missing dependency warning > > > if it's disabled: > > > > > > WARNING: unmet direct dependencies detected for VIDEO_OV2640 > > > Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=y] && VIDEO_CAMERA_SENSOR [=n] > > > Selected by [y]: > > > - VIDEO_EM28XX_V4L2 [=y] && USB [=y] && MEDIA_SUPPORT [=y] && MEDIA_USB_SUPPORT [=y] && (MEDIA_CAMERA_SUPPORT [=y] || MEDIA_ANALOG_TV_SUPPORT [=y] || MEDIA_DIGITAL_TV_SUPPORT [=y]) && VIDEO_EM28XX [=y] && MEDIA_SUBDRV_AUTOSELECT [=y] && MEDIA_CAMERA_SUPPORT [=y] > > > - VIDEO_GO7007 [=y] && MEDIA_SUPPORT [=y] && MEDIA_USB_SUPPORT [=y] && MEDIA_ANALOG_TV_SUPPORT [=y] && VIDEO_DEV [=y] && I2C [=y] && SND [=y] && USB [=y] && MEDIA_SUBDRV_AUTOSELECT [=y] && MEDIA_CAMERA_SUPPORT [=y] > > > > > > WARNING: unmet direct dependencies detected for VIDEO_MT9V011 > > > Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=y] && VIDEO_CAMERA_SENSOR [=n] > > > Selected by [y]: > > > - VIDEO_EM28XX_V4L2 [=y] && USB [=y] && MEDIA_SUPPORT [=y] && MEDIA_USB_SUPPORT [=y] && (MEDIA_CAMERA_SUPPORT [=y] || MEDIA_ANALOG_TV_SUPPORT [=y] || MEDIA_DIGITAL_TV_SUPPORT [=y]) && VIDEO_EM28XX [=y] && MEDIA_SUBDRV_AUTOSELECT [=y] && MEDIA_CAMERA_SUPPORT [=y] > > > > > > WARNING: unmet direct dependencies detected for VIDEO_OV7670 > > > Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=y] && VIDEO_CAMERA_SENSOR [=n] > > > Selected by [y]: > > > - VIDEO_CAFE_CCIC [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_PLATFORM_DRIVERS [=y] && PCI [=y] && I2C [=y] && VIDEO_DEV [=y] && COMMON_CLK [=y] > > > - VIDEO_MMP_CAMERA [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_PLATFORM_DRIVERS [=y] && I2C [=y] && VIDEO_DEV [=y] && (ARCH_MMP [=y] || COMPILE_TEST [=y]) && COMMON_CLK [=y] > > > - VIDEO_VIA_CAMERA [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_PLATFORM_DRIVERS [=y] && FB_VIA [=y] && VIDEO_DEV [=y] > > > > > > Some of these are guarded by 'if MEDIA_SUBDRV_AUTOSELECT && > > > MEDIA_CAMERA_SUPPORT', which seems to be the right approach, so update > > > those to use the new VIDEO_CAMERA_SENSOR symbol instead of > > > MEDIA_CAMERA_SUPPORT and add the same condition to the ones that > > > don't already have one. > > > > > > Fixes: 7d3c7d2a2914e ("media: i2c: Add a camera sensor top level menu") > > > Signed-off-by: Arnd Bergmann > > > > I believe these matters have been fixed, but the fixes are only in the > > media stage tree so far (and not in the fixes branch). They should go to > > v6.6, not v6.7. > > That would be commits f59933e8b1d1 ("media: via: Use correct dependency > for camera sensor drivers") and 8ba283f6c929 ("media: v4l: Use correct > dependency for camera sensor drivers"). The latter is identical to the > corresponding changes in this patch, but the former lacks the > MEDIA_SUBDRV_AUTOSELECT check. Is this intentional ? This is a bit grey area. The via parallel receiver driver has been apparently used with a single camera, the ov7670. It's a very old driver so I don't necessarily expect this to change. Changing this either way would have fixed the core issue. Ideally there should be no connection between the via parallel receiver driver and any sensor driver. -- Regards, Sakari Ailus