Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp490856pxb; Thu, 21 Oct 2021 03:47:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6UwKRzpVzBk5Q14cWo04RgZQOCbKyPkBuKv6sTl6DBB2AxNhNafvr6DWIXpIoTQjSBmD2 X-Received: by 2002:a17:902:6808:b0:13e:a85b:52bd with SMTP id h8-20020a170902680800b0013ea85b52bdmr4423454plk.76.1634813237836; Thu, 21 Oct 2021 03:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634813237; cv=none; d=google.com; s=arc-20160816; b=L5FYDRqUv0Jfbd8pVjjGv2ZCTEtijNb5oN14QPSzF3YNjbOHa2Yb/nvTpyW3VuC22+ f+i/K6JDFTsB7Zn0F6k/N56J5r1a0ie0QDv4YFHqiPCOglShn1JJeRVkt8UrdS4F6W6w bcyMU9vvGZWZiza1Mpz66qaeus8Zidv9N865nyA7XPlI+L75DHyw5CzSbqdAOegR0H96 Za0NdKjromlW08/FGN9U96M///9tCurC70v/kcf+8Vosx2eSA3pcNbdu4v27KFwlATsF L1/6mHhCZHMwmvfsi+9B0FDWkFR4hcCA5FWE0uaHeGo8ZRecbnzhP6+ahzkaCd4MrjAJ Orsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=364aGBmPvgroLOQwQcjwCtzwuYqKFt4e3gp2lv+T8tM=; b=ecC+8ahe5HhmMeZjUnZDfnLR2MKsukaN44tIeEh05fLYiKOF/aeK7dyw6Wj9b7QxrH TC2aEU1a2xJF6xhWoSrix0jthRj6xx7JGd/MlBWkxbhw/keFLhko+MSURKHqhUyqTFG3 WMOaT5YdY7DvgoeY5makjDhUZktJ/Qz4mJSbb/U+Su6oYSdVh+E1NdJ6jyquUBWBiXzX rXlXJEPWxKQmcz9OM3Cj0qVzPsszNbdUlRAf9F6k1PGbp8PsMZ5FMBegqNUlAP3Vu9mP B4E7IyC9fSsBXJZI8s4OkmFjereb3Q2BiG1Aw/M131JZQfBtfdjlMzT9ImuDBzzdosrG k7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XqH1qXnu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si6342346plz.130.2021.10.21.03.47.04; Thu, 21 Oct 2021 03:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XqH1qXnu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231144AbhJUKsC (ORCPT + 99 others); Thu, 21 Oct 2021 06:48:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbhJUKru (ORCPT ); Thu, 21 Oct 2021 06:47:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE55361130; Thu, 21 Oct 2021 10:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634813134; bh=8fOSqA2lJW4GkX4/ImU+E4+sVxOHMiRXyyfaCoSKklM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XqH1qXnu458hBgT0balPv2x0Nsx4vvbjTY/4VKYFs6T+WFQ1WzhtXaMUT5GdqxNr5 ZoayGYd4O3uowle7ykrOqxtErS1vsV5V1KRhF2Ka4T3GjBYay9aYLk3VfuMh/ocTYB KHEFtQ1G3OrDqGWC4MhXO8wFcQU3LOUGlt6D2f13KK8rJkZvGFdHQi3W6faDWw6DZJ SISzs79uBA/462BgGwOOov+Er93SDInzz8aVa6ZPThs6cIZRWLsBd8/vhXH3T5zAZ1 D/Wn/OWrQ7Tf7rAFc7z7L10ylThxGTdafbwjEZHgakqaN78KoAAROv82C8A2W64ZOu shYIxoLU0wPZA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mdVZj-002z52-2d; Thu, 21 Oct 2021 11:45:31 +0100 From: Mauro Carvalho Chehab To: Lorenzo Pieralisi Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Binghui Wang , Bjorn Helgaas , Rob Herring , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v15 05/13] PCI: kirin: Give more time for PERST# reset to finish Date: Thu, 21 Oct 2021 11:45:12 +0100 Message-Id: <1aa50f736464cd6e871d05990684b35faef76767.1634812676.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Before code refactor, the PERST# signals were sent at the end of the power_on logic. Then, the PCI core would probe for the buses and add them. The new logic changed it to send PERST# signals during add_bus operation. That altered the timings. Also, HiKey 970 require a little more waiting time for the PCI bridge - which is outside the SoC - to finish the PERST# reset, and then initialize the eye diagram. So, increase the waiting time for the PERST# signals to what's required for it to also work with HiKey 970. Signed-off-by: Mauro Carvalho Chehab --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v15 00/13] at: https://lore.kernel.org/all/cover.1634812676.git.mchehab+huawei@kernel.org/ drivers/pci/controller/dwc/pcie-kirin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index de375795a3b8..bc329673632a 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -113,7 +113,7 @@ struct kirin_pcie { #define CRGCTRL_PCIE_ASSERT_BIT 0x8c000000 /* Time for delay */ -#define REF_2_PERST_MIN 20000 +#define REF_2_PERST_MIN 21000 #define REF_2_PERST_MAX 25000 #define PERST_2_ACCESS_MIN 10000 #define PERST_2_ACCESS_MAX 12000 -- 2.31.1