All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] usb: xhci: avoid noisy 'Starting the controller' message.
@ 2025-11-28  6:46 Heinrich Schuchardt
  2025-11-28 11:04 ` Mattijs Korpershoek
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2025-11-28  6:46 UTC (permalink / raw)
  To: Bin Meng, Marek Vasut
  Cc: Andre Przywara, Simon Glass, Andrew Goodbody, Mattijs Korpershoek,
	Love Kumar, u-boot, Heinrich Schuchardt

We should avoid overwhelming users with non-essential messages.

The message 'Starting the controller' is not written for EHCI.
We should not write it for XHCI either.

Adjust the Python test accordingly.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 drivers/usb/host/xhci.c   | 2 +-
 test/py/tests/test_usb.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 3ee1f67190f..15d81da4447 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -158,7 +158,7 @@ static int xhci_start(struct xhci_hcor *hcor)
 	u32 temp;
 	int ret;
 
-	puts("Starting the controller\n");
+	debug("Starting the controller\n");
 	temp = xhci_readl(&hcor->or_usbcmd);
 	temp |= (CMD_RUN);
 	xhci_writel(&hcor->or_usbcmd, temp);
diff --git a/test/py/tests/test_usb.py b/test/py/tests/test_usb.py
index 1dcd0834f55..9226d1c174d 100644
--- a/test/py/tests/test_usb.py
+++ b/test/py/tests/test_usb.py
@@ -58,7 +58,7 @@ def test_usb_start(ubman):
     assert 'USB init failed' not in output
     assert 'starting USB...' in output
 
-    if 'Starting the controller' in output:
+    if ubman.config.buildconfig.get('config_usb_xhci_hcd'):
         assert 'USB XHCI' in output
 
     output = ubman.run_command('echo $?')
@@ -104,7 +104,7 @@ def test_usb_reset(ubman):
     assert 'USB init failed' not in output
     assert 'resetting USB...' in output
 
-    if 'Starting the controller' in output:
+    if ubman.config.buildconfig.get('config_usb_xhci_hcd'):
         assert 'USB XHCI' in output
 
     output = ubman.run_command('echo $?')
-- 
2.51.0


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

* Re: [PATCH 1/1] usb: xhci: avoid noisy 'Starting the controller' message.
  2025-11-28  6:46 [PATCH 1/1] usb: xhci: avoid noisy 'Starting the controller' message Heinrich Schuchardt
@ 2025-11-28 11:04 ` Mattijs Korpershoek
  0 siblings, 0 replies; 2+ messages in thread
From: Mattijs Korpershoek @ 2025-11-28 11:04 UTC (permalink / raw)
  To: Heinrich Schuchardt, Bin Meng, Marek Vasut
  Cc: Andre Przywara, Simon Glass, Andrew Goodbody, Mattijs Korpershoek,
	Love Kumar, u-boot, Heinrich Schuchardt

Hi Heinrich,

Thank you for the patch.

On Fri, Nov 28, 2025 at 07:46, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote:

> We should avoid overwhelming users with non-essential messages.
>
> The message 'Starting the controller' is not written for EHCI.
> We should not write it for XHCI either.
>
> Adjust the Python test accordingly.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>

> ---
>  drivers/usb/host/xhci.c   | 2 +-
>  test/py/tests/test_usb.py | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
>

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

end of thread, other threads:[~2025-11-28 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28  6:46 [PATCH 1/1] usb: xhci: avoid noisy 'Starting the controller' message Heinrich Schuchardt
2025-11-28 11:04 ` Mattijs Korpershoek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.