Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FD05C433F5 for ; Mon, 9 May 2022 10:08:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8F36C18C7; Mon, 9 May 2022 12:07:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8F36C18C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1652090925; bh=5bCvaKAbwb7XGw6v4TpSg+tT9LkUi8LLy80T2vDxscU=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=feofwNjqxvfhC7S698yhM5aIStzlB2APw+qZuEgBUQZGJP8WoKmRSLP7aoIZgM8kl kK8b6It3eYi294AdzeI8GZwLaBdoNxGfNHmmmX9TmE6n9LB0lem1cCFHr+Eax0y4CA BGgDUwQv2zYuDLwEp0bKiJMiwdFy0dho58+N/enw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2BAA7F80237; Mon, 9 May 2022 12:07:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4A009F8025D; Mon, 9 May 2022 12:07:53 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5BA29F8011C for ; Mon, 9 May 2022 12:07:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5BA29F8011C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Jqjtv2RN"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Lk4zaFnr" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 12B7F1F9F5; Mon, 9 May 2022 10:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652090865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=onb2w7bPIYEEL78XxSeaROmCWn+3/YkmTbagPJ1Pgf8=; b=Jqjtv2RNi2Pnvh6ZM46IOI5TpfIsI8xYg4gLrijHFmjifSiQ7khCVsp0w6tCU1HZWfTACE GWO1JDpuUblYxIJ+mHBm6lPxo2yHon13IorS8/Itz1rpOKgY5N6ItbplIIbBnzSw2lczpj R0Msg/L01Qsvw3wGcmPwZUKZM7Lge54= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652090865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=onb2w7bPIYEEL78XxSeaROmCWn+3/YkmTbagPJ1Pgf8=; b=Lk4zaFnrmOX/vKujOu7M4v9u8c2PHCQKNsPfqs2hDcYJo3j2DU+b4/61v8V6e8/YIqYUl6 y7atC+/QOOSJQBBA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id E7ECF2C141; Mon, 9 May 2022 10:07:44 +0000 (UTC) Date: Mon, 09 May 2022 12:07:44 +0200 Message-ID: From: Takashi Iwai To: Arnd Bergmann Subject: Re: [RFC v2 31/39] sound: add HAS_IOPORT dependencies In-Reply-To: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-57-schnelle@linux.ibm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: linux-arch , "moderated list:SOUND" , Arnd Bergmann , Niklas Schnelle , Greg Kroah-Hartman , Takashi Iwai , Linux Kernel Mailing List , linux-pci X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Mon, 09 May 2022 11:20:33 +0200, Arnd Bergmann wrote: > > On Mon, May 9, 2022 at 10:53 AM Takashi Iwai wrote: > > On Fri, 29 Apr 2022 15:50:54 +0200, Niklas Schnelle wrote: > > > > > > > config SND_OPL3_LIB > > > tristate > > > + depends on HAS_IOPPORT > > > select SND_TIMER > > > select SND_HWDEP > > > select SND_SEQ_DEVICE if SND_SEQUENCER != n > > > > Both of those are the items to be reverse-selected, so cannot fulfill > > the dependency with depends-on. That is, the items that select those > > should have the dependency on HAS_IOPORT instead. > > > > That is, a change like below: > > > > > --- a/sound/isa/Kconfig > > > +++ b/sound/isa/Kconfig > > > @@ -31,7 +31,7 @@ if SND_ISA > > > > > > config SND_ADLIB > > > tristate "AdLib FM card" > > > - select SND_OPL3_LIB > > > + depends on SND_OPL3_LIB > > > > ... won't work. CONFIG_SND_OPL3_LIB is not enabled by itself but only > > to be selected. > > Right, I missed that in my review. Not sure if this was a mistake in > my original patch or if it started in a later version. > > I think for the ISA drivers, I would still add 'depends on HAS_IOPORT' > to both CONFIG_SND_ISA and CONFIG_SND_OPL3_LIB if only to > make it easier to understand, even though CONFIG_ISA requires > HAS_IOPORT already, and CONFIG_SND_OPL3_LIB cannot be > selected by itself. Yes, that makes sense. > For the PCI drivers, I think we need to add the same dependency > on anything that either selects SND_OPL3_LIB or calls inb()/outb() > directly. Agreed. thanks, Takashi