Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp278023ybi; Wed, 29 May 2019 21:14:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFHGSiPtuHhAXo70h/onnDuARLfPyGos9yhu8wZfWqF5N9hMkHQrGdalGXFg5zUx149Id2 X-Received: by 2002:a17:90a:1902:: with SMTP id 2mr1600754pjg.113.1559189646501; Wed, 29 May 2019 21:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559189646; cv=none; d=google.com; s=arc-20160816; b=gjjaLI1Of0I06ZVSpu8gT3gY1Vl+8PAbRYMYbg8ULWQ5LOgwCf9NKQWe/oCUiKkuqq ErJxcCSXp+9UwVSH9T3SWV42GlEW++nL2SLPHaCWjtdM8pZpwdcGKfRcVaVvsYKLitnG 67mz+p0lM+QKdF76h+NaPkNMfPgCByURjASZrPueOgZGecIhC6AfRzSzsdEFjVCD8AA1 H0rPqsukLJNjK6iDTTxE8iyoYKoF+h1BXDraBIE/K/Jh+AEpPpjGfhS5sNukitt21oeq H6XbnubMX+K7ZrIQwBGnK70jQyC9dzpH2O8mlGwTER1GzyDbZghjqfBCL2La7g21auHR PkUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0yYVAV3ZuzvIst9TaCpDYXmzmK9wq6guC68o1iScdyw=; b=oNJpbORZ85JTYjP7uBfpQH0R4RLvn5wj7ZRIVqXqG3zgOX9+M7Sh3fSb8s/2gJt2Me /v2Pt2UdOgYmOeKf3Dm9S7eCMYrzTqpbESnleLjVMiq4jP1tiurLtpCVIUt1LrRzGINa rcm7UrO5eIlKXAcj1p4m5zk7Va52Yofzb8tKXZqYZsaN4Go3SdKzRNFH1nv6fLg1Cyoq /Oadi12FJxNOlfdoWGdBJzQ8EUty6P9J/Wz0c80fcBaFdEJ3OQI2/eqBBdvuo26rGv+9 fVAO5gTmR63uZJ8rD/WbnC0HXhuSmZoWhb2CkkpegOVs9+saihYmoM5llD9E7H3QxMMk oxOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gC6fxLtz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n65si1893817pji.53.2019.05.29.21.13.50; Wed, 29 May 2019 21:14:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gC6fxLtz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbfE3EMn (ORCPT + 99 others); Thu, 30 May 2019 00:12:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:42908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729413AbfE3DQd (ORCPT ); Wed, 29 May 2019 23:16:33 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E2CF245F0; Thu, 30 May 2019 03:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186193; bh=ETxqmV7FS2AKCIeo4tjonjq8r25TMozlArfrBeEhZBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gC6fxLtzqoNObDAZEnhgkC3Yz1B7EMu6pUhTVB4Zovv/p/5O9ysBFtcirYYO6jxyp UQnX+xJeqG3V3O+/kKO9iZyyZ+ZUGjHbAJbKgCGnlCf/UBUBhxZ0QyfSjndElDKcST QYOvvXS16RpIK8/2Qss+jq4Sq7ZbvjlPRoUo/f4I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Mark Brown , Sasha Levin Subject: [PATCH 4.19 065/276] ASoC: imx: fix fiq dependencies Date: Wed, 29 May 2019 20:03:43 -0700 Message-Id: <20190530030530.000686127@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit ea751227c813ab833609afecfeedaf0aa26f327e ] During randconfig builds, I occasionally run into an invalid configuration of the freescale FIQ sound support: WARNING: unmet direct dependencies detected for SND_SOC_IMX_PCM_FIQ Depends on [m]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_IMX_SOC [=m] Selected by [y]: - SND_SOC_FSL_SPDIF [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_IMX_SOC [=m]!=n && (MXC_TZIC [=n] || MXC_AVIC [=y]) sound/soc/fsl/imx-ssi.o: In function `imx_ssi_remove': imx-ssi.c:(.text+0x28): undefined reference to `imx_pcm_fiq_exit' sound/soc/fsl/imx-ssi.o: In function `imx_ssi_probe': imx-ssi.c:(.text+0xa64): undefined reference to `imx_pcm_fiq_init' The Kconfig warning is a result of the symbol being defined inside of the "if SND_IMX_SOC" block, and is otherwise harmless. The link error is more tricky and happens with SND_SOC_IMX_SSI=y, which may or may not imply FIQ support. However, if SND_SOC_FSL_SSI is set to =m at the same time, that selects SND_SOC_IMX_PCM_FIQ as a loadable module dependency, which then causes a link failure from imx-ssi. The solution here is to make SND_SOC_IMX_PCM_FIQ built-in whenever one of its potential users is built-in. Fixes: ff40260f79dc ("ASoC: fsl: refine DMA/FIQ dependencies") Signed-off-by: Arnd Bergmann Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/Kconfig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 2e75b5bc5f1da..f721cd4e3f972 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig @@ -173,16 +173,17 @@ config SND_MPC52xx_SOC_EFIKA endif # SND_POWERPC_SOC +config SND_SOC_IMX_PCM_FIQ + tristate + default y if SND_SOC_IMX_SSI=y && (SND_SOC_FSL_SSI=m || SND_SOC_FSL_SPDIF=m) && (MXC_TZIC || MXC_AVIC) + select FIQ + if SND_IMX_SOC config SND_SOC_IMX_SSI tristate select SND_SOC_FSL_UTILS -config SND_SOC_IMX_PCM_FIQ - tristate - select FIQ - comment "SoC Audio support for Freescale i.MX boards:" config SND_MXC_SOC_WM1133_EV1 -- 2.20.1