Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp150083pxb; Mon, 18 Oct 2021 23:12:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx74oKTJd8Wyp2nVAVqowh60FaimtQCXUtSBAOZzAF67XGPb2Gf6l7rKWdRUe6AsAgRVo21 X-Received: by 2002:a05:6402:2690:: with SMTP id w16mr52919564edd.372.1634623941162; Mon, 18 Oct 2021 23:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634623941; cv=none; d=google.com; s=arc-20160816; b=bfUFljsVN2iMObDYBz40MfrsO8YR95jEwLWH9KB5QZA+0gbLIUwqIU9SUxeYtHPk92 EMV9zGOI+x5Kc/8vCTDOASoetQQk7xipd+j6O5Dl2aIt2n8W47Uz2ANbtPFnWppt9WkY eT7RrezLcYS0EL2xL4Dw5W8K0N3FGcgBgjaoZUeZiNcuWbPpEaQtgaL1yJ6cRiZC9it+ 3RtU+jOqdCAxIq6N6PZi4q1IGvlR18v+w1fxHj5vGrecUYKioqkoq6Jt47p8s2Gbhmnh ocibK0LFkHBCl9tWs6xdwXXIOa9vfr8ulwNVnKfYP2iv1TIEOkxl246GyxdTom/8Cy1R 8B9w== 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=Ia6zZUIheQq6EwLGKTLbADuQCUiPU5UF68MU8BX1Mqg=; b=HDLwGzUEevyoyMO1HyQSIaDZ7GYRoTf2vH9ypsRr3oyQL+EfI8UELQA4iZXVZLFQwV 11uV1lcHTbPLqEwe251TK2WCoB96UeGnn/YDMTBJ1GpEcGIdWpIez1N5q+jA8ZwrMYro 9TftDZbCiKrmYx7eJPzHTYMsOmjkpYYiMrNZAaBWUPPHE5bD87nVjpdbPOOFxd3N3Rsz nFpmB/dGirhs9hp4O0IgCPldH/e27RhDsAj8i1xJNtaK8VrFOSJZEec0IKxB8nlQvNdL frGrZHjLLvaenMNjV66cVJiP89dkQKa4Wnf45U54G87D+9tTGPT9iKcCWqMWzxqPo1tA 92hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dc7f02gs; 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 p5si22527705ejj.74.2021.10.18.23.11.57; Mon, 18 Oct 2021 23:12:21 -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=Dc7f02gs; 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 S234294AbhJSGJW (ORCPT + 99 others); Tue, 19 Oct 2021 02:09:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:46044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233717AbhJSGJG (ORCPT ); Tue, 19 Oct 2021 02:09:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7A20861353; Tue, 19 Oct 2021 06:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634623614; bh=szle1bT5olJ89Gu3BNaMhKrdvcdWwZPAbT0cQmEaRss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dc7f02gsdm/F2FLaxqPuVl5pJbYyQzEk0ODO3LOnSZMA1rjnoOf/UeDYemarCEOYt 2QH4AlF/zBxXk7FMFcUU+Ws+bb0NYHI6NXlD+1pfQfF+J+gJrWScPRs+lp+ArQq2CP YoFjLnvFXzJIxkYn3OEdu8q/+7NhWH3/G6GcA6l5gUCfxEU66A3jtOEinDAsDEvzHf RvWxypeEUIRHZfw9soYmW8dZ6UzmHXIyUObYERmVEkS/RSPDuu6ZuCN69mqGXjRb2A 8CbEdNvbz9Z0S9RQ75DRGxCIfjKW/aM3MmANVsCM7oStABrAvmlfnJGs2Om9HhR+vY y2ZZTfdq8PqUw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mciGx-001krk-Qz; Tue, 19 Oct 2021 07:06:51 +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?= , "Songxiaowei" , Binghui Wang , Bjorn Helgaas , Rob Herring , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v14 05/11] PCI: kirin: give more time for PERST# reset to finish Date: Tue, 19 Oct 2021 07:06:42 +0100 Message-Id: <9a365cffe5af9ec5a1f79638968c3a2efa979b65.1634622716.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 --- See [PATCH v14 00/11] at: https://lore.kernel.org/all/cover.1634622716.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