From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796030138; b=AZX67jTlVRkKNstkOTDXi7LyBE5NK0QwgJ6KUpJPE634LIhX4F3RtrgBv1y2MOXL/rWG 7t4sS8W/u13VDH2j7g4APftJAqxmwmHwPDeF363K+nL68ybOD10g5SLom63JZq+TL75a1 FTK+xXNwJGIT9ahe7ysi4sng3V6AKGcDZ2iJopP4JuQxZCBugpMA/WmWcFGcM0j+IBkqg rn8Y3Y+x4hlIw70EmEDYNmaLhq7GSHcxfO0RinzANORjyWreNeUIRgpMEoAQIZsJBabkH 9IPwXSvqIWIOHqVD++SAz2ooK59/Odt+XWZlvjpybT0reAeXMFwtq49wy6pANvruCvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030138; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=H+2eGXeIkyaBX8xukhbNqA7RqnweRy8BJMqbctpSt6M=; b=KCN3Egmhzxs+ylgoAhu6O9Iyb3p2zR0L/UT+AiDqrqJUnejSBhqArH0DSQDlKKXjmViG +NwCAbZBenlm3EwPluiDjw4Uq9L6MHlLyeEP4kltW361mUYJd0LZWFZzUiYvf8qrHqyGY zLrNM613Tm60AAtkYYJ2/+R4WX/2i0M3KLLAVdbKAGnMsk/Ap1JT83p2UmWInCdayIhr/ 4i7kC/VfvbIcok9Q5RUlOhbo2heWfUpppzp+U3QtQcBAlh93/NpL+F+4PssJg7byVpx9M pYiTmu48XEuhAilEdVJWe5rSqJoRBkDZJxrp8AdRLwa253mY9V8PJDmAIIg/lwmLq+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="UBEw/6jE"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44342606A339; Mon, 30 Nov 2026 09:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UBEw/6jE Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5BD81F00897; Mon, 30 Nov 2026 09:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030138; bh=H+2eGXeIkyaBX8xukhbNqA7RqnweRy8BJMqbctpSt6M=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=UBEw/6jEFzi4aav/UqOg+JH82oa3vZraJIsdeIHzKsq2whhC0hmuoSlISLhkISq8D utCdZDzwE7tKxDChTzZGGEKHn+Df7b96FRyTaO3cIOy0tCZQ9lfdaPk+dB0/3opbY0 C/0Z40QfaZsUiBsioh3xFIQjEJQFOjQaV84hXf1oxCkQ/yzjl6u7tpJpc70m/5CJWM qmRlqEVXehPMxfDwv/xWNdYOAvSc/o5cZLwMJy/O1dCVhHVmMXEvcdjrZFOle7dnjF tmY0G/sDbnEv2HitW/mVdTrrhMGXlzrGwHD066ReHfQHgsYEmv2tEiE0CQISP0wxdi HlIqHNCvs6oCQ== Date: Mon, 30 Nov 2026 14:45:28 +0530 From: Manivannan Sadhasivam To: Shawn Lin Cc: Igor Velkov , Enrique =?utf-8?Q?Hern=C3=A1ndez?= Bello , lpieralisi@kernel.org, kwilczynski@kernel.org, bhelgaas@google.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, dlemoal@kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/2] PCI: rockchip-host: Make the PERST# inactive delay configurable Message-ID: References: <20261104215848.2087944-1-ehbello@gmail.com> <20261104215848.2087944-3-ehbello@gmail.com> <179596114526.2288.5995800864070065544.b4-reply@b4> <20261129-rockchip-pcie-ltssm-order-1@iav.lv> <5b757016-3926-4123-a02b-d7348448b535@rock-chips.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b757016-3926-4123-a02b-d7348448b535@rock-chips.com> On Mon, Nov 30, 2026 at 04:40:28PM +0800, Shawn Lin wrote: > 在 2026/11/30 星期一 15:57, Manivannan Sadhasivam 写道: > > On Sun, Nov 29, 2026 at 08:20:36PM +0200, Igor Velkov wrote: > > > On 2026-11-29 19:35 +0530, Manivannan Sadhasivam wrote: > > > > Basically, I just moved the LTSSM start after PERST# deassert and increased the > > > > status check to 1s as per the spec. > > > > > > The diff does not move the start of training: rockchip_pcie_init_port() > > > already sets PCIE_CLIENT_LINK_TRAIN_ENABLE for the RC, in the > > > PCIE_CLIENT_CONFIG write before the core resets are released. The moved > > > write only sets the bit again, so the 1 s timeout is the only change. > > > > Ah, I didn't look into the implementation of rockchip_pcie_init_port(). But it > > feels super weird to start the LTSSM in two successive places without a comment > > in the code. > > > > Looking back through the git history, this appears to be a leftover from > the rework that added EP support. In practice, rockchip_pcie_init_port() > should not enable LTSSM, that call can simply be removed. The LTSSM > enable in rockchip_pcie_host_init_port() could then be moved to after > #PERST is deasserted. > Thanks for confirming. I believe Enrique can submit a patch for this. - Mani -- மணிவண்ணன் சதாசிவம்