Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp270812pxf; Wed, 31 Mar 2021 03:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu/PgH0DEmqhS8qrGzRil1VSgevLfJmSHCiAs26vYxWVhlvwnh1eoUtdw0r1eHxWpEBCea X-Received: by 2002:a17:907:7014:: with SMTP id wr20mr2625237ejb.179.1617185008028; Wed, 31 Mar 2021 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617185008; cv=none; d=google.com; s=arc-20160816; b=fzM4c84HV0ujbUo3j53xhnBhdetC89S2rx0DOi8E0MH3mXfzTGYXTRojdSLJimprOQ reRZEcrMyN71b6Wm80j9oPB0fquecNXeabEis9oh0snWXpp5GR32prsuyVHUwhabfA8t GEL1S+XeTsnlZch4rCAwVwzaxbMSKPOCwmIRKN8rCeV/ksk9KBauyVvODNg4cojUTAsY Ht1CJHw266SBh0oTQZarR0/5APMehIFo2gekwpwb+0tlV6Eib0Db73rG15YwxubWXtoV aO2mL5OuqeMD/yq5QbBvH6ROqiGsP5haYvleoLYyLr0C7OjGHWQ6j7eH22aG19lU8gxM Dqlw== 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; bh=sknlOjwul0fXuqbxnaGLbm7x0txxKc612UEcZ1prbPw=; b=DKQIkCiG/24aFxUu8cP8beLAiV35W5ircC9sj2O8vNlPKwg6SLLJ91AfAgkom3sgAK 06bJAxFd32tShxV2INXNYgQ9i/IrI53fDKWsISi/sPbojnbCePn+DEdf54ulNC5MaYow DdRvxVa680s6YBv33nC4xg5bhBlJ9CF8DkwzKLDfR93PHJZ2FVH29tPZiotw7nUhUrhB bM/K2cyQjP43DOQ8Otc13Hm9Ih3XeSv8iAXEOJn1WrZGHNSwkkILADsCo0Y0mOV5Ah14 Fe9VsiMhvMoHRfY5M8RVZdf4Y92U3P1SCAxaaj5x7gNiEZnd7BUMVKdTaD28dziJX3Ku +Q4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si1355412edn.109.2021.03.31.03.03.05; Wed, 31 Mar 2021 03:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234973AbhCaJ7v (ORCPT + 99 others); Wed, 31 Mar 2021 05:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbhCaJ7l (ORCPT ); Wed, 31 Mar 2021 05:59:41 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B6EC061760 for ; Wed, 31 Mar 2021 02:59:40 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:ada2:b4da:6568:5ad5]) by baptiste.telenet-ops.be with bizsmtp id mxzd2400C5W9KJv01xzdKj; Wed, 31 Mar 2021 11:59:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lRXdQ-00BseR-MX; Wed, 31 Mar 2021 11:59:36 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lRW2i-001XXx-8w; Wed, 31 Mar 2021 10:17:36 +0200 From: Geert Uytterhoeven To: Mirela Rabulea , Hans Verkuil , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] media: VIDEO_IMX8_JPEG should depend on ARCH_MXC and not default to m Date: Wed, 31 Mar 2021 10:17:35 +0200 Message-Id: <20210331081735.367238-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The i.MX8 QXP/QM integrated JPEG encoder/decoder is only present on Freescale/NXP i.MX8 QXP and QM SoCs. Hence add a dependency on ARCH_MXC, to prevent asking the user about this driver when configuring a kernel without i.MX8 support. Drop the "default m" (which means "default y" if CONFIG_MODULES is not enabled), as merely enabling CONFIG_COMPILE_TEST should not enable additional code. Fixes: 2db16c6ed72ce644 ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by: Geert Uytterhoeven --- drivers/media/platform/imx-jpeg/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/imx-jpeg/Kconfig b/drivers/media/platform/imx-jpeg/Kconfig index d875f7c88cdad125..0e3269d06ded30ec 100644 --- a/drivers/media/platform/imx-jpeg/Kconfig +++ b/drivers/media/platform/imx-jpeg/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 config VIDEO_IMX8_JPEG tristate "IMX8 JPEG Encoder/Decoder" + depends on ARCH_MXC || COMPILE_TEST depends on VIDEO_DEV && VIDEO_V4L2 select VIDEOBUF2_DMA_CONTIG select V4L2_MEM2MEM_DEV -- 2.25.1