Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp167085iob; Mon, 2 May 2022 16:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylkA3kbFvtrpevvexC6ERcBofidz1dmA/yQSFmVpOs0PjaXdrIEMbC+wNwoMrBC7Barg+E X-Received: by 2002:a17:90a:6d96:b0:1c9:c1de:ef2f with SMTP id a22-20020a17090a6d9600b001c9c1deef2fmr1571700pjk.210.1651532812331; Mon, 02 May 2022 16:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651532812; cv=none; d=google.com; s=arc-20160816; b=IEd2W1AqHYjjIwTtskDLpCfv3IdEa9HGTpX2NsU9pg4zkUeMwMPXLZMrnHKNKwKVDM rIh4cU0YCz36xSMnJqgoEgRBTFrQlzfnm19JHTOVTkCpWEg0YITNlEZwEn9O8KIb040g xQVr4JDffvau3q2nAZePwaH8xEhK3nGhmF22K2Hm8lOC1vj7SlSsQa5LdEW9/ImkKym/ uyUUqq4iLIga0RTeChu/Jm3JeQHdCf7uP4tK2ySaKbR0Dvh7GGCnbPvUVOXblU2BtEiy gSrUSBmR1BlZEfa4jw31cY7mnLtNXDn41H031zF51rOca2/QG8FhWV/jqJpfg7GPDgQ/ BB2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=amAIUShuno7OQIRQxFj/uGwhMb3EDBtGcsk1d9qDVJM=; b=lrSHKyn4wporFcZJMkD0SmursRu6+Jc2MMhgl/DLB2U3y4rAnVEnQcEsPzhLtLc1gT B48GeVyuYKWXfmZB4vEsIE5/3/4bGSFtT22HQzAAz/dvLLo76lVViKUdbWtBaiWgEwIX 0VORjnKFdbaRM90Y57Mb9LkShssxNfGIRp9A+f0PCAXRaKoG5YcMb1eMrdR7GtLLp2Ss pmqB26A4X9pedFtysu6BCLpy3FlIBAiKRQkqlb6rKjUfV3PphDAeopVOy8jOa9hc2XqG e5Jlna1ZWPJi0QKccSmO9zvyg/qFd13TewSFVISsT5J+9pweAggGLf0VXOE3iara1YH+ d/jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pi19-20020a17090b1e5300b001d92f594d3bsi639272pjb.86.2022.05.02.16.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A186D2E9F4; Mon, 2 May 2022 16:06:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385287AbiEBNYr (ORCPT + 99 others); Mon, 2 May 2022 09:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235673AbiEBNYh (ORCPT ); Mon, 2 May 2022 09:24:37 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12575645B; Mon, 2 May 2022 06:21:07 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 54E9C92009C; Mon, 2 May 2022 15:21:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 50E1992009B; Mon, 2 May 2022 14:21:06 +0100 (BST) Date: Mon, 2 May 2022 14:21:06 +0100 (BST) From: "Maciej W. Rozycki" To: William Breathitt Gray cc: Niklas Schnelle , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" Subject: Re: [RFC v2 10/39] gpio: add HAS_IOPORT dependencies In-Reply-To: Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-19-schnelle@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 Fri, 29 Apr 2022, William Breathitt Gray wrote: > > Good question. As far as I can see most (all?) of these have "select > > ISA_BUS_API" which is "def_bool ISA". Now "config ISA" seems to > > currently be repeated in architectures and doesn't have an explicit > > HAS_IOPORT dependency (it maybe should have one). But it does only make > > sense on architectures with HAS_IOPORT set. > > There is such a thing as ISA DMA, but you'll still need to initialize > the device via the IO Port bus first, so perhaps setting HAS_IOPORT for > "config ISA" is the right thing to do: all ISA devices are expected to > communicate in some way via ioport. Strictly speaking you can make an ISA device that only does MMIO (and I believe in the early PC days there used to be ISA memory expansion cards along with the EMS standard) which is also why the host memory area in the 15-16MiB range, the top 1MiB addressable on 16-bit ISA, can be excluded from decoding to DRAM and accesses made there forwarded to ISA in I believe all chipsets that provide actual ISA bus circuitry (rather than just a degenerate form like LPC). That's an exception rather than the rule though, nearly all ISA devices do decode in the port I/O space. After all I/O is what the port I/O address space has been invented for. FWIW, Maciej