mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] PCI: fix the printed delay amount in info print
@ 2025-04-12  6:09 Wilfred Mallawa
  2025-04-13  5:17 ` Damien Le Moal
  0 siblings, 1 reply; 3+ messages in thread
From: Wilfred Mallawa @ 2025-04-12  6:09 UTC (permalink / raw)
  To: bhelgaas, mika.westerberg, sathyanarayanan.kuppuswamy, lukas
  Cc: alistair.francis, wilfred.mallawa, linux-pci, linux-kernel,
	dlemoal, cassel

From: Wilfred Mallawa <wilfred.mallawa@wdc.com>

Print the delay amount that pcie_wait_for_link_delay() is invoked with
instead of the hardcoded 1000ms value in the debug info print.

Fixes: 7b3ba09febf4 ("PCI/PM: Shorten pci_bridge_wait_for_secondary_bus() wait
time for slow links")

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
---
 drivers/pci/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 869d204a70a3..8139b70cafa9 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4935,7 +4935,7 @@ int pci_bridge_wait_for_secondary_bus(struct pci_dev *dev, char *reset_type)
 		delay);
 	if (!pcie_wait_for_link_delay(dev, true, delay)) {
 		/* Did not train, no need to wait any further */
-		pci_info(dev, "Data Link Layer Link Active not set in 1000 msec\n");
+		pci_info(dev, "Data Link Layer Link Active not set in %d msec\n", delay);
 		return -ENOTTY;
 	}
 
-- 
2.49.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PCI: fix the printed delay amount in info print
  2025-04-12  6:09 [PATCH] PCI: fix the printed delay amount in info print Wilfred Mallawa
@ 2025-04-13  5:17 ` Damien Le Moal
  2025-04-14  0:18   ` Wilfred Mallawa
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Le Moal @ 2025-04-13  5:17 UTC (permalink / raw)
  To: Wilfred Mallawa, bhelgaas, mika.westerberg,
	sathyanarayanan.kuppuswamy, lukas
  Cc: alistair.francis, wilfred.mallawa, linux-pci, linux-kernel, cassel

On 4/12/25 15:09, Wilfred Mallawa wrote:
> From: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> 
> Print the delay amount that pcie_wait_for_link_delay() is invoked with
> instead of the hardcoded 1000ms value in the debug info print.
> 
> Fixes: 7b3ba09febf4 ("PCI/PM: Shorten pci_bridge_wait_for_secondary_bus() wait
> time for slow links")
> 

Please remove the blank line here and do not wrap the Fixes tag line.
With that fixed, looks OK to me. So feel free to add:

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

> Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> ---
>  drivers/pci/pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 869d204a70a3..8139b70cafa9 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -4935,7 +4935,7 @@ int pci_bridge_wait_for_secondary_bus(struct pci_dev *dev, char *reset_type)
>  		delay);
>  	if (!pcie_wait_for_link_delay(dev, true, delay)) {
>  		/* Did not train, no need to wait any further */
> -		pci_info(dev, "Data Link Layer Link Active not set in 1000 msec\n");
> +		pci_info(dev, "Data Link Layer Link Active not set in %d msec\n", delay);
>  		return -ENOTTY;
>  	}
>  


-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PCI: fix the printed delay amount in info print
  2025-04-13  5:17 ` Damien Le Moal
@ 2025-04-14  0:18   ` Wilfred Mallawa
  0 siblings, 0 replies; 3+ messages in thread
From: Wilfred Mallawa @ 2025-04-14  0:18 UTC (permalink / raw)
  To: Damien Le Moal, bhelgaas, mika.westerberg,
	sathyanarayanan.kuppuswamy, lukas
  Cc: alistair.francis, linux-pci, linux-kernel, cassel

On Sun, 2025-04-13 at 14:17 +0900, Damien Le Moal wrote:
> On 4/12/25 15:09, Wilfred Mallawa wrote:
> > From: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> > 
> > Print the delay amount that pcie_wait_for_link_delay() is invoked
> > with
> > instead of the hardcoded 1000ms value in the debug info print.
> > 
> > Fixes: 7b3ba09febf4 ("PCI/PM: Shorten
> > pci_bridge_wait_for_secondary_bus() wait
> > time for slow links")
> > 
> 
> Please remove the blank line here and do not wrap the Fixes tag line.
> With that fixed, looks OK to me. So feel free to add:
> 
> Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Thanks! fixed in V2.

Wilfred
> 
> > Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> > ---
> >  drivers/pci/pci.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> > index 869d204a70a3..8139b70cafa9 100644
> > --- a/drivers/pci/pci.c
> > +++ b/drivers/pci/pci.c
> > @@ -4935,7 +4935,7 @@ int pci_bridge_wait_for_secondary_bus(struct
> > pci_dev *dev, char *reset_type)
> >  		delay);
> >  	if (!pcie_wait_for_link_delay(dev, true, delay)) {
> >  		/* Did not train, no need to wait any further */
> > -		pci_info(dev, "Data Link Layer Link Active not set
> > in 1000 msec\n");
> > +		pci_info(dev, "Data Link Layer Link Active not set
> > in %d msec\n", delay);
> >  		return -ENOTTY;
> >  	}
> >  
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-14  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-12  6:09 [PATCH] PCI: fix the printed delay amount in info print Wilfred Mallawa
2025-04-13  5:17 ` Damien Le Moal
2025-04-14  0:18   ` Wilfred Mallawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome