Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5468139imw; Wed, 20 Jul 2022 06:23:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMcPLhb14ymSURHHw/35CjHR0ETW8UX0ZgcV0yJlv/VzPcjQd4vmMlVweUsljjyfuHM91p X-Received: by 2002:a17:907:a05b:b0:72b:33f9:f927 with SMTP id gz27-20020a170907a05b00b0072b33f9f927mr35684025ejc.707.1658323405251; Wed, 20 Jul 2022 06:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658323405; cv=none; d=google.com; s=arc-20160816; b=Hj3VNlD/84K4DIVkP/cdfWZ3k7mNrO6l+WJqtKKUIFjo4xLCPRNnHyAf5neIo30hUq zN3e9wRcJPO4S6aqvjBbK9CfvQre1pAiInMGi7iFA/V0lC6be9ODSJ1z9tJcBKPecrEx T23jxT3Vkl6ZBc+40c3pyQm2oLbMXFGYbrnEWpGXsypm0Qro0Ycp5MJ3WWL6GF6ux23t UWJif3/Gf1jT/IRNiGJZpvlecrvPQ8WZNePAvOz3a57rXOtxGjWesUrgYdmJhTAmWx0a 2vctWUWH4syDuk44R9jtgyAfUsFZCn2L6Ia2wdk1YhB+XRHMi5vIRou6cxHrkWk4AS86 AW1w== 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=kkXoj+qRduj7qTMK4wk6bSavIb9EMzMuh8HC0Q0nrLk=; b=0TfYzRCpuvsmyCq0sRrTunkqgdfFlEMWlv7AqbM/HX1YJTNgE0z47cWXI9UXeR3HvX Vf/sv23lO1abw2mROEC6P5HepYMBDbgoDvs47yj/11hGhD/OBIQF7qicceEmrW825Zq+ Cdsv7FzQDZMsbFsLTQuSNiV4EYAJov8Zz4Rs5Jj5yuAUKeQJco5bILPbsoMr5JwfJKVO gCqCkrgJVudzMRZR4aAEVED1hn1yIutTpoF4hRCkGVMNtXzeud6s5vb2PX4f2dQhB2UM sR0cJ/qXU4pYFM/QU06Z+BaV3bzUqJPdTG8WBt/Rm8r1/3vQif6cPyLHc4nqVbksdg69 FA+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jQ6dX9nC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji3-20020a170907980300b0072a92eb16b7si25607574ejc.5.2022.07.20.06.22.58; Wed, 20 Jul 2022 06:23:25 -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=@gmail.com header.s=20210112 header.b=jQ6dX9nC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbiGTNVX (ORCPT + 99 others); Wed, 20 Jul 2022 09:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiGTNVV (ORCPT ); Wed, 20 Jul 2022 09:21:21 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB9B3FA3F; Wed, 20 Jul 2022 06:21:20 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id r186so16379967pgr.2; Wed, 20 Jul 2022 06:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kkXoj+qRduj7qTMK4wk6bSavIb9EMzMuh8HC0Q0nrLk=; b=jQ6dX9nCD5D/DxdQW23LRNMfGlUAuEwuaP/RNO4rJfNhep1BaxhgsLIM1CqTfUp6uZ o0POAHKQW9W+z0rrbNRFWZNsJBLEOz8EBbaw73ers5GPX9FAQAu+r5jn/UvInipkgs4a 3gw7hNdLdwAd4/+g0ByAir2ePNPNzvMLKu/WJzP6ta+74Qd//pA3R1UKVJb31QoBs13c zQLttdc00sMa8sioPAXa+3AdnSntToir+4Vk27yBf2oTxpEaDNwSPk9Eiz/cDDtcFbB0 Wh8mg3Q9xNCMNal8hXslUMwO51OwFniWdUCX9oBF8FMgv2A942cpcCpxF2ll7GaxW6nH DLyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kkXoj+qRduj7qTMK4wk6bSavIb9EMzMuh8HC0Q0nrLk=; b=xvuF3IJbx1rPscfC2C6N1l+R8WA87DOUz8VA++Prox5CbgJWm/hhGSwlDSEIhU4sqj xBy1A1aWZ5Q0pO07jNdY71d4E+yMP0R5+6bmCRgw1/VGLNZJrvQyar+/W2KKUxeavUK9 Lh/qANnaxvAWg2LmoTBVXSo11EMjSab20pfR0mK5gZoinluKAVpWmmd88/XxpEOvblCi MzNatTZSYF2tn2DNZtvO2FIxM1CzD5ngOaQcC7BxgzL8yFF0tn7+0ddV27e0Futiq5YO cUXKYAf+A5Ne9HRxZwbcFNEtuhiUImwgWw7ChenKtJeBaPHhhwA243dXdkxBqhgipPk1 18iw== X-Gm-Message-State: AJIora+OzDSHLhTLpA45ekGiCbnrzg4hYZwKVDLwV8+gFkihx/s3p4Hb dVqN79xv/NAnB7nq12Ae8ss= X-Received: by 2002:a63:1f4b:0:b0:41a:daa:3068 with SMTP id q11-20020a631f4b000000b0041a0daa3068mr16866885pgm.330.1658323280131; Wed, 20 Jul 2022 06:21:20 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id q7-20020a17090311c700b0016cf195eb16sm6815532plh.185.2022.07.20.06.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 06:21:19 -0700 (PDT) Date: Wed, 20 Jul 2022 22:21:17 +0900 From: Stafford Horne To: Christoph Hellwig Cc: Arnd Bergmann , 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-3-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 07:32:46AM -0700, Christoph Hellwig wrote: > 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. I left it as X86_32, I feel it it would be more confusing/hard to maintain to add the extra level of indirection. -Stafford