Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10772187rwr; Fri, 12 May 2023 12:46:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CS00GmeBXDpQEJDeH6ejZpMro0eOUWEa1euuZRLyhvW7uzJLR05FTHPqhcaDYrJ37vCNj X-Received: by 2002:a05:6a20:1584:b0:101:e4f3:5336 with SMTP id h4-20020a056a20158400b00101e4f35336mr16338302pzj.27.1683920790745; Fri, 12 May 2023 12:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683920790; cv=none; d=google.com; s=arc-20160816; b=c/jhr2xB39QqO4uZrbxKZuP2BBV4dolD8h2tJNI6B8fjNHB2JqYYsyYK2Jw6aUrpdd LySwLYBlRlrJRWkjHif8ot+9nEICUitUHb5L0xdZ4jBRNIVmf9Ma/p5VeU+iiaHS1oNp qfiBuwmgrcqfs5Kup8OCtC6kMBeg89PfHZHTiNc1QAGxDNOV8e9fnwtpt26VzZrNCwbu uGc4IOIma4H+eh8h/XtTJj34o8pzDpt7afcTofvxopsP6kjkWOZyN68ILMTTFSJ6W3uA ofeTskuatduCQiaDL2gBaMCYkoO8R0EVYKjdTv1cUV9zkCc6hoKuAezFy7pF9XfzFUeb ldZg== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=PmuvzvafNDC9JFWZVOXxnySDEkZ3hiPRVoJeeFUPe50=; b=oA8iWdoGcAVHiWNlURTO0qZIYsC/Kpa/IXWajTvKsRUY1ePtWZrZe9fhisdtv2Rf8e 5sHUpqNvUe6OSZzMOfrp11aidWsnpKDAb3D64YwcWZuE1V3YTVKGzWGymUOXRI89Xqkd iJR5oZ68v7jSwzSS2P81FOX42ZVaRD4NKTA97zEABSaHqJ3V0ApAGX8plXdpKoPEqrN5 nhJYqoRcBgile+ghmNJlXY6FC6U3HVDu3MK8bUM2ysidl/EnHeFEC1y3M4tYd+7FxTR/ PPTz2W0yvr3KU++e4IJ0LLDhKX65rAJ+QtsOEKALEv+WpMgw3ssP9OAgGb9dM2tUGltE 1dzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vb66SUhb; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a17090a94c400b00250a4d72bc9si3724609pjw.108.2023.05.12.12.46.15; Fri, 12 May 2023 12:46:30 -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=@kernel.org header.s=k20201202 header.b=Vb66SUhb; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238461AbjELTcx (ORCPT + 99 others); Fri, 12 May 2023 15:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238113AbjELTcv (ORCPT ); Fri, 12 May 2023 15:32:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB5F78A76; Fri, 12 May 2023 12:32:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 639EB65851; Fri, 12 May 2023 19:32:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C6BDC433EF; Fri, 12 May 2023 19:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683919962; bh=ye+trGBgmUY14kZ8FLPEBVppgLLuN+PjVTfIXlSk+Ts=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Vb66SUhbONwl1eI0v7lcAbMQioZhxO87bACLRpIPc2hK4H7jAC4i3vLobzpSg1CAR M5wejopRJ9sATdxxtH6grjDivscH2IEtNvxQETuPH5RmiIJGhk+yuOy1QLHTVWb17z y0xc5bIyvq/UH4qx4SVzDT396kVDYLqEymrTSf5+z+SCik05yksneY7IJICHg2foAZ zuZa4KGU15BFDoXoDP5wNjVDJTOq1EZy7y3jWm/JwhsH8ZrGY0zBdJRoQQuCPBXUac rVfoxs092L37CgzsOpm1wJtQVmRtPdwFF0uw6+hhnC481R055CUe33ku5XabGtfibw pzwA8/VVKTacQ== Date: Fri, 12 May 2023 14:32:40 -0500 From: Bjorn Helgaas To: Thippeswamy Havalige Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski@linaro.org, bhelgaas@google.com, michals@xilinx.com, robh+dt@kernel.org, nagaradhesh.yeleswarapu@amd.com, bharat.kumar.gogada@amd.com, lorenzo.pieralisi@arm.com Subject: Re: [PATCH v2 3/3] PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512062725.1208385-4-thippeswamy.havalige@amd.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, May 12, 2023 at 11:57:25AM +0530, Thippeswamy Havalige wrote: > Add support for Xilinx XDMA Soft IP core as Root Port. > ... > +#include > +#include The trend seems to be to alphabetize the system includes above. > +#include "pcie-xilinx-common.h" > + > +#include "../pci.h" Put the pcie-xilinx-common.h include here, as you did for pcie-xilinx-cpm.c: #include #include "../pci.h" #include "pcie-xilinx-common.h" pcie-xilinx.c has a very similar list of register definitions, which makes me wonder why it can't share pcie-xilinx-common.h as well. Obviously it would take a bit of rework since it uses BIT(x) instead of just "x". But you hide the "BIT()" inside IMR(), which is arguably slightly obscure since the #define value is not a register mask: > +#define IMR(x) BIT(XILINX_PCIE_INTR_ ##x) I don't really care either way, but it seems like a possibly needless difference. Bjorn