Re: [PATCH] PCI: Fix link speed calculation on retrain failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 24, 2025 at 02:23:33PM +0300, Ilpo Järvinen wrote:
> On Mon, 23 Jun 2025, Lukas Wunner wrote:
> > --- a/drivers/pci/quirks.c
> > +++ b/drivers/pci/quirks.c
> > @@ -108,7 +108,7 @@ int pcie_failed_link_retrain(struct pci_dev *dev)
> >  	pcie_capability_read_word(dev, PCI_EXP_LNKCTL2, &lnkctl2);
> >  	pcie_capability_read_word(dev, PCI_EXP_LNKSTA, &lnksta);
> >  	if (!(lnksta & PCI_EXP_LNKSTA_DLLLA) && pcie_lbms_seen(dev, lnksta)) {
> > -		u16 oldlnkctl2 = lnkctl2;
> > +		u16 oldlnkctl2 = lnkctl2 & PCI_EXP_LNKCTL2_TLS;
> >  
> >  		pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n");
> 
> IIRC, there was a patch from somebody else which fixed this a bit 
> differently but never got applied (many months ago by now).

Must be this one, still marked "New" in patchwork:

https://patchwork.kernel.org/project/linux-pci/patch/20250123055155.22648-2-sjiwei@xxxxxxx/

I don't care which one gets applied, as long as the issue is fixed.

Thanks,

Lukas




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux