Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4507877imw; Tue, 19 Jul 2022 07:56:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uq24B7Joc6cPwcmT8EnJC1RIZoJWioVm3F4R84WGQ9eBnIFmkQfW7yTsfyRPOUutDTXRmI X-Received: by 2002:a05:6870:e746:b0:10c:2d87:848d with SMTP id t6-20020a056870e74600b0010c2d87848dmr19931417oak.177.1658242572870; Tue, 19 Jul 2022 07:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658242572; cv=none; d=google.com; s=arc-20160816; b=erAO07q5ppdrF1MIqJrYqbyxBLScLwCGUs1xxMCmTWSuZPCCFCK0igbz4g+b4FY/yA MueEoWGMZUmKg2ZY8qNNElXe5lEu2iuCS9KNN9plyUlvkXE9wQREdRwYpu+ngxMOF84B 7uQjgoonQJ5uqV/BB/6HzmtrsIVa5hZVnvFnAE6keM67aw1uaRTuNVzh9zvMqPbQVqxR 9uzSJGXcrbkjBitZq/j76psWNYuLaFTONdQguZWnYheHNEImfeX65qZFlQ7KjU7pkuIw UQCmowtSE3r3vwIFf/QdYJvRAx5cohwPwwk0FmSMl4fydhMaGmIa6g+inDJu9O52fjlE Y0Cg== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v7ApJUcYrbQYxXLdTDul4tFGO2owbVpH4roW1vWfk+I=; b=Sqmzc7JkdnBongEL9Zp6DDHm28MjpP4ntaBbWyXMvrYrs3V28sirl+X2HflMDDZHgl E7H1pw4U8b64bELg7adtNyKGvz+RG0F/a3hNXP16REVQr8nZp4BvSZbPZ2D6nVHn2x04 ix1A1GC0QW6Cw3mjuIXFZWSYcGSUZRkIZOgVihs5y9SO4w9gX3OvqXZY+spAQESV1/Fe LV6ddZaJlrwdQN8r6RTEMdd+JDkPsEjCbJnUDlx+PQ/pz2esX9Q1BUv42wurELFCPNDk nFQIb8jEmvigkWmdOYzFrsgVZqObdqIyx8FAYTX0UhNgIRNpRmKeiIJBf/Dx5vk1JL9i NFlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LgS73Tlu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a9d57c7000000b00617fe6c1057si5776983oti.252.2022.07.19.07.55.58; Tue, 19 Jul 2022 07:56:12 -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=@infradead.org header.s=bombadil.20210309 header.b=LgS73Tlu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239032AbiGSOiP (ORCPT + 99 others); Tue, 19 Jul 2022 10:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238976AbiGSOiD (ORCPT ); Tue, 19 Jul 2022 10:38:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8FE2DC4; Tue, 19 Jul 2022 07:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=v7ApJUcYrbQYxXLdTDul4tFGO2owbVpH4roW1vWfk+I=; b=LgS73TluTSX4nU4MxKQ/ZV4PAV PlRFkAb+WHnXppuvgJdWUfILCGdSBiD/8sosUgZxv3OoEznIZTo1n4UUep67gqWlUzbYLVq9jjfcN ujDSL0VI4ebRBlAvVCJW0NP6x+dzSYulY0boTPJ0g0MdKhh6ENY96j9zXGMvixRig1p6O8urUVbNy YHl9yeA5MfC8vaNih/6K8K7sCdq57EHTsy892QI+slmXdINHCCAVn7oO5mDhTr2rklheoGF5h3KT7 lEtevR73xKermtlQTHLaAOdGVrIScLDum5hOTCOSStgWRBILs95qkfpIc4MuWLLMoe0/17drmARNJ 2OoMZqLg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDoHG-009gW7-1e; Tue, 19 Jul 2022 14:32:46 +0000 Date: Tue, 19 Jul 2022 07:32:46 -0700 From: Christoph Hellwig To: Stafford Horne Cc: Arnd Bergmann , Christoph Hellwig , LKML , Catalin Marinas , Will Deacon , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Richard Weinberger , Anton Ivanov , Johannes Berg , Bjorn Helgaas , Linux ARM , linux-csky@vger.kernel.org, linux-riscv , linux-um , linux-pci , linux-arch Subject: Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it Message-ID: References: <20220717033453.2896843-1-shorne@gmail.com> <20220717033453.2896843-3-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE 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 Tue, Jul 19, 2022 at 10:05:46PM +0900, Stafford Horne wrote: > > > Or we could try to keep the generic definition in a global header > > > like linux/isa-dma.h. > > > > Perhaps option 3 makes the whole patch the most clean. > > And this is the result, I will get this into the series and create a v4 tomorrow > if no issues. Yes, this is what I tried to suggest earlier and it looks fine to me. If we want to overengineer it we could add a ISA_DMA_BRIDGE_BUGGY Kconfig symbol and select it from x86.