Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp235972imu; Wed, 2 Jan 2019 18:37:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN7GT7WUfg1VmzUJaZOq5td5yzLniZUhbWe20tqadyA5Nmk831ITqxtFYkTtOHLPGGLDzJSA X-Received: by 2002:a17:902:4124:: with SMTP id e33mr45197120pld.236.1546483077010; Wed, 02 Jan 2019 18:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546483076; cv=none; d=google.com; s=arc-20160816; b=mpFsuOo1NaG0AvMQyR0yl6e/JlKvvBkKxxeVGdvV0sV14hB6tbKsQ/cuMCeTFMf41K mIyhMB2BC51jn9wArrjKyIVNTRWjGHQELvGb14/78UOkQP/FVP0zA6MipEzjZFIGrTPS oJAhn3j8eBNepToQqvcWUjKKau7n2kfpR5sTyaY4X5osr16kx0O02fvw0DiTcsfdf4A0 qM92ncEefa0dJaublB7RxTTvOl/IfFlfY5ejan0k/AGh9dPzQaFASTz1ZQdpcY0RGAgt bVnhGUg6QvTme42sKvtZWyZNQejJXwUcvp2FyVqTTVUSd84je6BQgBhBrkDHwzko+Jsp VuJA== 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=tOJbQ1KY4ILo99l4gNxDjWeTy8FjcH9bd762qUxd6Tc=; b=Bdm07xm8EzHG0QyQnlNWJDKz+IRO8a+1onRGFBj/KWMnL9t44cAR2wyBnhP3PV6D9W U0WTmhv0s3rGQXYtqw7y1noYFnRqMmPRU7QuW8HYw0D9i/EQVS7DWRNntzYAovYMkUpm 7lajMRy+/J1jvw/BdUj1/8kof7/Hp5+OH6c71eA56ZFNB3VJ3ji8v43yzzfc6Brff0sd YURVkfwmzF9En/Xznn5cUsaFzBY5/Yt/JjFprASiioZxamYFDIsy0dQqJ9YxWGJ6Q5EP H1TMkHl2B07iWRuQS6VPlScDiDjsV3JMl8B+tbKAy5y6JeoIDIzNzD797U1EoyKFiT/Y lyOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KHFFUhKn; 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 a13si51346352pgb.412.2019.01.02.18.37.39; Wed, 02 Jan 2019 18:37:56 -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=KHFFUhKn; 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 S1729304AbfABWJ5 (ORCPT + 99 others); Wed, 2 Jan 2019 17:09:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:51216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbfABWJ5 (ORCPT ); Wed, 2 Jan 2019 17:09:57 -0500 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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 F18FE21871; Wed, 2 Jan 2019 22:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546466996; bh=wpJHg6NVHx2Ulmo6BT7faosovfnpmyvwbVht7qw2L6g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KHFFUhKnSteV67mOn24rVKyqtUcZxTU4uBABqrTHi971EDFV/41abUTRl6fn7++3W HyZT+vZcdLQdppInIRBq8TDsVpVrmyDeXVa9cKY756mdkDiIl20kCl8la3ynTgCej3 t4qpGNXbz8AAKIMlN5IPvVQci14/oP0j91bShxnM= Received: by mail-ot1-f45.google.com with SMTP id a11so27903996otr.10; Wed, 02 Jan 2019 14:09:55 -0800 (PST) X-Gm-Message-State: AJcUukdsAMmZpmTuuDSQ+iwO5tsgM6IfEMgQY58yhusG/TmDIRUcT97J pPQN3VzDE8prxHkfJXFZLNyMpnnmjnTfYn21Wlc= X-Received: by 2002:a9d:784a:: with SMTP id c10mr32723903otm.175.1546466995225; Wed, 02 Jan 2019 14:09:55 -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: <57ed1d94-7f89-20e8-3289-7ef7efd18c20@linux.intel.com> From: Sinan Kaya Date: Wed, 2 Jan 2019 22:09:43 +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 8:33 PM Pierre-Louis Bossart wrote: > > I have three opens with this ACPI/PCI change > > 1. the baseline change fails on my cross-compilation checks, see below > the result of the attached script (simplification of the one I use to > avoid 0day reports). > 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. > 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. > 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.