Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5476440imw; Wed, 20 Jul 2022 06:32:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uaiqhksfyO7edXsUjvfv+knC9BzM6ABbyVCrSDryk/+xZgl7usjpHxufifObSTFL+rQtjz X-Received: by 2002:a05:6402:5412:b0:435:5997:ccb5 with SMTP id ev18-20020a056402541200b004355997ccb5mr49078234edb.167.1658323952081; Wed, 20 Jul 2022 06:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658323952; cv=none; d=google.com; s=arc-20160816; b=RCyqhEgKd9WlTjToYY6KhtZnHIu6Dlagb1aiRH8bCr0deVdPyJBZQUY77PJ0s/WzNG FaHEwvmOhrZV/sQp2e2ACnV1twKTNBAYbGBdWJoqu8rkJiRnjR6v5N6o7UAQTnJO9Cia 9kWIEp1iHxFbT9JiUn53A96I20gn+7PAn/HQCQs5KXrpJESH8CycG9nuyj5lI4kfry+i F+qg14j24neSQU6jFLs5gkNs+ZnTglBh9AAnYVO0wNglV/2q+0wqMp2j3Ei7mBEpENE7 sdI2xDbXlqtdq3NW5yob57FfffppYMV61kvrtUjj7E1UI85MvkHxwVGq1+453fYfGBFS OX/g== 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=qoHI37+zVu7Qu074WZ6GrbYXTMMNTsp7PXDFTwcZApQ=; b=cX5r2hbyTwNQtXHyyENR5f5QQEuShlE1qhl/96do6rHeSC5UvJtBivgGWnj7qobTYj fFb+07woN4jTQ5uT3J0m5Z06CITGrHAhG3kc6lPswmLH9+h05JbzATX4NpLEVLabaCqx Jnu8MrcRWDlkhJ6fg6xWmkSs2mMEfEWblyuvut7LpAVg/BvuMzsA3TLwnvUj6qsL6n/P o8fxOyZtRnn4gdH8TIlCNxYax6nTV55REJ0RsMjFhGgSw/slcPoujoerwkYIwO1R6lBO xiTSZMNhXI6khzTNcBl35+kk4D5ybmXxJ+zcBZU8oyoFqup4HhEVe/h2ZazjGOdt5koF Rddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="jkM4/VWC"; 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 qb42-20020a1709077eaa00b0072b44c95da6si32262161ejc.1002.2022.07.20.06.32.06; Wed, 20 Jul 2022 06:32:32 -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="jkM4/VWC"; 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 S232678AbiGTNYG (ORCPT + 99 others); Wed, 20 Jul 2022 09:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiGTNYF (ORCPT ); Wed, 20 Jul 2022 09:24:05 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB674C61F; Wed, 20 Jul 2022 06:24:04 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id c139so10187823pfc.2; Wed, 20 Jul 2022 06:24:04 -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=qoHI37+zVu7Qu074WZ6GrbYXTMMNTsp7PXDFTwcZApQ=; b=jkM4/VWCQKNXt88rlV4yLzjzVpZ+BxaEQxOTjHLxnMBf2F9hAAZVGP4bKTmw6kzeOK 8Cyl1AfrpG6hcI+aVH5qnXjIxtIyyA+xNJ3s32sC5cYdNK1CgzQ/MxEv8mEi9xX+j7HP YwEOneXyP3+K8VHIha8VQnBbTl9TERdXgtXVSpJf1RjT/YXyCTyxfSKbpztOv422F6m7 e4QPTSafxtGn8cok66RYZQLtTuI7JgfK4w/XpiM2K8hn2Scf0yaayaXkLIUXjtAXo/87 iN7nt65xBQek8y08NkCpEtaGg68iEYDek68eZzh2P/1RqII9orvyXNymLrWg2R3u8CV/ SyxA== 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=qoHI37+zVu7Qu074WZ6GrbYXTMMNTsp7PXDFTwcZApQ=; b=NKWsMKFo9C0HsZdVZ4OHAV6DUqBXHvQK6QkQnWCPY2srn5gnqtBxUKw8PbULNi2ftQ 0UB5KuogzqJ0aYBJAreSXLZEGUx3ojN5cldkbKZDRFmOsBFTS99u2I6zO8DGJdwU4nCf PK/EwHwiTJvbPl4d9jDXpJSqok6Jt1e9UKCYMZN7cGwponz8LVdLfAaE3Ta9mGlpZ5uT Pw/0I/RbJGR+GT317+0/3zXyvsKuVGW1o95XoH2JtYNW8PnDFgOgwWZQPCCJhMlSK8pH SCvGZN61Si7OTaThCkCfIDUVdAirXZwpfGT6OyTZTe52yQuGLlHUTlg3zX1AQNVV4FKS HbUA== X-Gm-Message-State: AJIora97N3cd4TAjcafeTif3NdEs3/QlCENL+XDhk0rej497m9gRl76F cbDLjBg5HDPOZgXB1t+Oy4Q= X-Received: by 2002:a63:464b:0:b0:419:78b4:dcf1 with SMTP id v11-20020a63464b000000b0041978b4dcf1mr32196171pgk.500.1658323444156; Wed, 20 Jul 2022 06:24:04 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id h3-20020a63c003000000b00416018b5bbbsm11870969pgg.76.2022.07.20.06.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 06:24:03 -0700 (PDT) Date: Wed, 20 Jul 2022 22:24:01 +0900 From: Stafford Horne To: David Laight 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> <874af766883a4c0da6759eff433ec6d6@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874af766883a4c0da6759eff433ec6d6@AcuMS.aculab.com> 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 03:09:35PM +0000, David Laight wrote: > From: Stafford Horne > > Sent: 19 July 2022 13:24 > > > > On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > > > On Tue, Jul 19, 2022 at 12:55 PM Stafford Horne wrote: > > Option 3: > > > > > 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. > > Isn't there a define that can be used inside an if? > So you could do: > if (!IS_CONFIG_X86_32 || !isa_dma_bridge_buggy) > disable_dma(); > (but I can't remember the name!) I think you probably mean: if (IS_ENABLED(CONFIG_X86_32) ... ) That could work too, but we still want to move the definition of isa_dma_bridge_buggy out of architectures and into the global header. I have gone with option 3 for now. -Stafford