Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp223286imu; Wed, 2 Jan 2019 18:18:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN7RsJw8/gQQ1UcKsmHQ3XYzfyVUqAv3zBHVGIcifyXOckmY1/8TJFfi9eQH2ZUWvAitC0/X X-Received: by 2002:a63:960a:: with SMTP id c10mr15393113pge.106.1546481913650; Wed, 02 Jan 2019 18:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546481913; cv=none; d=google.com; s=arc-20160816; b=P42cYl6V0QHvoxQ1a8TPa/mXCGyfcAnZwbhARgCOJh9/ossudVpNbmtD595xrMfn53 fhD0iSBTgLyu+9CXa1DArivIpscKpKoprvZkdDkoMkulO31TnATE0H8gJm5MV+MgFEVu Xz/BZMMz0k/6fmkBkYKmDMe2Lno04zEb1SNK2F94EQFb3DPgnaTV50UcuyvPgTTBbqkA UDCR3gqW/skSy90aEImCLoyORrWuB8MoQ9dh2sVV/U0CKlu+artb5OJq1pcy4zthkC9C y08Z0tmYfkuyA38HSh2rbMjng4YHTNb6caWJRLHONeT7dvfQ5ETwQ4RTgvAJCAB7pLC4 sd2Q== 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; bh=VZubh1I1Z+Vo5l11siYpNXPfmvkd1NhArjp7I1rBeyo=; b=Q2soVFQMr/zEdljteosrB7sXdtuMvSPE1dxzWaWo7ZrvvcTB5uTd8YIHvCd9SrivFl JTma1AW53dKT+1DB5L5kga8QNhxyXUuXOqukBYRqUrH0rmZjdPyhbrjUaEYS/reTOl5Q V9EMwXrq8qZgHSDHEgW8GpYDgV5d1LmrUHX8xbhkNhsIzUqzMy/XhXVmOC/xiF5l1CKJ nBl1BY9ULaa7xnHSPIexvTUooXZUy76DyinrENp49CJw6W/N4gKlMm9vGHN5lCyb/QdG HeSA6V4TCsiVG6nYfJCV18zghKfrRDXJcWJtMQGn7xsHfToA85EZYKBGRAtjeNcz7/sA qccw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 r196si51274273pgr.311.2019.01.02.18.18.18; Wed, 02 Jan 2019 18:18:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729203AbfABWB4 (ORCPT + 99 others); Wed, 2 Jan 2019 17:01:56 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:37855 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfABWBz (ORCPT ); Wed, 2 Jan 2019 17:01:55 -0500 Received: by mail-ot1-f67.google.com with SMTP id 40so27900506oth.4; Wed, 02 Jan 2019 14:01:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VZubh1I1Z+Vo5l11siYpNXPfmvkd1NhArjp7I1rBeyo=; b=G7Q42w4ama3KOY7hMrB4jMluAxxPy4I2/n79Su2kdEEBkqypxl7NpDCzn5vKMpREok mxvBPguPyoCxHna7hv9B39H6CQKeYmVeokWIOu60upqflQF50+Tc39tOJDPc9KbxtCfc q5mStJPUuurD7XMS8jG8NzJTptJJkMRM1giSZjZ6okGJv1m0asxtR5P8hvFxH2x89/ML t0tNQc4/dC+PCd219wmRKnCGp0snmuYlsxI1eUreaVyxxo5VKhgy/p6Wo4o5hP1n+6c2 1b14uBaOkJTOFKw7lmkBDSyPgRJKdlt9RykyNtLBpToQmlQa08KNZx0kWYbPmaAAxXhi Zj2Q== X-Gm-Message-State: AJcUukd15+6txpc0JEOXlIvwx83oQbHHUavnNbimR2rdrx+28HRWfT/u Q0rkcc7S+xX/bx9rqUmhOE6MQFVq4n3Iru0uMeu9IwM2 X-Received: by 2002:a9d:588c:: with SMTP id x12mr32490459otg.139.1546466514619; Wed, 02 Jan 2019 14:01:54 -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: "Rafael J. Wysocki" Date: Wed, 2 Jan 2019 23:01:43 +0100 Message-ID: Subject: Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit To: Pierre-Louis Bossart Cc: Sinan Kaya , Linux-Next Mailing List , "moderated list:INTEL ASoC DRIVERS" , Takashi Iwai , Jie Yang , Liam Girdwood , ACPI Devel Maling 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 9: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). What baseline change? That failure is not related to PCI if I'm not missing anything. > 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 > > 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 Well, does it actually make sense to ever set SND_SST_ATOM_HIFI2_PLATFORM_ACPI without 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? I would only expose meaningful configurations to start with and then *maybe* relax that going forward as long as the benefit is worth it. Cheers, Rafael