Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2719098rdb; Tue, 12 Sep 2023 10:00:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmbSGC/akvWlheC/tdYNWK5D01sGKlK/sAOesuJuTEhS1sTAuN3NfJvXxa500LpkwKZo9F X-Received: by 2002:a05:6a20:e113:b0:13d:ac08:6b79 with SMTP id kr19-20020a056a20e11300b0013dac086b79mr14253789pzb.60.1694538020407; Tue, 12 Sep 2023 10:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694538020; cv=none; d=google.com; s=arc-20160816; b=kr+66b4Q4FrklR0RDqlkIfNUsvfCTRVH5J2uHu++Qk/zxSA6A82j6Mobe923jJrJlG yWQg/QhHQNbTW+5/rDSJHaJ24Rkt1uWFBT2INvwo/Yll8FehUNtzAmq18jnrsAfbcXB1 sJnyKv8MnjqangSnXRwVUoIIrHK1JhfBfxXXz+yMGWk59a8jQejYPyLt/54eEOQgzzn4 EnbypOmiWHk/XFp01+ELaQdueM9nhf8KotLNzl63dMUarpsBj6Vq1FYZxUiSVxStzddR LrlVwmH1+k4nEWrkfHYXNLb57KQUFFIOOzhq4t+p951weSjCf0um3pxa+u9XoVuJ/QH0 ab+w== 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=wNYRZ85znrcx67DDFbe+NPKlCS4pJ4NpP+IT4bURNrQ=; fh=ltHL6+wlnduuW+H1f1rES5Zgy6OMz/v/9s5XoZ5bzAA=; b=YlpiYKLuuDfs9Kqi+LxrFW38/k4IiuhnRowW89dpuPicCv5BJPVDQn8JnAlFMRcChI OmZBIoIj39tZySuNPScV4LyL88ZeftG5frQb9UVTZuBZ7Fel8J/FsCRS9CDQeY2fUe1O lJjNW731CNNjA0zJymsvI5gCcUieG7S1I/635Zy7c29EPQyuy5NPOgyjRP2vNtqSDGNn uG2hzLP30PMzchuB5Xk01QZajxfeddh1grUAWnwf4Q4v/H1WcBEvmva5cBb86VcMpQZ6 ZspEAUjWtazDy2ukWojzktZ3V8PMzPhwtf1a049hWz7KOgcBWu7Qug5J8zkNpA/Qx74c 5+0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cFGN96Zp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b26-20020a6567da000000b00563e6387a54si8293934pgs.258.2023.09.12.10.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 10:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cFGN96Zp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C176680FCC93; Tue, 12 Sep 2023 08:59:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236487AbjILP7t (ORCPT + 99 others); Tue, 12 Sep 2023 11:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbjILP7s (ORCPT ); Tue, 12 Sep 2023 11:59:48 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6050E10DE; Tue, 12 Sep 2023 08:59:44 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7640C512; Tue, 12 Sep 2023 17:58:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1694534290; bh=xfhmlz5ckdLY0YdTm7FkPxuK4u/istlO5fGdwX4PDec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cFGN96ZpPXODQ1neJ4wrzI5s+h4ebba0YsgFpvlsgdmX1lc6MmDs0OtHtU78+ixek g9Xqbz8+vnK1hg3zqO3VYPQFFFoRgjdooTecIl539xF5F4RMepYkF5iAd6LjRZI0SQ B464Yn4rE0Bz7l32yroHPXWeK9kSXQKxSHQXtr7o= Date: Tue, 12 Sep 2023 18:59:56 +0300 From: Laurent Pinchart To: Sakari Ailus 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: <20230912155956.GC30767@pendragon.ideasonboard.com> References: <20230912120159.4118842-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:59:56 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 fry.vger.email 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 ? -- Regards, Laurent Pinchart