From patchwork Mon Dec 28 12:45:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 352694 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9807031jai; Mon, 28 Dec 2020 06:58:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+5/ZrrzOMKAWGCHf1EWPJKsjzIbr+bzKVM6rFpM93DudJvTCLXYBAE6M1K1fCRDbbWjS9 X-Received: by 2002:a50:bb44:: with SMTP id y62mr42480990ede.103.1609167532347; Mon, 28 Dec 2020 06:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167532; cv=none; d=google.com; s=arc-20160816; b=d5IvXpy1lnhWuyrlHYnxsAscxIlYMoqV977Jb9skzYbibxi0MVchF+Bp/RM6avwHq1 tjV0qt4pd5Gw+c2pIvFyQdvU1XvR4Ec5vTZGv2P54wYOZaabKD/BqZcw7NyJIfW+lmB2 oj/2hPut0KxlVfMXJ7MeLHMRmVqErbvOTyqISMqmbqkfTkz4/4i4PogIgSTL2o0e1+AN uhyXLG4gcpNpz1Ckd6ICCam3n1HdoezrBIjZzhEP4MfcDtcD/9FCKXiXO7kKZYmKmyjI Jmq9w1LGh5kQEW2W57kxv4takx3+62xeTrk3VutxJnQfMtB7pMqIsN/qwu9Yu2Glds+U BJpw== 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=qpCSrOmgm+gO4RjTBopEEQ5abZaavn9mmkSgSroVu/4=; b=0p5dLbXpjYQ/6ZHCVSgSKKTjOxCYCJD5ieT2PEcLPlr9VODXsjfVXgSmje0oujzL0W U1EvcVs3TTwWzJCSUl9ZzhG67btyn0/8J9kLLx/pYFXw3Kv5jgWWj8QAwWp8L+8IFxYV UrZN1pYUa9tvFa1GBZumwpQkqIB52dmQiiZv+HdmeMIuhChz5iZKMmxCNzer26/8HlCC 7z4fKA7KgDzLA0/KkeyO7B2n8iR72KztqGSkbWW5Cprxwe8Ew+wToDc/KfKfWxF4kHYD bGGguaZbo1AyxEo16pHR3D2UZyikKR3LYXkyHH47xTpbzdyWS/sa31ZwUXyPuxARzJqG PmCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qdkAASDu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 m6si19388054edr.532.2020.12.28.06.58.52; Mon, 28 Dec 2020 06:58:52 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=qdkAASDu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S2439338AbgL1O6Z (ORCPT + 14 others); Mon, 28 Dec 2020 09:58:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:49528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440534AbgL1OO5 (ORCPT ); Mon, 28 Dec 2020 09:14:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1599022AAD; Mon, 28 Dec 2020 14:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164881; bh=BThpZ5djaZCNKZZrYR7gqdhOtxJEpl/PIxIzu+CFFPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdkAASDu5HAVK1J0jx3yJ5yzqJN4/4D7m1QgxzYQLthpDsU5pvfWSmivXIT9jc4dJ hL/K/0IfXVqdfl0fNP0PJcEDABKaEYJmSRfIbeisrsLUNy1AoV8lnwHS3dELqkG0eZ BusHYqknkmLDDHk98DBf75BSMcaOcy3M9cxJkFD4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Viresh Kumar , Sasha Levin Subject: [PATCH 5.10 332/717] cpufreq: imx: fix NVMEM_IMX_OCOTP dependency Date: Mon, 28 Dec 2020 13:45:30 +0100 Message-Id: <20201228125036.929757567@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit fc928b901dc68481ba3e524860a641fe13e25dfe ] A driver should not 'select' drivers from another subsystem. If NVMEM is disabled, this one results in a warning: WARNING: unmet direct dependencies detected for NVMEM_IMX_OCOTP Depends on [n]: NVMEM [=n] && (ARCH_MXC [=y] || COMPILE_TEST [=y]) && HAS_IOMEM [=y] Selected by [y]: - ARM_IMX6Q_CPUFREQ [=y] && CPU_FREQ [=y] && (ARM || ARM64 [=y]) && ARCH_MXC [=y] && REGULATOR_ANATOP [=y] Change the 'select' to 'depends on' to prevent it from going wrong, and allow compile-testing without that driver, since it is only a runtime dependency. Fixes: 2782ef34ed23 ("cpufreq: imx: Select NVMEM_IMX_OCOTP") Signed-off-by: Arnd Bergmann Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 015ec0c028358..1f73fa75b1a05 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -94,7 +94,7 @@ config ARM_IMX6Q_CPUFREQ tristate "Freescale i.MX6 cpufreq support" depends on ARCH_MXC depends on REGULATOR_ANATOP - select NVMEM_IMX_OCOTP + depends on NVMEM_IMX_OCOTP || COMPILE_TEST select PM_OPP help This adds cpufreq driver support for Freescale i.MX6 series SoCs.