From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4D75C04E69 for ; Wed, 2 Aug 2023 17:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbjHBROP (ORCPT ); Wed, 2 Aug 2023 13:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbjHBRON (ORCPT ); Wed, 2 Aug 2023 13:14:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDC9E42; Wed, 2 Aug 2023 10:14:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4471D61A55; Wed, 2 Aug 2023 17:14:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DE05C433C7; Wed, 2 Aug 2023 17:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690996451; bh=F/rbjQiOyfgmgFmuIV8uZJPoftBhb6PoDzmZlYlo/mk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rMetctBa2mih8ulDzZ0ox7FtFspbLeoqpDJNHEjLQqDHnJCex0Ijhf6bQyoSlYyFG meh2Pu/LNy222/iMlJt20h1SIzntJ54dHf6YCbQ8MfOlAiaT2d7PC1VAapbTPXHJcj sForDf/cJabTCpRFm0IgQmuEmVyAgZKqQs7MG1BRSzHVI+AJpoWa81SzOPhOonnGPw tKV3M4aO4f/OHzZFXFdTk6OGdxX4pjB0P8slfchtqkHEmD229HxKkJCMCBp9uaNdFE FQcYaVEMVdg5g+sKb7HdRs9WA+2tbuZoZAMWFS1do3N6ITmFqHKtoy+BCjOmNQwHez WzAyOO+ItsEhw== Date: Wed, 2 Aug 2023 12:14:09 -0500 From: Bjorn Helgaas To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Kevin Xie , Minda Chen , Daire McNamara , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Emil Renner Berthing , 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 , Mika Westerberg , "Maciej W. Rozycki" , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v1 8/9] PCI: PLDA: starfive: Add JH7110 PCIe controller Message-ID: <20230802171409.GA62497@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230801071453.afaulygpczpyhopk@pali> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Aug 01, 2023 at 09:14:53AM +0200, Pali Rohár wrote: > On Tuesday 01 August 2023 15:05:46 Kevin Xie wrote: > > On 2023/8/1 7:12, Bjorn Helgaas wrote: > > ... > > That's the point, we will add a extra 100ms after PERST# de-assert > > in the patch-v3 according to Base Spec r6.0 - 6.6.1: > > msleep(100); > > gpiod_set_value_cansleep(pcie->reset_gpio, 0); > > > > + /* As the requirement in PCIe base spec r6.0, system must wait a > > + * minimum of 100 ms following exit from a Conventional Reset > > + * before sending a Configuration Request to the device.*/ > > + msleep(100); > > + > > if (starfive_pcie_host_wait_for_link(pcie)) > > return -EIO; > > Maybe this information can be useful here: > https://lore.kernel.org/linux-pci/20211022183808.jdeo7vntnagqkg7g@pali/ Yes, thank you! That is a great summary!