Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp196956rdb; Thu, 19 Oct 2023 01:23:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7zLVe4sJV7QgdDXjGL6cdExj9N9CJuO4QZeqSCuV2nOAfKuvrpCc3pxCexntwKkQBnrRm X-Received: by 2002:a17:902:da8c:b0:1c3:4565:22f with SMTP id j12-20020a170902da8c00b001c34565022fmr2032103plx.21.1697703806209; Thu, 19 Oct 2023 01:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697703806; cv=none; d=google.com; s=arc-20160816; b=THPsDwiceA/jyoHFyuW6Z8+Z0KRhV8RGXR9G1tuVUJY6J8/nUYw8ErOchWs51Ge2CM GjHLAFZ4TOIFQc8b5AKXCIDe0jlZU9gnMhPKgE17WvCG4CnLu10XxorUdrbebX6Ta8J6 rOQ3nfQGkU5kPlR/QSFNRGDSNYQGdjyd27LlH8GrGepIxOmr2ldsRzHWBJEa3PU42oxh DDlZwnyOsFI4GoiMRTFqo9vraSyboU5yk7r7Z0tdUuwxqHTJcHp0mJKyjXA21iCHCelS dvHjXz6E0p7F3YTcKNvMyqUFcolPysLmi6Y9t9SFHVeuIn8WKerEVgda3h187XjDxIG7 YczA== 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=MCTqsq0Y67FnukRcKpRTfcfnyz+Nx3GotxxH4JuMZ5o=; fh=RWXv7XYDwaO1aSQjYy4HzDshRYY+7JnHB4G6ww0XlQQ=; b=MRpbszQLVfAhuNOf/KV0sQvjL49HvsmUKLx7wKduNU2ZJS3FKuf4In1tRlwk4jTehy eD1OaBSNBHVjGUhgLkBeaLHga/NLwv5QaK6Ke5dOXFRya6P0zGCKORVLFoDGhdh+YSr7 Qnjg1Py11hx7iwepDh59aqsK67+lfVf82pO2gYnoWXLLnQRbDt27XJWNzImIe9xYtg7k YuOpC0KQpExLF4xxyk3MeQJP4q5ESMf+2+ZBXFjKg//yD4wavPQ8TCCTYovuyeJBhkTP JX+tmx/F+I5qC4urXrIvo+wJ88JdR3xTZeP2oBCbFSr/ykdmZHzGXRu3oqYGs4OO/PjQ kKjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WqMe0h+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 20-20020a170902c25400b001bbfbe6bf3esi1555746plg.504.2023.10.19.01.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 01:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WqMe0h+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D242C8263751; Thu, 19 Oct 2023 01:23:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344967AbjJSIXS (ORCPT + 99 others); Thu, 19 Oct 2023 04:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235346AbjJSIW7 (ORCPT ); Thu, 19 Oct 2023 04:22:59 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7AA196; Thu, 19 Oct 2023 01:22:53 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39J8MWlQ103364; Thu, 19 Oct 2023 03:22:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697703752; bh=MCTqsq0Y67FnukRcKpRTfcfnyz+Nx3GotxxH4JuMZ5o=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=WqMe0h+uqKXSh2kkLy+uFlJfj4GG7iRUGbMi3P8fHmRj7oOtoO1W+a+K0ltZbPvMJ Ls4mgkKNdwXBxUslFY/7P92Q3FOQ5FWq571nW0Wrtifg61cIelPpQvQJKqDExI/8te XAyov9dVCfIoHIpMgk0Y+w2xscU4POiyIgVPCFv0= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39J8MWsx087196 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Oct 2023 03:22:32 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 19 Oct 2023 03:22:32 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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; Thu, 19 Oct 2023 03:22:32 -0500 Received: from [172.24.227.9] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39J8MS05025990; Thu, 19 Oct 2023 03:22:28 -0500 Message-ID: Date: Thu, 19 Oct 2023 13:52:27 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , , , , , , Serge Semin , Subject: Re: [PATCH v2] PCI: keystone: Fix ks_pcie_v3_65_add_bus() for AM654x SoC Content-Language: en-US To: Bjorn Helgaas References: <20231018163632.GA1364574@bhelgaas> <6842cdf9-d73b-4895-891f-993eaf5bee6e@ti.com> From: Siddharth Vadapalli In-Reply-To: <6842cdf9-d73b-4895-891f-993eaf5bee6e@ti.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 01:23:24 -0700 (PDT) On 19/10/23 10:14, Siddharth Vadapalli wrote: > Hello Bjorn, > > On 18/10/23 22:06, Bjorn Helgaas wrote: >> [+cc Serge (please cc people who have commented on previous revisions)] > > Sure, I will do so. > ... > > Yes, I will follow Serge's suggestion of adding a new pci_ops structure for the > AM654x SoC which uses the new 4.90a controller. I have described it at: > https://lore.kernel.org/r/ba217723-1501-4e72-b143-e0047266ea9a@ti.com/ > and am summarizing it below: > > I will add the following: > static struct pci_ops ks_pcie_am6_ops = { > .map_bus = dw_pcie_own_conf_map_bus, > .read = pci_generic_config_read, > .write = pci_generic_config_write, > }; > which shall be used for AM654x SoC > > I will also modify the contents of ks_pcie_host_init() as follows: > if(ks_pcie->is_am6) > pp->bridge->ops = &ks_pcie_am6_ops; > else > pp->bridge->ops = &ks_pcie_ops; > > which will ensure that the .add_bus() method is no longer applicable to the > AM654x SoC, which was the case prior to commit 6ab15b5e7057. > > I shall post the v3 patch with the above changes and also Cc Serge. I have posted the v3 patch at: https://lore.kernel.org/r/20231019081330.2975470-1-s-vadapalli@ti.com/ and have copied Serge in the mail. > -- Regards, Siddharth.