Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3208957lqp; Tue, 26 Mar 2024 02:50:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtRl6Df3JVKZPlnJX1hTPr+Pd41HCYOwjUJSVMjwZ0yjL1E2kQWoanqgNi7TW+EbfyYfq9fOIVWSw9e6OxUBeN9S3NvHdnbwJbCQg12w== X-Google-Smtp-Source: AGHT+IGDq0SrOF6ixKKcsXOq8igISFGDOyRM7Ach+2K9CQ4c1jjoykI/j1L61sTG+xj42flZoxau X-Received: by 2002:a5b:42:0:b0:dcf:a52d:6134 with SMTP id e2-20020a5b0042000000b00dcfa52d6134mr554978ybp.26.1711446603045; Tue, 26 Mar 2024 02:50:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711446603; cv=pass; d=google.com; s=arc-20160816; b=dV3CDHZl/8vsR+hgsLYri66fbe/xpmdDoBX3TB8iPbMsW5Zf0El4paRdwOIuRsYwcN y3QUufaq87X85ERMV3D7V/98Q7OwUQVGXrf4fbMq+GgYiWABa9mUtgRiqAowEoB00RXv RGNWNOQFEX4ng9hV2jePgjRUNitp6MVGadCKJj6veDI3GJHcmh0zjj6vrxtjWQ7w0qkC oRNrI397jLBZh5pMp9FIcHx7D4rA98y6UTdKBIX/XBQ4nzP6l0vyys6IVTlXnE0C7wtN tXWE0BQPWeV96PQijOqOfLSaBK7Lzp0O2Zo9o/kI6Yfnz7Q72z5KOoWtfmvFJe8USGfV SAfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7SYLR7wDhNmMBzZ3DWej6xQVzAdjU9i/7rR/oxShyco=; fh=2mBbppXfHzB7ikPIe/yk0ALqwls/Qdcfx8k69++4hWg=; b=ZgTZP9FWqtLRvCWLkpEJObAilFTztruKTxeazDAd3yPjtdknXXC1BrUDAF4aHUQTBc uEa5iIItsm5r5E8M80uVq/wlfhWUl9fwuZbBErL+nGQUfBNULoze4pGrHAzMjfNTVa+x 9ghmFKOYRh/tHnTmo9uAoODOLnP9jbDwJq1V+cfWGfP3O4ZdfogO2pS5xIFb32PNT9s5 pPA6jKVMVSn7/skfQcZy1jabOXgtDgg5UFa5sjd1hzLkv9cCilouKmXA+68uxtSj4Syt mtuANL6fPELTKEF7l7wpcXUeatzbjd58AToxJrOMcnYK4rVlm5Z/0Gv7wi6Hf2/XWp/4 DKZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gRSkwRiD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e1-20020a0562140d8100b006960f798922si9776027qve.522.2024.03.26.02.50.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gRSkwRiD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 62A0F1C387FA for ; Tue, 26 Mar 2024 09:50:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3838535AC; Tue, 26 Mar 2024 09:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gRSkwRiD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E24604C635; Tue, 26 Mar 2024 09:49:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446589; cv=none; b=LWno5fMHewhPR4uMw21q63AK/7i79v9oG/ZzkSMrerQJlmvQDL8qhwhK/LccI/jmz2LLfbzgcCLUHt7lqi6CB1/ajNzh8MJwUuDs+S83EIEN7XE5yrfZKf83YEzYlqdY8yOU7+WY3Dh37bXKqlz4OG+DKC4WlmWsXu0JiIK6qXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446589; c=relaxed/simple; bh=1TOSFjtroPOGfQTkxCHWFvG9NRdrsRwmbCHxxp90yfI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rLEWrlfGxnL02O0PFqdPouEzOAk3JBKTNV6IA4c89loQaXNCjRO9F1EY4AZ0+u7lQfPrI8g6d+aQflgx0GWuloQrDXjvrCKNW9voy8+/Rs9jnTHsX05ILifPk7zU7UdF2/mycmPHtk8W/PRZnozvCRz2/S9nYKXzv/sy751jeeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gRSkwRiD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06753C433F1; Tue, 26 Mar 2024 09:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711446588; bh=1TOSFjtroPOGfQTkxCHWFvG9NRdrsRwmbCHxxp90yfI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gRSkwRiDhQ1SejXmzHwiP3wHPaal0hQIpI1nHudod3/6gQNssiHnGyq2YJ20M4SXG P1L2M5Vv87t7J5SwAMmiR1nhD+o6sfqV91r2tWUKi5XAbp4frdj07Au2OdW8iH06WK RFCFbfhIjzYH9I1xQZDVHmAiSRjbHxK0KT8OO5VIH2rrlPEutKaB+IyUcgqOyIxnyh BvtCzqFNV7YfnGcmdypTi2Bdiblo2mvDDvEIV+gCHStAPWyjyfnZoqKU6UjzvbJyCV sBHcei4sKtm+waJSHh4cVtHlqIkOKqrewaweQCYym24Cia3ZXdMCO8tB6fefoCqS7R R2KPBCeXhFv5g== Date: Tue, 26 Mar 2024 10:49:42 +0100 From: Niklas Cassel To: Siddharth Vadapalli Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, manivannan.sadhasivam@linaro.org, fancer.lancer@gmail.com, u.kleine-koenig@pengutronix.de, dlemoal@kernel.org, yoshihiro.shimoda.uh@renesas.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com Subject: Re: [PATCH v4] PCI: keystone: Fix pci_ops for AM654x SoC Message-ID: References: <20240325053722.1955433-1-s-vadapalli@ti.com> <750df13b-ee2f-4067-a9e0-7fd1ace384cf@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <750df13b-ee2f-4067-a9e0-7fd1ace384cf@ti.com> On Tue, Mar 26, 2024 at 10:29:10AM +0530, Siddharth Vadapalli wrote: > On Mon, Mar 25, 2024 at 02:45:09PM +0100, Niklas Cassel wrote: > > > > In fact, if you move this code to ks_pcie_msi_host_init(), instead of > > ks_pcie_host_init(), you would not need a comment (or a if (!ks_pcie->is_am6)), > > since ks_pcie_msi_host_init() is only executed by !am654. > > This seems much better :) > > In the current code, the execution is as follows: > > ks_pcie_probe() > dw_pcie_host_init() > pci_host_probe() > ks_pcie_v3_65_add_bus() > > Moving the contents of ks_pcie_v3_65_add_bus() to ks_pcie_msi_host_init() > will result in: > > ks_pcie_probe() > dw_pcie_host_init() > if (pci_msi_enabled()) > if (pp->ops->msi_init) { > ret = pp->ops->msi_init(pp); > ks_pcie_msi_host_init() > pci_host_probe() > > I will update this patch based on your suggestion. If it's alright, may I > also add your "Suggested-by" tag for the v5 patch? Please let me know. Fine by me :) Kind regards, Niklas