From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD66DCCA481 for ; Tue, 19 Jul 2022 14:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239281AbiGSOiO (ORCPT ); Tue, 19 Jul 2022 10:38:14 -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 Precedence: bulk List-ID: X-Mailing-List: linux-pci@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.