Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1766024iob; Thu, 5 May 2022 07:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7V+gYkmNegoJ2h6msPog+9NucLC/dHQWjSmcapIXJjjGlaerrMb6jtzurhLExbqvShl9v X-Received: by 2002:a05:6638:1404:b0:32b:1eca:996 with SMTP id k4-20020a056638140400b0032b1eca0996mr12020025jad.297.1651762324970; Thu, 05 May 2022 07:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651762324; cv=none; d=google.com; s=arc-20160816; b=jc24JMZnLF1yD9bEoYlHZda3M4Fl0N0h3YCHigoBTasP8eKJxlG+p9UuFX65ccIIIB yOaVIWH2gz1w0u2atTAt8HMHsNR9ePSo495x5fm6GY3LhBtNQAaG3pDHPdJrDGnhfcrI xhPUkgB22wHAfd3slenKryEJWIRWJ7bOTE6MY27x0J0j9rWqBLXeoSHmANNjkjZXt1Iq Ud33PpSPNb6qsh3s1Elca24iB4BcP+5fXLsxPF/9euJv2KuM6NqsqRSXLuUVb6ycgRWN sG9uGfUvz+p/dL+/+weaCN1n8BeeiE8EliICXxCKHRkVVKAOdh3O6xSJD/TKY8TDhrSS bj0g== 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=fOiScK9b1MHAhKfY/t4YyWSV5VKkuFdhN+F114EyO+w=; b=e9JcZvp5T2ezQno8etiJUvSFkQevxm/h2yQevSWIzEKA0LlKKRkwQVGWQVTs6DLWHB I1gbcbz7bFOohzpJrCmKnxmvVCB5TbPj17cuUUWq/R3Jpvf11BOkpMH2IEvBTZ8ziCRb uh/zjpd1DJJN7/JZfoYQ+gBotk2d/qe7N/wqgFa9ClQlpbBubN/WbPOL7Hortfph2SSD hwjpNC85/nAltV+jYarnUaJksDKy+Kr+HKFn91iUkNiiMrMDiEbyKIr6rsTC76b4YKgS zMU6gRVdm8LUqk1r/6iQR7F+3eSg5vtXeUVE2ZRjEpGbPLqO31/WgnbSfRdn7s3PLoXK XFxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jT9J069r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a05660226cd00b006525d83ea3dsi1352887ioo.5.2022.05.05.07.51.48; Thu, 05 May 2022 07:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jT9J069r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238405AbiEDVju (ORCPT + 99 others); Wed, 4 May 2022 17:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379237AbiEDVjN (ORCPT ); Wed, 4 May 2022 17:39:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25FF052E62; Wed, 4 May 2022 14:35:09 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5327161A94; Wed, 4 May 2022 21:35:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD914C385B3; Wed, 4 May 2022 21:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651700107; bh=Ag6z4UsMQi45DT6LEixpyNi3v4/oCDHforErc0WKpkg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jT9J069rPUQBqanuRgdVPUVzvqR76Z3AXmb1hQ28qWhElNA1xUTHs3Wg7OhG9knRF nYE2UWXrL/ob801JQe8XQgqI1Kr5RsyzXhwyetM1ZZi0rIbPnGzwearHlnR6Qfquff tmzjarVjC3PqWuwS80M3Fd5InHZ68Hp3bwCF1etSdQ0MSnbYYriGQX+NLsE9AfqkdH 7/EKJkbQAEr+iIvA+6iLOrTHR9aqBtmxjAtueAdO8QW1Z6FnqbYc4rxI0pUpNJ5tRE JvlHkOYjKrKaoI1CEiBVPrDKFlt4LVaM2/XCtNdPH7opp1rdAmnJW6mfXH2/uOHTQ2 cu2b9KpQuuzpw== Received: by mail-wr1-f49.google.com with SMTP id e2so3664216wrh.7; Wed, 04 May 2022 14:35:07 -0700 (PDT) X-Gm-Message-State: AOAM530pBHbnZSOSTyUCza1fPiWVN2lBZNR4lkAY/EgAC4I4P/05qMG+ frBHMNGA7bvWwmagJhQ0r1SM6Wvq+3RFipji/AE= X-Received: by 2002:adf:e106:0:b0:20a:b31b:213d with SMTP id t6-20020adfe106000000b0020ab31b213dmr17567886wrz.219.1651700105974; Wed, 04 May 2022 14:35:05 -0700 (PDT) MIME-Version: 1.0 References: <20220429135108.2781579-54-schnelle@linux.ibm.com> <20220504204231.GA463295@bhelgaas> In-Reply-To: <20220504204231.GA463295@bhelgaas> From: Arnd Bergmann Date: Wed, 4 May 2022 23:34:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v2 30/39] scsi: add HAS_IOPORT dependencies To: Bjorn Helgaas Cc: Niklas Schnelle , Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-arch , linux-pci , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke , Kashyap Desai , Sumit Saxena , Shivasharan S , Nilesh Javali , "supporter:QLOGIC QLA2XXX FC-SCSI DRIVER" , "open list:SCSI SUBSYSTEM" , "open list:MEGARAID SCSI/SAS DRIVERS" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, May 4, 2022 at 10:42 PM Bjorn Helgaas wrote: > > On Fri, Apr 29, 2022 at 03:50:51PM +0200, Niklas Schnelle wrote: > > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > > not being declared. We thus need to add HAS_IOPORT as dependency for > > those drivers using them. > > Some of these drivers support devices using either I/O ports or MMIO. > Adding the HAS_IOPORT dependency means MMIO devices that *could* work > on systems without I/O ports, won't work. > > Even the MMIO-only devices are probably old and not of much interest. > But if you want to disable them even though they *could* work, I think > that's worth mentioning in the commit log. I think this would again make more sense with the original CONFIG_LEGACY_PCI conditional than the generic HAS_IOPORT one. I don't remember what the objection was to that symbol. I think the presence of inb()/outb() is a good indication that a driver is for obsolete hardware, though of course there are important exceptions to this that instead need to have the conditional in the code itself (8250, vga, ipmi, ...) Arnd