Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2427284rdb; Mon, 20 Nov 2023 10:24:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEm/4XBcPnsNWJ0jpLqhJhQh3Xy3eiiXwMx5AdvVHSQ7Ea2Tg4FvMMCivmlvn4Edz3t6jnw X-Received: by 2002:a05:6808:10c7:b0:3b5:9966:c1b3 with SMTP id s7-20020a05680810c700b003b59966c1b3mr10163549ois.16.1700504653640; Mon, 20 Nov 2023 10:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700504653; cv=none; d=google.com; s=arc-20160816; b=gBQP+p1l5X8CoktMhp6MI+FgwRg2g4z9l48esruJeYt3gaIBA7Ray3V9zR+1EhyoJQ wZH9DNDlV9FyT7W+H2UE1IBHFxjTVmhEu9zVfKCMmbkIEAxKyPsolZOVrjGArf6LLzGl sqD7FZl/L849nrF4yqDEWnm814F7WgRxaDFAOcuMVqshswCWPkag/F3+GNnWYuI6BLja CwhfuCRlzTR/bmdOgWUuwhW+amgElfUcNn9F6ZFNtaqNnirRzcvBIhlTrTp7YAm5G7bR brqoUUmHyjWvhvn3jyrdRcrA4c/K2h0GkRfhJqZWrxAoF1GSxfU8ZIB2Fq2lnnMV8H4H cFaQ== 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=3Av2srKuyuvh58+ZLpyLOCJ5gTbMevtUT8jMIdIOHe8=; fh=edLK6CrLZnoyngH4Z0tRvVYoYKorJO0VIuKCSDp0nUE=; b=HJlAp+2ChXExOgwevSIDifs1IEU4cA0mvWLpgqNDttgRAMCMeHzK0tBzioScnVwYbD lZtLl8V6rmgTFO3qwrxJIqto+ICuiBAVw6+Etd05a73RUfu0O4fVkrAHHLc+lpuFhX/0 SUwzSmltg7YYqsExE0QbL73uUDBOo0mC9X9WmPUGM0ae05mVFDuzydLcpPYrXeCL7sJq 61ZRCXW4W1+k4EfJ2Y3VOUQdu5/4RBPHe/eZe62+1PNY+xj82hcMI0dIbkuV/kHTE8wj /oQSAf41h9tEQ/xh4JFV1R9G8QWVRnasKp7Otqc+yn8trKSK3mAz920Yiw3F/ZpV193S +pag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6e+CUPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q8-20020a63e208000000b005be3c0443e7si8839259pgh.643.2023.11.20.10.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 10:24:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6e+CUPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CBB2D802F956; Mon, 20 Nov 2023 10:24:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231829AbjKTSXy (ORCPT + 99 others); Mon, 20 Nov 2023 13:23:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbjKTSXx (ORCPT ); Mon, 20 Nov 2023 13:23:53 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5BF8C8; Mon, 20 Nov 2023 10:23:49 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CA3EC433C7; Mon, 20 Nov 2023 18:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700504629; bh=eglYaIQ/qtU51O7/Tl79eYRTbxeBJ9UX1J/7CgEKMp8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=o6e+CUPFOXvGngNNWHM9X1PLe9PzMUguk0FCo6af1DPRNJ0p+OepiuLwS7AR5KlZ2 eakxW+7UEsZuUod6rTu0DKOh7tcfLE6bXTYE1iw3n/kMBFk0UbajUZeu6GoDKN4M3t VKhbtXzLK8ghNFU2I80Ncclrv5FKPKqgNxX/uI8+GAcwxlrDTuCohrSL3cZXDsgQcM wfpZhvWCvQUwMyN5tVCbMHPHMO22NWWBh9SCrOW4Rm9IAgoZ21fzobRc2A7iGXkhlt Y8PjAxr6YZq527RKNFptB80cmQq4RqGgqe6c29UD1Rf03Dz1U8hq9rxNYpyS2+eb3Q eYQMD4+/wUcjg== Date: Mon, 20 Nov 2023 12:23:47 -0600 From: Bjorn Helgaas To: Minda Chen Cc: Conor Dooley , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Daire McNamara , Emil Renner Berthing , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie Subject: Re: [PATCH v11 19/20] PCI: starfive: Add JH7110 PCIe controller Message-ID: <20231120182347.GA207554@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c69c1b5-7183-4d34-9689-27cd126a4f4c@starfivetech.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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]); Mon, 20 Nov 2023 10:24:01 -0800 (PST) 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