Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4612109iob; Sun, 8 May 2022 19:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQO3mz71VBpVyicOO9VuEctu+lQOshM1lJ/535W5WPTcwv2VZ+GQET/dLHlxXUwyjIZONk X-Received: by 2002:a17:902:8644:b0:153:9f01:2090 with SMTP id y4-20020a170902864400b001539f012090mr13799133plt.101.1652062313658; Sun, 08 May 2022 19:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652062313; cv=none; d=google.com; s=arc-20160816; b=hHlgV3zr4h9YYDEdwwH4BoCmYMS7AdquqmBQfSTxBmktKsBbMI5X8Ite44BSLYkxi5 d48mW2F9nqDcs5KHO/GCjOo1cGY/c0vq0Q/MoBL1M655noRvyta4j9IJDiSzu0RItYyS /xawVjUcXxgXfgQgtm3AFzGgISIf05kBrtGYhuv79Ao9xVLzWTxSnvh+tEKun70CTEQ9 MmkkbEf46TFMBoCZDs7D400EbS/0bv1t3tmy1spShUHyankTNyl5lTW+JmE+Yca+inJu vFfVMvDj3+uWR14bo5OJyXCzJeEp7I34YuqetgxywwDFe2a715hQEjWAxg10TknwSA6P pv2w== 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=C6uW/IcUsx8366ZBpYPMk5Rcm6Bgorvk0nukOZ2MZXQ=; b=AW3VZCPo/cfO4NmMS/h19YlqFKcN3zO0ywsopppw60Lrhp+f7zWMn4+aregirLxm3p m3SxuyUZD8DyQ9oYEqNF99NNWB0k8EeH8rkcFiNdi0V/tEtr9eyD6zPsEsUSbEXe4T0k gvaHkpgmVudYB0aP8zC1r7XumiHHpoWOIHAy/O7aqNuwkIKZ9d5X8EFB/yD+YDkkInZw 4kOg+/97DPZvEU1PPZuv4aesj2RNevsZ5J+vlDVi0/oB8BfCOEjeeNr5bpHooHiAw8rY fdo7YnFyZraWIZFJWjvsozzCciC4HBp601MqEoNnIs4GYF23eD1jFXTg8UPMz0VZWXJ6 yhAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXuJijrI; 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 127-20020a630985000000b003c165f21c0esi12441833pgj.571.2022.05.08.19.11.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:11:53 -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=NXuJijrI; 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 DB3343B2AF; Sun, 8 May 2022 19:11:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381652AbiEEQKL (ORCPT + 99 others); Thu, 5 May 2022 12:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242961AbiEEQKK (ORCPT ); Thu, 5 May 2022 12:10:10 -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 555285BE71; Thu, 5 May 2022 09:06:30 -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 E319761DBE; Thu, 5 May 2022 16:06:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE36AC385A8; Thu, 5 May 2022 16:06:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651766789; bh=HeJH7eF4ifDBiPTU4r/Co26qfblY+S0aMxiysioj064=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=NXuJijrIDHeyZ5qA542t4gNgVMPVJEulBUsSYQlWOi77cPNmXDZjLDfRsPFK/g/B1 /+au2UD/p4bh/ns+G4e7ax654TMkR94aOo46OjyfqPaMyr0YoqUxMmKDuaoeFgCWyj onBZpU+8UVKRQxMp18MK/UEqsE0xEZ/kqkedcHdN54tOnHOG05Cc/A5ERMWqufM3Cg 8laVInD24Cqa5cwzgivzj6ZTcCbk+QIHGMz0mzhxYNr6/Z42q5l7z7ZF5m5D5pdo4o DjZc1BE4jvc/4VD+5td9du3Nn7Kn7a5atB26Im2xGW/cwDjiabku2IJIMR6KqBrE30 7167R9bAtgLeg== Date: Thu, 5 May 2022 11:06:26 -0500 From: Bjorn Helgaas To: Arnd Bergmann 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" Subject: Re: [RFC v2 30/39] scsi: add HAS_IOPORT dependencies Message-ID: <20220505160626.GA492390@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, May 04, 2022 at 11:34:48PM +0200, Arnd Bergmann wrote: > 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 didn't really like CONFIG_LEGACY_PCI because it wasn't clearly defined.