Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1939433iob; Thu, 5 May 2022 11:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx41QRCrJUP+imGxhW1yECyf1yOBo24TFRvi45wXB1uN8FPF5oaM0bXnFPR+H03a9BcMmgr X-Received: by 2002:aa7:88c2:0:b0:510:543c:3f51 with SMTP id k2-20020aa788c2000000b00510543c3f51mr6187482pff.2.1651774788502; Thu, 05 May 2022 11:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651774788; cv=none; d=google.com; s=arc-20160816; b=ETEUu0loCnQEHpmBY/5VtnJ5UTDSqwBvXS3hvOvAgspGapXi3GQHlIF/wrUmBPx7yW 2xBUYH3V2KP/cbp/mlmTZdVZ8aal4KZnr7gOx7hAf6gylVUZ5xhVKYUfSqUKWNYaM92h y/aqaKK6RcVwtgBGR4ok+JfvR/jfrmnbYw+f1C+U2AO0Dogm0Cdv4INvH/qn1thoHQZg 9URto1/5uoGipfUMTa6wctaoqQQtdzGbyqcT4oAq0mOpLbfzg4Xk17uUNFK6YekYm8Ym dcakvX0u99hleiTG0Y6yUO/dtwAG30mPhpmH1dKc2oHQwnCWXYPM0cGw0QmXL6NSHzTW o2aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=AsbIDVYXxr3f80PlsdnbNe5O2zULREuk1tH1i6gtHpE=; b=duqJ7c6zVraLFz0gGzBxsEUKNYlnPNG/RCCVLGOlFBs0oBBaxm0FjzXmRKGqub8nIv NFO8l7Tomf1JNHn9I0LDNmBjMnEr80fYF57ms1GIY6jaM8wVjrAWTecIj5osjrSrtD4q bw4AjCSTpOwm+mIV/9H52yWU2atfqbJhMMArw+qJnhxx5LVvbpBxHvUI9p89yb+6gLk0 9KEeK4r1U9MOEwXGaMxU61YZ1Nvad3hrNPubo0zjm6yb0zy8/E6XyDbaOu5DGU9oMFZW hAxqpgfr5ADUjYr82Xy3bbuwF7CP0MbFI2SDe7NZuXco2Hh/GmeTkPMld5H/Qeu/SBwj ysvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F4yBn9jw; 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 h11-20020a63b00b000000b003c278478735si2403566pgf.438.2022.05.05.11.19.30; Thu, 05 May 2022 11:19:48 -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=F4yBn9jw; 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 S1378299AbiEDUqS (ORCPT + 99 others); Wed, 4 May 2022 16:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378345AbiEDUqN (ORCPT ); Wed, 4 May 2022 16:46:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C37517CE; Wed, 4 May 2022 13:42:34 -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 3EB4F618B4; Wed, 4 May 2022 20:42:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5766DC385A4; Wed, 4 May 2022 20:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651696953; bh=VHSa4GEXYgtRjGmNPuVVqJEuTANBA7a7IX32GVjUX2M=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=F4yBn9jwctPNtQdKRFs/6nHnRsWwaxCScPBz+U95zYo6dgmIwNFZAmvmX7H6MWZbj aGvZ1pgPWtQsqSGILPdOAZleOpFkfWLo+wv8aaE7UKRDq8McmpziK3S6XGv6ImLaK4 tEbzS+Iqg48BRS5nCKv0CRIqemfOXDaxRKVdoh7wbAWgrM7H5wsoZWdOyazV+SDgZl MRPe3TPPKyrBXLf6V4al432Bt3TcUbNMCS+JgbLjeqSTWqAHMWVMtiLEJoJTIzNs2b M4jQ+193ZgSgs/uLc4iz06CJPMzzGshZFYU6awy5fB7XKK9MOgLm/w0EQM0sW9ZJm+ t+6uIbwIIQGXg== Date: Wed, 4 May 2022 15:42:31 -0500 From: Bjorn Helgaas To: Niklas Schnelle Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , "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" Subject: Re: [RFC v2 30/39] scsi: add HAS_IOPORT dependencies Message-ID: <20220504204231.GA463295@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429135108.2781579-54-schnelle@linux.ibm.com> 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 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. > diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig > config SCSI_IPS > tristate "IBM ServeRAID support" > - depends on PCI && SCSI > + depends on PCI && HAS_IOPORT && SCSI https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/scsi/ips.c?id=v5.17#n6867 > diff --git a/drivers/scsi/aic7xxx/Kconfig.aic7xxx b/drivers/scsi/aic7xxx/Kconfig.aic7xxx > config SCSI_AIC94XX > tristate "Adaptec AIC94xx SAS/SATA support" > - depends on PCI > + depends on PCI && HAS_IOPORT > select SCSI_SAS_LIBSAS > select FW_LOADER > help https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/scsi/aic7xxx/aic79xx_osm_pci.c?id=v5.17#n304 > diff --git a/drivers/scsi/megaraid/Kconfig.megaraid b/drivers/scsi/megaraid/Kconfig.megaraid > config MEGARAID_LEGACY > tristate "LSI Logic Legacy MegaRAID Driver" > - depends on PCI && SCSI > + depends on PCI && HAS_IOPORT && SCSI https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/scsi/megaraid.c?id=v5.17#n4190 > diff --git a/drivers/scsi/mvsas/Kconfig b/drivers/scsi/mvsas/Kconfig > config SCSI_MVSAS > tristate "Marvell 88SE64XX/88SE94XX SAS/SATA support" > - depends on PCI > + depends on PCI && HAS_IOPORT > select SCSI_SAS_LIBSAS > select FW_LOADER > help This turns off all MVSAS support, but apparently only mv_64xx.c uses I/O ports: git grep -E "\<(in|out)[bwl]\>" drivers/scsi/mvsas git grep -E "\" drivers/scsi/mvsas It doesn't look like the Makefile is currently set up to build mv_64xx.c separately. Bjorn