xhci: Add No Op Command
commitdc2c037fd23ea3dcf2e13afda22c1c64ab56f96b
authorHikaru Nishida <hikarupsp@gmail.com>
Sat, 20 Jul 2019 06:04:27 +0000 (20 15:04 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Aug 2019 08:42:00 +0000 (21 10:42 +0200)
treeb7012c18b04df7e507b3aaadce56f8b6f5216588
parentbaeed705081be1919d6929dfdb405c37b2df9cd5
xhci: Add No Op Command

This commit adds No Op Command (23) to xHC for verifying the operation
of the Command Ring mechanisms.
No Op Command is defined in XHCI spec (4.6.2) and just reports Command
Completion Event with Completion Code == Success.
Before this commit, No Op Command is not implemented so xHC reports
Command Completion Event with Completion Code == TRB Error. This commit
fixes this behaviour to report Completion Code correctly.

Signed-off-by: Hikaru Nishida <hikarupsp@gmail.com>
Message-id: 20190720060427.50457-1-hikarupsp@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c