Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1269987iog; Thu, 16 Jun 2022 02:47:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8NlsNkqSWfXrbAtNDNCw1BXYaFK8ReBp2hq/jlp1RreExu6mJAJiK4v8LpdDnMpqNtEvh X-Received: by 2002:a17:90b:4a4c:b0:1e4:da3a:9b07 with SMTP id lb12-20020a17090b4a4c00b001e4da3a9b07mr4153148pjb.242.1655372847020; Thu, 16 Jun 2022 02:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655372847; cv=none; d=google.com; s=arc-20160816; b=T8JnfJLlHZinIVW+ZPCLvZZf2k5x+Xnd02vPZwVnqtkSh/JgCpjv5GJu3I+3J/DgVV PlrGSqV0dja9ySjJTujTWgDdE5AawnRlq5P0lhhpmN4Fsd38xEwru7FMTEwTTSl/GhyR Mhu8Y8WgzAtvpwvXDCfTtvKhab2dp4MwHlPyLqhHO8HUqsEO87OiPG+baUojMBr7Hxlr x0GD4cuXjAcmq+EktMQzSCR7hHsUDEpNYz1pFbRKn/SnI5dxTG5xUWm374NU3J41ZIMi ptpHqoWRAs5k/QUbu78532TGX9oSP35hf0d1E90NlaKjgIG3Nvn/mD8nvx7zG5xDK4z/ BfuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ilYtET9jufizskTQPB54rBSGDDZ1WHPyEFAAnNEXtUU=; b=sx93ozVB7eYtClbBr5d/9mewNsZh5G2F4UR7otpjtWOVw+if0/0MLkQOEfiki4GBnV gBPvpiUYCbykmUMmpfkeZpOiNzCK42/3aPgtBZMuolFSwKmBiCzPBOBM53OImncmMFDN KZqHtb+v+tN8j5NsRznRquHlzOUhMQFjtQw7j+gkLFU0yvCdgFcbfW9MHuD/a1z2yFB6 BYHx0o91+QR4JA+jhAb/AjuA0lWN+YyvQnHcW+od42qWhDMYFU5Mk1BUlLc/zv+2Jax+ y3S2WGbC34I2q8fGukpUJeCkzoldSaV5iYxyZGvaBgPH7qozqt+C9nRHHoQWtrJ3/hAR QSfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cyn9DqW2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a634549000000b0040a88edd7c5si1912108pgk.819.2022.06.16.02.47.13; Thu, 16 Jun 2022 02:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cyn9DqW2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376805AbiFPIzT (ORCPT + 99 others); Thu, 16 Jun 2022 04:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376717AbiFPIyu (ORCPT ); Thu, 16 Jun 2022 04:54:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EBD931F; Thu, 16 Jun 2022 01:53:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E1EE60A52; Thu, 16 Jun 2022 08:53:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FC38C34114; Thu, 16 Jun 2022 08:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655369586; bh=D+RdnsGxCjpna2nFhDsPH8yn1kQWXeuteyiCbSjG4Ok=; h=From:To:Cc:Subject:Date:From; b=Cyn9DqW2Bo3mTonREJvlbSy94eHhheJutfKkKp95w8UonnXD/cBAVYT49zitJOw0h Njb5JNPyai8ZEzJ2wsmM/OeHwfADxJrgtU4ktEFJIhuxjlHbjIge6BTgah+IppHcJ9 +RZii4ZnqzTrJbAcOhsNBrcxK/OwbQy3+gXUa9jbNQnJzL3bQXwatqRIrhgi6l/kAc mtHG21XDf9NbXqpe8SWE2LEf3NT31JizOozm0/7vv9XQWcizJdDc9EzTpKDGDXjN2U VuACe89/ZSQJKOhPijA0LeXaoEmnyMOM4y2EGre4RrjwA/fJhAZtfRTgi6byfPeltp Iry4eYOCNY6gw== From: Arnd Bergmann To: Mauro Carvalho Chehab , Federico Vaga , Giancarlo Asnaghi Cc: Arnd Bergmann , =?UTF-8?q?=C5=81ukasz=20Stelmach?= , Laurent Pinchart , Jacopo Mondi , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: sta2x11: remove VIRT_TO_BUS dependency Date: Thu, 16 Jun 2022 10:52:42 +0200 Message-Id: <20220616085254.2275372-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann This driver does not use the virt_to_bus() function, though it depends on x86 specific fixups in the swiotlb code, which was last rewritten in commit e380a0394c36 ("x86/PCI: sta2x11: use default DMA address translation"). It is possible that the driver still fails to build on some architectures that are missing CONFIG_VIRT_TO_BUS, but it is always set on x86 machines with the STA2X11 platform enabled. More likely though is that it was never meant to depend on CONFIG_VIRT_TO_BUS, and the Kconfig dependency was kept from an out-of-tree version when the driver was originally merged. Fixes: efeb98b4e2b2 ("[media] STA2X11 VIP: new V4L2 driver") Signed-off-by: Arnd Bergmann --- drivers/media/pci/sta2x11/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/sta2x11/Kconfig b/drivers/media/pci/sta2x11/Kconfig index a96e170ab04e..118b922c08c3 100644 --- a/drivers/media/pci/sta2x11/Kconfig +++ b/drivers/media/pci/sta2x11/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config STA2X11_VIP tristate "STA2X11 VIP Video For Linux" - depends on PCI && VIDEO_DEV && VIRT_TO_BUS && I2C + depends on PCI && VIDEO_DEV && I2C depends on STA2X11 || COMPILE_TEST select GPIOLIB if MEDIA_SUBDRV_AUTOSELECT select VIDEO_ADV7180 if MEDIA_SUBDRV_AUTOSELECT -- 2.29.2