All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v1 2/3] test-runner.rst: Add documentation for USB-passthrough
Date: Wed, 18 Jun 2025 15:11:24 -0400	[thread overview]
Message-ID: <20250618191125.3123951-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20250618191125.3123951-1-luiz.dentz@gmail.com>

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This documents the newly added option -U/--usb and adds a dedicated
section that explains the required the kernel image to build with
some extra config options to enable passing -device qemu-xhci in order
to use -device usb-host.
---
 doc/test-runner.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/doc/test-runner.rst b/doc/test-runner.rst
index 423a9379c0ab..1b4eeb9d4c1c 100644
--- a/doc/test-runner.rst
+++ b/doc/test-runner.rst
@@ -22,6 +22,7 @@ OPTIONS
 :-l/--emulator: Start btvirt
 :-A/-audio[=path]: Start audio server
 :-u/--unix[=path]: Provide serial device
+:-U/--usb=<qemu_args>: Provide USB device
 :-q/--qemu=<path>: QEMU binary
 :-k/--kernel=<image>: Kernel image (bzImage)
 :-h/--help: Show help options
@@ -176,3 +177,18 @@ Running shell with host controller using btproxy
 	$ tools/btproxy -u [1]
 	$ tools/test-runner -u -d -k /pathto/bzImage -- /bin/bash [2]
 
+Running shell with host controller USB-passthrough
+--------------------------------------------------
+
+In addition the above kernel config option the following is required:
+
+.. code-block::
+
+	CONFIG_USB=y
+	CONFIG_USB_XHCI_HCD=y
+	CONFIG_USB_XHCI_PLATFORM=y
+
+.. code-block::
+
+	$ tools/test-runner -U "usb-host,vendorid=<0xxxxx>,productid=<0xxxxx>" \
+	-d -k /pathto/bzImage -- /bin/bash
-- 
2.49.0


  reply	other threads:[~2025-06-18 19:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-18 19:11 [PATCH BlueZ v1 1/3] test-runner: Add -U/--usb option Luiz Augusto von Dentz
2025-06-18 19:11 ` Luiz Augusto von Dentz [this message]
2025-06-18 19:11 ` [PATCH BlueZ v1 3/3] tester.config: Add config options for USB-passthrough and drivers Luiz Augusto von Dentz
2025-06-18 20:47 ` [BlueZ,v1,1/3] test-runner: Add -U/--usb option bluez.test.bot
2025-06-19 18:10 ` [PATCH BlueZ v1 1/3] " patchwork-bot+bluetooth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250618191125.3123951-2-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.