Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10601009rwr; Fri, 12 May 2023 10:10:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76anaYxFxLRw474N7foHlB8YMdVRN7GHkWVY+yshzs+KyC6Z4hNyJsWQjPcnE1XkcSR6xy X-Received: by 2002:a05:6a20:9184:b0:104:35ec:c24a with SMTP id v4-20020a056a20918400b0010435ecc24amr5954634pzd.24.1683911425247; Fri, 12 May 2023 10:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683911425; cv=none; d=google.com; s=arc-20160816; b=MAMP1W7FPxczACXFk3PVnCG3Mei+5/tWEZ2uNp/R6F/V0m58fnK2LJS5P0wbHSxx42 lR6gtlmbnKN6D9LUhPt6jG7O/wE2ZYHqVIGWfDAgxeNQZzTEsuM0Q61gC3+q0pJYVIb1 IWFTuxDs4rFT19kDCv0RVc+cdNUrsfOW7arkAV1gWRRwvo+tfgUSQl3BuvmBgTMbqvUk NtQCxsP0OURp4Xgbd29ywZeOHBrIqi3/+TPVdEHib4AnDr63NBEI8VhQmSz/81rMSU/J SbKWhbRL+smxqA+uNXeCl9UqYFCJ3lXIs51BOYXCOg7O/xCB2OSpKDQnuuug6yQOGjqn cqXQ== 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=cphvlB/628lorDH+k13PlFosm4i9XrHpsTybKm9EV6k=; b=rAyV1N32ztWrnKQElcNLQxfgt2wGemSb0QxVTND6DcBIJdLCcItPDZyWf+lsj/gABs sN+wEqYAmD4wCD2Rj4H6+6vUQFwgyXUVd6sF5AWKbmnPN5x5dR7sI3y82MojUG0sfZgd YsFaAd366XIGy2qzkR5zdFM5JamYxloG+hL9y1AlOfAImyGOMInVBdNNc9wIK+EOEiGd B0dDEzSdUUQCagUxOI6iPzLw+FdIltSkp434Su/7c4pcOhRVeRtdg+jMBH8zMHzzpZp8 bZLsYp9teF4zoJVe7LAN5dSI8Kksaq/aiQb55cCpNj7/N3CxiuIGKOPza5hMssO5B3Xi oBrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N9jPyD71; 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 x190-20020a6386c7000000b005303a78b41asi9515958pgd.75.2023.05.12.10.10.12; Fri, 12 May 2023 10:10: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=@kernel.org header.s=k20201202 header.b=N9jPyD71; 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 S237380AbjELQra (ORCPT + 99 others); Fri, 12 May 2023 12:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbjELQrZ (ORCPT ); Fri, 12 May 2023 12:47:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1439ED6; Fri, 12 May 2023 09:47:24 -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 7863663BBE; Fri, 12 May 2023 16:47:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94B4DC4339B; Fri, 12 May 2023 16:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683910043; bh=KlgnmU4xeqwpanlDerWw2/PC991uOcdGI+fGV9j4OTY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=N9jPyD71TiXbKqopq9EEb7oCcX5tIofr695ll+49fTMNjlJZxK3MDjwQa4IrwQur+ qf69CQLqDuQv/By+iSPtWlnuDcT5tYSVS/aF6lexCfotl73qEdbUWKyWU88f/cdkfW /UaGSm7HiTEuxMXGn0K5trrNy9RhlWoP+rwEk5YKh+mHgrCPkKlA/IJs80DbcNiOir rRLxq8vA29b1fzyivSuXKO2gWFIFdF6gTTeEmvyqfCNuJAbg68n9jSwik9hkpiwCaX 3o6V42MTdNEouECEfzyOOo0W7+OEnMaLG4ZPdIUSbdkvIlXDjNhLWA4JE68VnbsS9Z QaPlBzoq4lkug== Date: Fri, 12 May 2023 11:47:21 -0500 From: Bjorn Helgaas To: Achal Verma Cc: Tom Joseph , Lorenzo Pieralisi , Krzysztof Wilczy_ski , Rob Herring , Bjorn Helgaas , Catalin Marinas , Will Deacon , Bjorn Andersson , Arnd Bergmann , Krzysztof Kozlowski , Geert Uytterhoeven , Dmitry Baryshkov , "N_colas F . R . A . Prado" , Mark Brown , Rafa_ Mi_ecki , Vignesh Raghavendra , Nishanth Menon , Milind Parab , Swapnil Kashinath Jakhade , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 2/3] PCIE: j721e: Add support to build pci-j721e as a kernel module Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512070510.1873171-3-a-verma1@ti.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 Follow previous subject line style (specifically, "PCI" not "PCIE"): 053ca37c87af ("PCI: j721e: Initialize pcie->cdns_pcie before using it") 19e863828acf ("PCI: j721e: Drop redundant struct device *") 72de208f2bda ("PCI: j721e: Drop pointless of_device_get_match_data() cast") 496bb18483cc ("PCI: j721e: Fix j721e_pcie_probe() error path") c8a375a8e15a ("PCI: j721e: Add PCIe support for AM64") f1de58802f0f ("PCI: j721e: Add PCIe support for J7200") On Fri, May 12, 2023 at 12:35:09PM +0530, Achal Verma wrote: > pci-j721e driver can be build as a in-built kernel driver only, which is not required as it > is not used during boot time in most cases. This change add support to build pci-j721e as a > kernel loadable module. > J721e PCIe controller can work in both host mode and end-point mode. > In order to enable host mode driver and endpoint driver to be built independently either > as built-in or kernel module, the pcie-j721e.c driver is refactored into following components: > > 1) pci-j721e-host.c : Driver used when PCIe controller has to be initialized in host mode. > 2) pci-j721e-ep.c : Driver used when PCIe controller has to be initialized in endpoint mode. > 3) pci-j721e.c : contains common code required in both modes. Wrap all to fit in 75 columns, add blank lines between paragraphs. Bjorn