Re: [PATCH 1/1] PCI: Use the correct bit in Link Training not active check

From: Maciej W. Rozycki
Date: Thu Mar 14 2024 - 17:58:33 EST


On Thu, 14 Mar 2024, Ilpo Järvinen wrote:

> One more point to add here, I started to wonder today why that use_lt
> parameter is needed at all for pcie_retrain_link()?
>
> Once the Target Speed has been changed to 2.5GT/s which is what the quirk
> does before calling retraining, LT too should work "normally" after that.

We don't know if the link is going to become stable with the TLS update
to 2.5GT/s and we want to ensure that the link has reached the active
state before claiming victory; LT clear does not mean the link is active,
it only means what it means, that is that the link isn't being trained at
the moment.

Also we don't want to reset the TLS to the maximum before the link has
become active.

Does this answer your question?

Maciej