Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp42271pxf; Wed, 24 Mar 2021 20:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxOzdr6gkIaKlgdCGjRMRZ9SPjsM2Imhl5B+DWFJGF8hJWPlEjTjzv78YZw4pwG4zm5Pzw X-Received: by 2002:a50:ed96:: with SMTP id h22mr6611877edr.39.1616642533357; Wed, 24 Mar 2021 20:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616642533; cv=none; d=google.com; s=arc-20160816; b=O6J72/EmUS4ZsspZvtDcT6BajvVNDqyWQZsaeHS/oD7YVDggtALE66TsnP+0HlYwEH 8uRZqwUeEm5mWg2fsFJzErtyAaebwVdtEgcNaFuLBCHkIuCZgpfmDg5uJhzPcLmunr0P UU6rT8kD3YCdXrrtSyzJHbRX+2BN/OsT6HXvNc4a6caNzoqei6kSoE/GDNlDaTAUEQwl cuKBRMylqAC8FoO4hwE8xniPKyBAZurL/+rFaUaFJiUoKait48DjjKRLRXvrgZ2dXee0 E/ADLKsWnEaNPL0YXszskMdSnOLiUVLAEOQiaRoFhv7nbuo9RVVByyeDBWuUrvixcJW7 F+nA== 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=eyLMXRzyKHAlRrBe/1Z1s41GJMv95BdW39ViogQEvKA=; b=ta8tgzxyZZQDdXrQKYosRBodw4hExNPXHolOsVaAsP8Mi9mtcLf22BCfzvXuAFgyYM +FvrEthif9yw8aUtGtDpd+ps4CoJzkoUxs7c7ZRz2cnLZcoAgxFmJAcZ+WgpQOmLfmLe kKpbnTpUOFoD38Hc4+pnFZpkEvG8sTb/ogWVD1XQlN5Ykagld8fSWXE5YNCKRva6kVkZ v55DnoG6Z+Ueo81wPrbDzCUyRgjLmtI320IW+bi63S6Mj09m6ToAhhgc7CF8vER4EUCF hsNMXW+6A4oD2F3YiX6ykoggXpih6/fod5peVilQlrkCOPCGJoI++q1j1b+ywhTV7C5I A49g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=Xzn9Elip; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deviqon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r5si3059775ejr.410.2021.03.24.20.21.50; Wed, 24 Mar 2021 20:22:13 -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; dkim=pass header.i=@deviqon.com header.s=google header.b=Xzn9Elip; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deviqon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237443AbhCXS2f (ORCPT + 99 others); Wed, 24 Mar 2021 14:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237588AbhCXS2U (ORCPT ); Wed, 24 Mar 2021 14:28:20 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2202AC061763 for ; Wed, 24 Mar 2021 11:28:19 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id j3so28734855edp.11 for ; Wed, 24 Mar 2021 11:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deviqon.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eyLMXRzyKHAlRrBe/1Z1s41GJMv95BdW39ViogQEvKA=; b=Xzn9ElipPR5gW7jhTJ17RnslH0rsAe0v8ShnY9MYT3QTFuLChXnKGl2bFh1+iIDo56 MVWv9vgpxQDeoA0LDoefsDGyjkBGpyXewlXKtM/vGWN3xYQ5EtQjO6UAin1eDS+OA9sL wwsyx3fqlmHQeHdaeLPElrx5PRNL5YZAI+mrQebrUkgVR3vBB5xxmSFrAfS89GMytz+Q XvP86Pvu/vnNo7Olb01mEr89ranbxzFAqgXOlIG+DN7zx0mdMc5gq5BLIPBPeuSTKyWF 347GoGyFJcpdWOAgXnXQv4TygsNoOVJaOR5mvYYvpRPeynQDD70u3+OF22fo0B8rSJ0t GdYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eyLMXRzyKHAlRrBe/1Z1s41GJMv95BdW39ViogQEvKA=; b=NB44FILQkFdXhLgXpoMQwEyD3OnsV9hwG9eNyjWNIAJOgxGg8rvrThayPzX4bNFF8d LfoTFqCfhXoMP8aY/+4oJuWt8LzS/Ir33UhjqtQxMGpd6VnJZ9URIkISvde8r4MlvICR bdXIbkVKzMVoelSGPt/HvWTCgY8tVl/XFVfr6YcByRz8EGe6JVnjmj8iCaUVL1ORp0Eq pHLgnN0MMzGWqIABk4toV8iygpeRi3stnNhQWfUnMgduUz+12H3OHbkFopSAF9EiOou6 9TSrf3BDpBT5cS3ZXnItTwfZaW6alXeRHZ9fUmZrYC0UB+FYoi/+oIROtM6OOMkv8OpQ AYVA== X-Gm-Message-State: AOAM5314uVaPBFl4sn1uUWnDLQYmyl498iYDUf8/cEUOkQF2nWewbwVx UKFGRd/a1XxYV6H9mvekuiTUEw== X-Received: by 2002:a05:6402:c8:: with SMTP id i8mr4999991edu.57.1616610497853; Wed, 24 Mar 2021 11:28:17 -0700 (PDT) Received: from localhost.localdomain ([188.27.130.90]) by smtp.gmail.com with ESMTPSA id r4sm1288360ejd.125.2021.03.24.11.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 11:28:17 -0700 (PDT) From: Alexandru Ardelean To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jic23@kernel.org, linux@deviqon.com, Alexandru Ardelean , Randy Dunlap Subject: [PATCH] iio: adc: Kconfig: make AD9467 depend on ADI_AXI_ADC symbol Date: Wed, 24 Mar 2021 20:27:46 +0200 Message-Id: <20210324182746.9337-1-aardelean@deviqon.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because a dependency on HAS_IOMEM and OF was added for the ADI AXI ADC driver, this makes the AD9467 driver have some build/dependency issues when OF is disabled (typically on ACPI archs like x86). This is because the selection of the AD9467 enforces the ADI_AXI_ADC symbol which is blocked by the OF (and potentially HAS_IOMEM) being disabled. To fix this, we make the AD9467 driver depend on the ADI_AXI_ADC symbol. The AD9467 driver cannot operate on it's own. It requires the ADI AXI ADC driver to stream data (or some similar IIO interface). So, the fix here is to make the AD9467 symbol depend on the ADI_AXI_ADC symbol. At some point this could become it's own subgroup of high-speed ADCs. Fixes: be24c65e9fa24 ("iio: adc: adi-axi-adc: add proper Kconfig dependencies") Reported-by: Randy Dunlap Signed-off-by: Alexandru Ardelean --- Apologies for this being too late. I made the patch but forgot it in a local tree. Related to discussion: https://lkml.org/lkml/2021/3/18/1007 drivers/iio/adc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index e0667c4b3c08..dda0f1e37ec1 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -249,7 +249,7 @@ config AD799X config AD9467 tristate "Analog Devices AD9467 High Speed ADC driver" depends on SPI - select ADI_AXI_ADC + depends on ADI_AXI_ADC help Say yes here to build support for Analog Devices: * AD9467 16-Bit, 200 MSPS/250 MSPS Analog-to-Digital Converter -- 2.30.2