Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1193532rdh; Fri, 27 Oct 2023 07:18:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeICFgAQcHvHhjYk4oHFUVwA1ejWN6CtlmzaV2Dlye5PjhBffZp2QLtFBJI12691egTgit X-Received: by 2002:a67:e013:0:b0:452:8423:e952 with SMTP id c19-20020a67e013000000b004528423e952mr1928152vsl.5.1698416293861; Fri, 27 Oct 2023 07:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698416293; cv=none; d=google.com; s=arc-20160816; b=WhKdPZF8JyOj5W5bcvtKN0uZNjJkL3VOa9bwUV0JHtNSKVvoqlcHD3X/hFY17YSyX8 w0oyNxE3Z0Ea/CZL4qY11t4ad3w7bWpASn19dJxS2fsUhwgYCjs26bL37/XcFjGx+33z 6M060/qSytbz76ViYI6Kmx3z1d+ANx9NLPednxAvIHh3OQGwsRSF4WmDBcNyM66ow+r+ ZttzAuY+3r7u78a+TgI7TaLjunFvBhh3DZKNU36bgEpZKhJG9yCikSYELQop09sSPkz7 gaNbF8v+2OzLbLaX0lDSjZ/BNmRGIDkbgsjd6PIaH0imyYyMPe4rrKCGsLIJ1OL7nPbq e11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=WfebNSSwOUEl1X9XI1lw7LYOuGDM44cmZdJpVcXtioE=; fh=xwWSYhTG+D3XwRr2+nMV4R87G2R8eqCJHT2RoiC9G1s=; b=ojbDIs+gp3T8zg12vjmZjG1iiJ3q98VRAPiElJsGkeFd2xbhbonQ9NrZypLInyJIeq InY5U96B1idcdejogKqHRzRHV/uQHwx+IGLF6ndPa+eddmM2Jd9If5dQb0um5O4z+SxY 8yhbzwKLesyCpMINohp1Syw99oZQKO1a7VwYMWkdPScaHS3fu4zNXgzdmGe0clr87+Sg XFJj1rlY+RSUQ2uWlSmFAwOXBbyEsAgxx+F6VDbYRvAINxX2DvvlbQLdqOvstKYxmWH4 bMkUy4mRGCOMbRkOz7reMrG5ff3KvLIa4zzP2LPbG8z3xELab20sRKqd3kDvi92oCezs NF2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id dc35-20020a05610255a300b0045781fd9f0asi272502vsb.467.2023.10.27.07.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:18:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id D1922822E562; Fri, 27 Oct 2023 07:18:10 -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 S1346110AbjJ0OR5 (ORCPT + 99 others); Fri, 27 Oct 2023 10:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346080AbjJ0OR4 (ORCPT ); Fri, 27 Oct 2023 10:17:56 -0400 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE68BB8; Fri, 27 Oct 2023 07:17:52 -0700 (PDT) Received: from [192.168.4.14] (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 4166155CBD; Fri, 27 Oct 2023 16:17:50 +0200 (CEST) Message-ID: <25173a48-529c-463b-88aa-2ee75dd604ff@gpxsee.org> Date: Fri, 27 Oct 2023 16:17:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] media: pci: mgb4: remove bogus 'select' statements Content-Language: en-US To: Arnd Bergmann , Martin Tuma , Mauro Carvalho Chehab , Hans Verkuil Cc: Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231023160539.1537355-1-arnd@kernel.org> <20231023160539.1537355-2-arnd@kernel.org> From: =?UTF-8?Q?Martin_T=C5=AFma?= In-Reply-To: <20231023160539.1537355-2-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 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]); Fri, 27 Oct 2023 07:18:11 -0700 (PDT) Hi, On 23. 10. 23 18:05, Arnd Bergmann wrote: > From: Arnd Bergmann > > As this is just a regular device driver, it has no business force-enabling > other drivers in the system, it should be entirely independent of the > implementation of the spi-nor layer or the specific DMA engine. > The drivers are required for IP cores that are used on the card (in the FPGA). Without I2C_XILINX and XILINX_XDMA the card won't work at all. Without SPI_XILINX the access to the card's FLASH (used e.g. for FW changes) won't be possible. A change to "depend" instead of "select" is thus possible if it makes more sense to you, but removing it would make the module not compile or not work at runtime (there is no symbol dependency to I2C_XILINX and SPI_XILINX, but both need to be present and are loaded using request_module() at runtime). M. > The IIO symbols that are selected here are library modules that > are legitimately used. > > Fixes: 0ab13674a9bd ("media: pci: mgb4: Added Digiteq Automotive MGB4 driver") > Signed-off-by: Arnd Bergmann > --- > drivers/media/pci/mgb4/Kconfig | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/media/pci/mgb4/Kconfig b/drivers/media/pci/mgb4/Kconfig > index f2a05a1c8ffa..b90347c7f19b 100644 > --- a/drivers/media/pci/mgb4/Kconfig > +++ b/drivers/media/pci/mgb4/Kconfig > @@ -6,10 +6,6 @@ config VIDEO_MGB4 > select VIDEOBUF2_DMA_SG > select IIO_BUFFER > select IIO_TRIGGERED_BUFFER > - select I2C_XILINX > - select SPI_XILINX > - select MTD_SPI_NOR > - select XILINX_XDMA > help > This is a video4linux driver for Digiteq Automotive MGB4 grabber > cards.