Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp73311rdf; Mon, 20 Nov 2023 16:53:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6vK2rtleHjOD9xfCwXC60RfLptNA+7FBcuRmG+oX+NkMLqcvKQSKGn3urOkuswu/y5uJ9 X-Received: by 2002:a17:90b:1e4c:b0:280:4c36:5feb with SMTP id pi12-20020a17090b1e4c00b002804c365febmr6849422pjb.17.1700527985650; Mon, 20 Nov 2023 16:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700527985; cv=none; d=google.com; s=arc-20160816; b=jI5/gGFqm90FhHDxr7dCQ+uOGsLGgzyKTAGNieWH/qHB4qC48FToE+ACMCsmB1xuo8 mp6nvgd0S7R1duISLxol3FAQW4gXEiBlXAgXHAuVs9Ef9+wBDgAZ5w4npEaIBdk6mg5t S3V7kkTpgsSykmO2dEYeyVRqes0qAYnH4MXKgxAMgu2wYbGSeAKpaBgureCpSTL+pPf9 fLeqhuw/cp7BJrJmDPkCX/fMfUs8hCUV60DsD6UvKIrRbMDtf2MwMEpsxqkmJvzpIfii 94RNQNjR3aEp0PhoqBtMjWqp9GWjNXTTDmRSDC/nBgYXS+8iBkyFnVAcTm+oD7S7lbO+ 7ocw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=dSbLJkv8oIzJatzOt+C01QoFynp4MF2gOptvOA/HN5k=; fh=QvN1hTWzRGYBohe353CiQobZEFBZoqPMcsOPYljWwvA=; b=pEtc5vWKcsPCs65z2DG2fI+0PbKVx5j6pRvV3MTXpURQ0eqZSrOPzWce4UtCFcsdfd LaUjgPrfSSWno1qDHa0gjzSpjNnmTMjinVYJ/7NUpiVggX6nes6M/2T1+BclJ3NK2QX3 iLZIL213w5kPuykU4nUbNIoFvbFUlpYJFsiiAWSEouD+4tqNeCpb+rgj9FIK9MyFTblU RDmyU8pZUNr0/dUNuAR2garhbiQtKOLvNFzuRkxnBFqWV29AJxLRQUuI3Jax4LgyBZMG JTUaWCQdR/9Kh9I3HMTjbqKJgh0wpWLDf7Q5oEBHzBq6cYPQdXnYnTcEp69BqkVWeWDe e8PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q17-20020a17090aa01100b0027491bac826si9135503pjp.140.2023.11.20.16.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 16:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3803D80A414B; Mon, 20 Nov 2023 16:53:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232796AbjKUAwu (ORCPT + 99 others); Mon, 20 Nov 2023 19:52:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbjKUAwn (ORCPT ); Mon, 20 Nov 2023 19:52:43 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 026611A2; Mon, 20 Nov 2023 16:52:29 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 2A7FC24E203; Tue, 21 Nov 2023 08:52:23 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 21 Nov 2023 08:52:23 +0800 Received: from [192.168.125.85] (183.27.97.46) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 21 Nov 2023 08:52:21 +0800 Message-ID: Date: Tue, 21 Nov 2023 08:52:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 19/20] PCI: starfive: Add JH7110 PCIe controller Content-Language: en-US To: Bjorn Helgaas CC: Conor Dooley , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , "Daire McNamara" , Emil Renner Berthing , Krzysztof Kozlowski , , , , , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , "Philipp Zabel" , Mason Huo , Leyfoon Tan , Kevin Xie References: <20231120182347.GA207554@bhelgaas> From: Minda Chen In-Reply-To: <20231120182347.GA207554@bhelgaas> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.97.46] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 16:53:03 -0800 (PST) On 2023/11/21 2:23, Bjorn Helgaas wrote: > On Mon, Nov 20, 2023 at 06:07:31PM +0800, Minda Chen wrote: >> On 2023/11/15 19:49, Minda Chen wrote: >> > Add StarFive JH7110 SoC PCIe controller platform driver codes, JH7110 >> > with PLDA host PCIe core. >> ... > >> > --- a/drivers/pci/pci.h >> > +++ b/drivers/pci/pci.h >> > @@ -22,6 +22,13 @@ >> > */ >> > #define PCIE_PME_TO_L2_TIMEOUT_US 10000 >> > >> > +/* >> > + * PCIe r6.0, sec 6.6.1, >> > + * Requires a minimum waiting of 100ms before sending a configuration >> > + * request to the device. >> > + */ >> > +#define PCIE_BEFORE_CONFIG_REQUEST_WAIT_MS 100 >> > + >> > extern const unsigned char pcie_link_speed[]; >> > extern bool pci_early_dump; >> > >> Hi Bjorn >> I have not checked this carefully. >> I think the change of pci.h should be moved to a indepent patch. >> Could you approve this? Kevin will commit a new patch for this. >> Next version I will remove this change. > > Yes, I think it makes sense to add that #define in a separate patch. > > Please trim out the unnecessary context; there's no need for readers > to scroll through the entire driver to get to the useful part, which > is just the last dozen lines or so. > > Bjorn Thanks. I will notice this next time. Happy Thanksgiving! Wish you and Rob have a good holiday. BTW. Could you give any comments to Refactoring patches (patch 2 - patch 16)and PLDA patch(patch 17) next week? Thanks.