Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3644623rdg; Wed, 18 Oct 2023 01:24:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcXqAm4pbmCIxkJwqo4Ng087ldwFZveidVvLsCuwii/Pf+oxjABtDb/YXLUcbcVGFGU/Ft X-Received: by 2002:a05:6a21:47cb:b0:15d:4a2b:b513 with SMTP id as11-20020a056a2147cb00b0015d4a2bb513mr4123089pzc.36.1697617490888; Wed, 18 Oct 2023 01:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697617490; cv=none; d=google.com; s=arc-20160816; b=VV4JV2qFulmDfQ8qhc1ayIXPOPiy52CG6GKbSWepxmlTY20rxRAX06unfvXQKFM6MH FN9BV85v2Q9r20gja7RVO1gnWWTaFeO8+GKzbOrhd72nWkZxiNd5E/yfx8prb1+AbX7L XaLu125xZdiRHHwX0KwmW4SHFhUUEVQlLihCpjKgfmIfieB8+KKgiqli9vRmOHZ5+Uo7 MdLDzsTVv8Yuh3V681sV+LzGIoeGp/JSiMfOuvAcmxe9Rb/aAzckG8bRhYqDuSyNR0bi wW/jzL6Xd2Xl/pulxs9xXvy34eNq4VPlDzXxAJm1A85JR5TTExOyOBmj8lPVV0d91Hvj 5KHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=ZtCVecdF83AGjBhuAEFcCM6NSuKe7HJoHlKbAZhIm1E=; fh=1e0weHTbedWQB51CQ8JbbX/4N52GgAHRqx1hbVnQPgU=; b=M6ddQQfteA+o19Cu21p7Nu0xQgVfvR8Zcx7xrAKtykGvufcHZhasTyn1ZQjsM3gXFF V4lSO4v5uCZqHnV0rncaPHc8mRnLmUCGM7z9EyfIP221okYhHXxJ2gaRUYgBVYLkcP41 fDpuHGsiRRrmQ4C4aeNwuUfVMEj4Z6NiLqqemFHtxka8UangFlzFUlSupE3b0SQHhnJ6 A+wXO8zF2e6P7hP/JcY9EThMBJSf1bhEd+44GY8iF4FWDty9pqd2fo4bhi6lNcBKOW6D 9WpdsbkpMzK90TCm7p//la//iZBkBDlJT9rZIa2vBM8Zo+kmPEWxXVilrjj3Bd4lsETe /rpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FjJyTLwk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id oj5-20020a17090b4d8500b0027d06e08f9bsi1040753pjb.150.2023.10.18.01.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 01:24:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FjJyTLwk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E240680280D5; Wed, 18 Oct 2023 01:24:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235073AbjJRIYi (ORCPT + 99 others); Wed, 18 Oct 2023 04:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjJRIYh (ORCPT ); Wed, 18 Oct 2023 04:24:37 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F650F7; Wed, 18 Oct 2023 01:24:31 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39I8OEa1077613; Wed, 18 Oct 2023 03:24:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697617454; bh=ZtCVecdF83AGjBhuAEFcCM6NSuKe7HJoHlKbAZhIm1E=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=FjJyTLwkvPFOWcb37XVyA2UqptuUr5wLb/beXhPOYam/dgvFu/UlJg4GEJ/xiafnj V/ieGYIOOSCmXuqGpGVwUfy9HlWJt7EKmGyNHqt3TxIVoagJqqMiXIzTT00/i9FzC5 k9EjhaU10ZLZhlhnsNVdHgR5ExY43kUZJjJFCVdE= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39I8OEW1126017 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Oct 2023 03:24:14 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 18 Oct 2023 03:24:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 18 Oct 2023 03:24:14 -0500 Received: from [172.24.227.9] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39I8OAbx036840; Wed, 18 Oct 2023 03:24:11 -0500 Message-ID: <564eead0-9439-4bd0-8281-4539d35bc0fc@ti.com> Date: Wed, 18 Oct 2023 13:54:09 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , Subject: Re: [PATCH v2] PCI: keystone: Fix ks_pcie_v3_65_add_bus() for AM654x SoC Content-Language: en-US To: Ravi Gunasekaran , , , , References: <20231018075038.2740534-1-s-vadapalli@ti.com> From: Siddharth Vadapalli In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 01:24:47 -0700 (PDT) Ravi, On 18/10/23 13:49, Ravi Gunasekaran wrote: > Siddharth, > > > On 10/18/23 1:20 PM, Siddharth Vadapalli wrote: >> The ks_pcie_v3_65_add_bus() member of "ks_pcie_ops" was added for >> platforms using DW PCIe IP-core version 3.65a. The AM654x SoC uses >> DW PCIe IP-core version 4.90a and ks_pcie_v3_65_add_bus() is not >> applicable to it. >> >> The commit which added support for the AM654x SoC has reused majority >> of the functions with the help of the "is_am6" flag to handle AM654x >> separately where applicable. Thus, make use of the "is_am6" flag and >> change ks_pcie_v3_65_add_bus() to no-op for AM654x SoC. >> >> Fixes: 18b0415bc802 ("PCI: keystone: Add support for PCIe RC in AM654x Platforms") > > 6ab15b5e7057 (PCI: dwc: keystone: Convert .scan_bus() callback to use add_bus) > is that one that seems to have introduced this issue. > > ks_pcie_v3_65_scan_bus() was for IP version 3.65 and this was renamed and > added to "ks_pcie_ops" which is used by other IP versions as well. Thank you for reviewing the patch and pointing this out. I will update the commit message with the correct Fixes tag as well as the appropriate description and post the v3 patch if there is no further feedback from others on this patch. > > >> Signed-off-by: Siddharth Vadapalli >> --- >> Hello, >> >> This patch is based on linux-next tagged next-20231018. >> >> The v1 of this patch is at: >> https://lore.kernel.org/r/20231011123451.34827-1-s-vadapalli@ti.com/ ... >> return 0; >> >> /* Configure and set up BAR0 */ > -- Regards, Siddharth.