Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4874769iob; Mon, 9 May 2022 03:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi96OGKlqIAf8rytXgWH4x19iDklFNGNuQ+kQR5fkAHkpEF09k9kX3JgepEvnlHfTWPGK7 X-Received: by 2002:a63:6a86:0:b0:3c5:e6c0:cb9f with SMTP id f128-20020a636a86000000b003c5e6c0cb9fmr13154044pgc.365.1652093271716; Mon, 09 May 2022 03:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652093271; cv=none; d=google.com; s=arc-20160816; b=ArBHeQwl2h61UZ9XM5J7kCBJB+eBWM+g2h24Y1h4+jHWrhaa3Fkvs8FGA0DmX1thY6 uuQ+K5C3sFMRwKugid4EzgDK9jKlL0V+A0vJDbyHynjJ2JxftKaenhkhbzssHV8xCk6t MHz+/LLbBoPD43H/kKHfB7cnXSomzYquRX5Yvxq21+Viea/eWOBL3m7O+2Gnw8fnLMPa XZrWo7HBwTyH6YwQQgmgA8lJ9qJ5TyzNwcs/3yxWcSpRsZk9CUA0896IWICWWG/TARY/ dIRaacsfJ9aI6CjJcgURlibe02ztepTfdHbCDF38zlPHacGRgMO/QuXxDUYa/lposI9r kX5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Pq4kGX3a5TfOigdp7S/BioGnjorMllOcn39mLXVH/s4=; b=ctxu7J5IL+93WGp+8jVz0YF61W5vO+V3eRkIc8shYmZxVJoerll56ShUaMqS6RBaIV exIHAXLWc/kH2LDad53suttEklyVzLiNGgzNnDrpUU6brXOo4a4lmUXlzf2Al3ryr7YG rB+Roahug+sI+qLrzjmO7TdPVvp1OTAob2O6pznS4LjzhBZeHJ8vRNXAJIAv/ion8+Cz 72Drugy2Bl0y3IRDb4ft0nV7RDfvGqadZzHmp05AWNUjlxansrKbfvpvm5HQtK29ct9w g9n7Iey1Q0V/u2qTBTXJSOAhYAGsiVD87QgYfEdQNrJklJdigwty30R8O66BxzkZtz+D 6kJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eno68cp5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d11-20020a170902654b00b0015eb10a9f67si11283657pln.379.2022.05.09.03.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:47:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eno68cp5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 988482716E9; Mon, 9 May 2022 03:09:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237257AbiEIJd0 (ORCPT + 99 others); Mon, 9 May 2022 05:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235033AbiEIJYr (ORCPT ); Mon, 9 May 2022 05:24:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90486102BB3; Mon, 9 May 2022 02:20:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 41DC6B80D3A; Mon, 9 May 2022 09:20:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1730C385B1; Mon, 9 May 2022 09:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652088050; bh=34I44iElGDvsO9vc/1qouhwKhN0J+6JwjUlz5LWtXAI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eno68cp5BdLmo+JTajkGm38tQmu+Eu/sq4rus3H3PeZDczMGh25dLxlkSQhTCYwgQ bRSLqPg8rs4UxHU6e7yF1XLfcomJY4t0M7NMNiC9YtBbODRwVUTlx6SW6lDf0enn7E 9T9hamdgtefEwrz8+kx7empoAncF4wZJu/I5T1Hjl1mb2ZQEe72n8XmzgBvOAR4FsF 4QojwyHucRdJFVdQrU9P2vZjh98K5479MIIg8a5HnWmlKqwdDQVV0uS/nEg6JHs7sL SWvP2H4iaApf/cjEfM2MMVxMergCCfxcFrfDgR/c+QhRf9pO7X20IS+nIspNDiA9e7 v1X+v2ctmzR9A== Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-2f83983782fso137203507b3.6; Mon, 09 May 2022 02:20:50 -0700 (PDT) X-Gm-Message-State: AOAM530tFO+0vMwt+MVACNPqL1sy1PK48sBbQlPhguw4jkOm/w7HXEqg kZFEHVNCQdAMD/nBxzAFJIE4+T1V8+jV1dsq9vA= X-Received: by 2002:a0d:cd06:0:b0:2f8:f39c:4cfc with SMTP id p6-20020a0dcd06000000b002f8f39c4cfcmr11712705ywd.495.1652088049944; Mon, 09 May 2022 02:20:49 -0700 (PDT) MIME-Version: 1.0 References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-57-schnelle@linux.ibm.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 9 May 2022 11:20:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v2 31/39] sound: add HAS_IOPORT dependencies To: Takashi Iwai Cc: Niklas Schnelle , Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-arch , linux-pci , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Arnd