All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Zimmerman <pauldzim@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Stefan Hajnoczi" <stefanha@gmail.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Paul Zimmerman" <pauldzim@gmail.com>,
	"John Snow" <jsnow@redhat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: [PATCH v5 7/7] raspi2 acceptance test: add test for dwc-hsotg (dwc2) USB host
Date: Mon, 11 May 2020 23:49:00 -0700	[thread overview]
Message-ID: <20200512064900.28554-8-pauldzim@gmail.com> (raw)
In-Reply-To: <20200512064900.28554-1-pauldzim@gmail.com>

Add a check for functional dwc-hsotg (dwc2) USB host emulation to
the Raspi 2 acceptance test

Reviewed-by: Philippe Mathieu-Daude <f4bug@amsat.org>
Signed-off-by: Paul Zimmerman <pauldzim@gmail.com>
---
 tests/acceptance/boot_linux_console.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index c6b06a1a13..abb5ca3dd4 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -378,13 +378,18 @@ class BootLinuxConsole(Test):
 
         self.vm.set_console()
         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
-                               serial_kernel_cmdline[uart_id])
+                               serial_kernel_cmdline[uart_id] +
+                               ' root=/dev/mmcblk0p2 rootwait ' +
+                               'dwc_otg.fiq_fsm_enable=0')
         self.vm.add_args('-kernel', kernel_path,
                          '-dtb', dtb_path,
-                         '-append', kernel_command_line)
+                         '-append', kernel_command_line,
+                         '-device', 'usb-kbd')
         self.vm.launch()
         console_pattern = 'Kernel command line: %s' % kernel_command_line
         self.wait_for_console_pattern(console_pattern)
+        console_pattern = 'Product: QEMU USB Keyboard'
+        self.wait_for_console_pattern(console_pattern)
 
     def test_arm_raspi2_uart0(self):
         """
-- 
2.17.1



  parent reply	other threads:[~2020-05-12  6:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12  6:48 [PATCH v5 0/7] dwc-hsotg (aka dwc2) USB host controller emulation Paul Zimmerman
2020-05-12  6:48 ` [PATCH v5 1/7] raspi: add BCM2835 SOC MPHI emulation Paul Zimmerman
2020-05-15  8:10   ` Philippe Mathieu-Daudé
2020-05-15  9:19     ` Paul Zimmerman
2020-05-18 15:14   ` Peter Maydell
2020-05-12  6:48 ` [PATCH v5 2/7] dwc-hsotg (dwc2) USB host controller register definitions Paul Zimmerman
2020-05-15  8:07   ` Philippe Mathieu-Daudé
2020-05-15  8:40     ` Gerd Hoffmann
2020-05-12  6:48 ` [PATCH v5 3/7] dwc-hsotg (dwc2) USB host controller state definitions Paul Zimmerman
2020-05-12  6:48 ` [PATCH v5 4/7] dwc-hsotg (dwc2) USB host controller emulation Paul Zimmerman
2020-05-18 15:34   ` Peter Maydell
2020-05-20  5:48     ` Paul Zimmerman
2020-05-20 13:18       ` Peter Maydell
2020-05-20 21:24         ` Paul Zimmerman
2020-05-26  7:00           ` Damien Hedde
2020-05-12  6:48 ` [PATCH v5 5/7] usb: add short-packet handling to usb-storage driver Paul Zimmerman
2020-05-12  6:48 ` [PATCH v5 6/7] wire in the dwc-hsotg (dwc2) USB host controller emulation Paul Zimmerman
2020-05-12  6:49 ` Paul Zimmerman [this message]
2020-05-12  7:43 ` [PATCH v5 0/7] dwc-hsotg (aka dwc2) " no-reply
2020-05-14 12:22 ` Gerd Hoffmann
2020-05-14 12:42   ` Peter Maydell
2020-05-18 15:39 ` Peter Maydell

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=20200512064900.28554-8-pauldzim@gmail.com \
    --to=pauldzim@gmail.com \
    --cc=f4bug@amsat.org \
    --cc=jsnow@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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.