From patchwork Fri Apr 12 02:37:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13626713 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8DF76C4345F for ; Fri, 12 Apr 2024 02:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gPHVzFSh30rJaqaSYAygGpFISn7QSqS1FdiHdCQnhNY=; b=RguyFsMe8mgjCW d4h9Au583vbEbHN3bMUVps6RmdvIWo9ml7itS9o7H/KgYxnzR2Fwu/nSTZ5QV/50ZDoX2kV8mHiRA Z2bK8PEeFBMFccqWcx4zXf4sHstqltf+MeuErav3ALNCWbP3LwTO60iuc9CBrZZgZxa8Y9+O6BKLO 0sLsEg2UGzJ41Zo9QMYatu9zuvU165LWsmI6YGMUzlJvin9rRK2Sa2N5suCyQJG0EnQFbh2kUvWJI xvK3nBE3IQsglDbhlYIS9GPvw20JTvix8wQw6H03GtrrgX9DbUxTdNTE33Pijp9yX1iWymBjz8P3p OygtPyjI6z3YrIEcVtLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv6nN-0000000EvnI-3AiD; Fri, 12 Apr 2024 02:37:41 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv6nE-0000000Evfi-2dvo; Fri, 12 Apr 2024 02:37:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0D273620E1; Fri, 12 Apr 2024 02:37:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9407CC072AA; Fri, 12 Apr 2024 02:37:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712889444; bh=HiXGHLZIGVbP/4SWHBC2OKseJqgpskR3c6BxJ2UIzzM=; h=From:To:Cc:Subject:Date:From; b=GDMxaAe6Mf//QR8tIlECQQBFVTLYE1sX6P9IANcSUCFSvMsY8WJ3owa0tAe26/VaH IqLMZkWdw7XVwdQy137PlUw/issDLCcf4bemQZVFpRkV0TWmLzXfMSrSndf/h84XMt 6KUJUvd552PDXEA12xT7BLTMzSba+yP7BCqOoh1HDYczxYwwzafFEV+ELh/APSts1+ iWgiP39n9YkgWqKMtcqFnIEAPl8QJG2G0fC5risa7aDgktGeOsJatEE1QD0tWPTkdT lWx8TBggwuV6OwWNMMj9ucJciVvKxxxjjbdcY2piHsW1Wh7xybhHFZDuy/kQWa5/tJ 6WjENOQzk+ePQ== From: Damien Le Moal To: Shawn Lin , Bjorn Helgaas , Heiko Stuebner , linux-pci@vger.kernel.org Cc: Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/2] rockchip rk3399 port initialization fixes Date: Fri, 12 Apr 2024 11:37:19 +0900 Message-ID: <20240412023721.1049303-1-dlemoal@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_193732_779995_3C19A190 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org A couple of patches to have the rockchip rk3399 host controller port initialization follow the PCI specifications around PERST# signal timing handling. Changes from v2: - Use PCIE_T_PVPERL_MS macro in patch 1 (and remove useless comments). - Split second msleep() addition into patch 2 as suggested by Bjorn. Changes from v1: - Add more specification details to the commit message. - Add missing msleep(100) after PERST# is deasserted. Damien Le Moal (2): PCI: rockchip-host: Fix rockchip_pcie_host_init_port() PERST# handling PCI: rockchip-host: Wait 100ms after reset before starting configuration drivers/pci/controller/pcie-rockchip-host.c | 3 +++ drivers/pci/pci.h | 7 +++++++ 2 files changed, 10 insertions(+)