Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4716830pxj; Wed, 12 May 2021 11:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDPJwEOZH4xJtoYlrsqN9a/VvOzQx9FrC4PxOd0R+25V5TVRrAaSwk7zvjsL4FjSq6SQyV X-Received: by 2002:a17:907:7609:: with SMTP id jx9mr2581100ejc.550.1620844388112; Wed, 12 May 2021 11:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620844388; cv=none; d=google.com; s=arc-20160816; b=LKAHOV8S/Ui3oCqE7wO9sAF7B9Ft3LhwmVHQTftsrvGgvVSkTm9eG8eFryy4xOvRjP p87duKqLOwemFb6fAOsjMYw0OctRadEdCi3q3ZpwkiGobUOpTx6HLUFT047XgHiR6zdy +UfBfT+iXj0G1lYUZv+Js3XXpEycNH+Fdi93RuzuBEWzDtgS9ogT4qkIqLvHUvQqgd8n dzdxl50EvWrFOMUK8h7InmfJ3NgV2xToY9xNGsEfcGRGvSEmqnSTCIMJTG6It0lTOxzU KeTfsEDSWLxjd3wPQXwWVsETtFxIMcjxzuU8gsZt+ioBtVdoLsNUkHiYOU5gPLce3PKn vTmg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FIigku5pnutO3bJIl4mNG27JEQNurlY5BIz7NwdATG8=; b=Y3GbHHgY0rxYqB6byCEfzcr66hLMZ9ispfMpqcsECmc43PXsz3CPZbvMW7+RHYVtFU s52qRIQojvZvi87p0A9UETNlj7PrE9GQLD8Av1IblQmthxxnH0HCCpsFpWOWocb9nRpe 3GKZZTV3fL19cMOzEVKXw428Dsbl5Op3mBWFx2dx2bpuEkEPx2COBxiCiymYMj63A3Fa Kj4DT/ao5ZpOvBs+fIBnFLwxNKwI3C/dPBrVnADC7YFqdRaxNQUibVjNVf44TYs3txsD KC0VqwLs8fxqtcUfyvD7HMVAh997+V27l3emhZ/tM/5rW303aTKuVb/RCZfadYTnZLWV 2hzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sy6TMQIC; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk20si684116ejb.185.2021.05.12.11.32.44; Wed, 12 May 2021 11:33:08 -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=@linuxfoundation.org header.s=korg header.b=sy6TMQIC; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356454AbhELScU (ORCPT + 99 others); Wed, 12 May 2021 14:32:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:57410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243161AbhELQgz (ORCPT ); Wed, 12 May 2021 12:36:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 93AAC61E17; Wed, 12 May 2021 16:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835275; bh=eS4i9oBkUN52Ge4jNwi9bMum1Voqp2NnkseaCe2dWaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sy6TMQICzQgzYYYB52/LEy45XzIjYihk3hMN5zyrwWGCKieNw47TG3fB6wq/N2U/h B3+1NC9cDEqPP1X6RBTDrFbrCY5tSywC7wbnSstc88QRJRV5aUV3Ul+UsxTtJeqYlT EiGun8GU47loDo+IhzPDDKYLCTm77npl6qe39kOA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Alexandru Ardelean , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.12 261/677] iio: adc: Kconfig: make AD9467 depend on ADI_AXI_ADC symbol Date: Wed, 12 May 2021 16:45:07 +0200 Message-Id: <20210512144845.910093169@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144837.204217980@linuxfoundation.org> References: <20210512144837.204217980@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandru Ardelean [ Upstream commit 194eafc9c1d49b53b59de9821fb63d423344cae3 ] 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 Acked-by: Randy Dunlap Link: https://lore.kernel.org/r/20210324182746.9337-1-aardelean@deviqon.com Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- 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