Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4954062iob; Mon, 9 May 2022 05:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKzXAF/504UwFuKgAIxSCQYRa85dNcNTUcZMBtuv94pr8INJnKFxpPlLmblkMBm/m5bXRP X-Received: by 2002:a17:902:7104:b0:15e:ddb8:199 with SMTP id a4-20020a170902710400b0015eddb80199mr16218698pll.80.1652100026982; Mon, 09 May 2022 05:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652100026; cv=none; d=google.com; s=arc-20160816; b=r494FlfqQQHbXBBM+SHVsCkUh6CAhy8hMrkK4By9g5w8R5b63Gu+76eCO/NhLFNWkE FzDcTXMH/TmSRAdy4MH2OI19FbLsAI90j/QQDZ1H3gc1dqnAaQLLP7ZyfHt3gxz19i2R QO1YNlWHaZwJ7Tia5mwJ4llo1JXkeGM9W/hYidXlukiyiM9d15tWzoAHTCiHzWwKbGjY nB4qjjvS2lNX75SZ4kDoKA/FU3oK9NOhVyxKfogdI+Lh6IxzTA3AsZifA68Waq4dcakO 2b9L8paU8AWskA8Iw7ZamWCJkNa6yULnzWOeeGn41TX9GNrhCBW6UWHCOQDZ1Rlpn+yb tXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=mFwQ6X5ROpPbQQvS6IJn0oLRB0j4XJ42BtNeuwsniXc=; b=dTbW7DGH77HPA7Nu7RTzpIy8Z53Ab6pXbVF5JGiBlEkb4aUBNpz/DN9i6V3jBZwxDL vi7hd/ow43AirCH+f3P8q4V4ZXZmAVDFY6ja5An8/dcTElQbel3TsLauvnagTP6RWnZz ZVQXf76dSt4UiD2PbaCKLI+CReSSyPty+jXYS6ArzXLwrgSPzP/r8MEgThCoKKTuiQw/ 04BFDaLwwsaVSYThN5g16bFY5/PS/OIYwZfdUBD2BYErgyyZ8ggSf8tq015T0ip1SWBQ Omo1uOSw12AbGXXftVYC1I+XwT317XhWNo/6KYkbQbviIpG/Psawl0OLE0Dx5Fs2UEvg ZfOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=i5YipCeS; 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=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o11-20020a170902d4cb00b00158b6f04ad1si13850373plg.192.2022.05.09.05.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 05:40:26 -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=@ibm.com header.s=pp1 header.b=i5YipCeS; 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=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7862E18576C; Mon, 9 May 2022 05:15:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233944AbiEIMTC (ORCPT + 99 others); Mon, 9 May 2022 08:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233934AbiEIMSy (ORCPT ); Mon, 9 May 2022 08:18:54 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D73C24E03A; Mon, 9 May 2022 05:15:00 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 249BrDfb040214; Mon, 9 May 2022 12:14:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=mFwQ6X5ROpPbQQvS6IJn0oLRB0j4XJ42BtNeuwsniXc=; b=i5YipCeSSsRdAH8k+QNJ+j59oyMtbdoQS4+eIhG4/7dVDJBgMkqSIQzzMfDkwlsPIiq0 muFO0ZW6morKq8wYUKzFrVEohkgbVGO/f54wJC2ZOIY6PDnW+KrVccdF08rOHI5vO442 B0akLZPrnl5zBWvUkSWzwiF+x18GDAVcAv8oO5uegXuYELfZcRRq+H9IPH0bcmNONtHv Ra8N8zQvFKjB3OMEz+vYBc8NRLplA7veoHGLDzdjy2eAl7SF/yiaz3+itqXi7Yz4ukJS jB0qo45Pk6MALDO9fcoZpLnfBaLprHgyPYJRH+22qSeBga3dfk8cQ1HfCouE5vRl5+4D zg== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fy2frget4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 May 2022 12:14:09 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 249C3A31030155; Mon, 9 May 2022 12:14:08 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma04ams.nl.ibm.com with ESMTP id 3fwgd8tgux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 May 2022 12:14:07 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 249CE5I045678890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 May 2022 12:14:05 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7C677A4053; Mon, 9 May 2022 12:14:05 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ECA35A4051; Mon, 9 May 2022 12:14:04 +0000 (GMT) Received: from sig-9-145-22-239.uk.ibm.com (unknown [9.145.22.239]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 9 May 2022 12:14:04 +0000 (GMT) Message-ID: <11a1cdd869a3153a39ef9c07ca67817f9ea512fe.camel@linux.ibm.com> Subject: Re: [RFC v2 31/39] sound: add HAS_IOPORT dependencies From: Niklas Schnelle To: Takashi Iwai , Arnd Bergmann Cc: Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-arch , linux-pci , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND" Date: Mon, 09 May 2022 14:14:04 +0200 In-Reply-To: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-57-schnelle@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: jdarINjh9VWb43QWZnBSEKM0W944MEzf X-Proofpoint-ORIG-GUID: jdarINjh9VWb43QWZnBSEKM0W944MEzf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-09_03,2022-05-09_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 impostorscore=0 priorityscore=1501 adultscore=0 phishscore=0 mlxlogscore=727 spamscore=0 mlxscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205090069 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 2022-05-09 at 12:07 +0200, Takashi Iwai wrote: > 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 added this part recently I think even after your review so the fault is entirely mine. > > > > 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. Good, incorporating this now and it looks like this works. > > > 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. Same as above and thanks for spotting my mistake.