Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp279791imu; Wed, 2 Jan 2019 19:54:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN44H7VvHwS3SC0qtuA001yU+V7cy5Ua1886IBzAt6jZX2sx9xaah8F+jyVgi4NtMVU8QwFP X-Received: by 2002:a63:e915:: with SMTP id i21mr15400042pgh.409.1546487693852; Wed, 02 Jan 2019 19:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546487693; cv=none; d=google.com; s=arc-20160816; b=yMi1R/dWibdCoU4Rxqbd9DRg/HOXWU796xdTNVsmBM5VCTw1hCi30rXfFRTC3blxC/ 5K6wVhz/YAZhyhRxaqm8V2q/dYeJnXfmdZsaBwSE7WSzejRzLV6cBJNQ7BjiCiwLO1Nw S01mMoaeEFYXM/0Qmkbsgg24qIGq1ZpcL5vrx01TQ1rz+b2K1ZtT50zHUO8U5d0Ql6Zc NnVuaUiOWZzvDKOmty+W6ZcYupMPFWzHxFBEwZfJwAmbEnz43PO/bfmzZ4ihP2tnNtUO El7HcSVC9r1C/EPX8wx6ECm7WSxx4uLVHJMR7x+zVaTKXNurKUxHf2al825kbOQdbJAi tc5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=z0hhYbjkIcQNluXkCV9rNgTgPWBj+NgbsxTsRSXuxRM=; b=f7I51FAWGzN6+v05WqOib3cpHZDc3Qz75BJCi3j+W40hgZqUK8VVM1NTzR+A6kAaHh 3ghCX42BfPDWaRYA4+qzKG4/YuqMwBlgAMgU2Z7j4ffuYVdt5Ga9Yd5/qcJxY33C3FCi zr2gwDJ5KE//gOgLugGrtBVwqix7SGeY9XQ1Ja2V1g+5IA5cZXlECi846cysLiayFeQa zAIwD4piRo9TirBf5suAetYwWRZWJ3RcdPSbmClk+ZIkSHK5ddEKRZgxJheclqL3i2wH /iGUB1rmzTo/meSPwv9s/HtctKY4RLo/2EInYoJ7rR3yOXvM4a4cCK/UUOyI1OYF48ti B9vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DRie+9Uc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u72si50510743pgc.360.2019.01.02.19.54.12; Wed, 02 Jan 2019 19:54:53 -0800 (PST) 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=DRie+9Uc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730010AbfABW6h (ORCPT + 99 others); Wed, 2 Jan 2019 17:58:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:44652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfABW6g (ORCPT ); Wed, 2 Jan 2019 17:58:36 -0500 Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A72892171F; Wed, 2 Jan 2019 22:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546469914; bh=x81zMFByEwwbiOt+nSfbY8l0nMemOCoixK0m9bjpXBY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DRie+9UcdWhVqfQDfk8IC2tuar/YVFeforUrNyYz855Mg7pVHhnc71MqBsQ3PwFJZ PHp2DvFb29/DyBTt0Pf+F7lHK4TTufONSVz3FAvlsTb3r0dqLOtUphTeuwu6d3EgGO v5vB0MTb1y1Qt5FZTmWjCJGoQWDWzMH8k7BeauSY= Received: by mail-oi1-f181.google.com with SMTP id v6so26352481oif.2; Wed, 02 Jan 2019 14:58:34 -0800 (PST) X-Gm-Message-State: AJcUukfPJE4QtDNqcdA02hBY6sLRECNE7mmpn+aU4Yd+sXlodqJyeDoe dheKhdT0nthJ0vb1Yb/KY9Rg9l7ZpGH7r/KbKMo= X-Received: by 2002:aca:5e09:: with SMTP id s9mr14016461oib.153.1546469913950; Wed, 02 Jan 2019 14:58:33 -0800 (PST) MIME-Version: 1.0 References: <20190102181038.4418-1-okaya@kernel.org> <20190102181038.4418-9-okaya@kernel.org> <57ed1d94-7f89-20e8-3289-7ef7efd18c20@linux.intel.com> In-Reply-To: From: Sinan Kaya Date: Wed, 2 Jan 2019 22:58:22 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit To: Pierre-Louis Bossart Cc: Linux Next Mailing List , "moderated list:INTEL ASoC DRIVERS" , Takashi Iwai , Jie Yang , Liam Girdwood , ACPI Devel Mailing List , Mark Brown , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 2, 2019 at 10:50 PM Pierre-Louis Bossart wrote: > > > > This is pointing to a kconfig issue on ia64 arch. > > > > arch/ia64/Kconfig:128:error: recursive dependency detected! > > arch/ia64/Kconfig:128: choice contains symbol IA64_HP_SIM > > arch/ia64/Kconfig:202: symbol IA64_HP_SIM is part of choice PM > > > > IA64_HP_SIM is both a choice and is selected. > > > > I did allyesconfig and disabled PCI afterwards to find all the issues > > on this patchset. > > Are you saying there's a newer series that fixes this issue for both > allyesconfig and allmodconfig? > > if yes, then we're good. No, I haven't fixed ia64 kconfig issue. That's somebody else's job. I used allyesconfig to find out all compilation issues on x86 arch to come up with this patchset. > > > > >> 2. there are different patterns to express the dependency on PCI e.g. > >> > >> config MMC_SDHCI_ACPI > >> tristate "SDHCI support for ACPI enumerated SDHCI controllers" > >> depends on MMC_SDHCI && ACPI > >> - select IOSF_MBI if X86 > >> + select IOSF_MBI if (X86 && PCI) > >> > >> but > >> > >> config SND_SST_ATOM_HIFI2_PLATFORM_ACPI > >> tristate "ACPI HiFi2 (Baytrail, Cherrytrail) Platforms" > >> default ACPI > >> - depends on X86 && ACPI > >> + depends on X86 && ACPI && PCI > >> select SND_SST_IPC_ACPI > >> select SND_SST_ATOM_HIFI2_PLATFORM > >> select SND_SOC_ACPI_INTEL_MATCH > >> > > I matched depends line to > > > > depends on X86 && ACPI && PCI > > > > for MMC_SDHCI_ACPI per feedback from Rafael on V5. This should resolve > > the inconsistency. > ok, I didn't see the delta > > > > > >> IOSF is only needed for Baytrail-CR detection, and the code will compile > >> fine without it, so maybe it'd be a better model if you used the > >> following diff? > >> > >> diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig > >> index 2fd1b61e8331..68af0ea5c96c 100644 > >> --- a/sound/soc/intel/Kconfig > >> +++ b/sound/soc/intel/Kconfig > >> @@ -95,7 +95,7 @@ config SND_SST_ATOM_HIFI2_PLATFORM_ACPI > >> select SND_SST_IPC_ACPI > >> select SND_SST_ATOM_HIFI2_PLATFORM > >> select SND_SOC_ACPI_INTEL_MATCH > >> - select IOSF_MBI > >> + select IOSF_MBI if PCI > >> > >> 3. All the Intel machine drivers depend on X86_INTEL_LPSS which depends > >> on PCI. But for Baytrail/Haswell/Broadwell we have only a dependency on > >> ACPI, so we expose drivers that can be selected but fail on probe since > >> there are no machine drivers. I am not sure if we want to be strict and > >> only expose meaningful configurations, or allow for more compilations > >> tests and corner cases? > > Hopefully, v5 resolves this too with > > > > depends on X86 && ACPI && PCI > > > > Let me know otherwise. > > it doesn't but that's not a good enough reason to lay on the tracks. > I'll follow-up with a cleanup for the Intel audio parts when this series > is merged. The PCI dependency could be moved to the top-level since it's > pretty much required for all platforms except for compilation tests, and > there are multiple dependencies that repeated for no good reason, so FWIW > > Acked-by: Pierre-Louis Bossart >