hw/usb-ohci: Honour endpoint maximum packet size
commit905fb0342ca8fc480dd3e08f8a7aaabc339da796
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 14 Sep 2011 17:48:59 +0000 (14 18:48 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2011 10:58:51 +0000 (13 12:58 +0200)
tree489d20a4a14d5436742c31a9c96dcbb524356e51
parent8d11b78c9a243ae2d9cf27a15216f8554b6fc63d
hw/usb-ohci: Honour endpoint maximum packet size

Honour the maximum packet size for endpoints; this applies when
sending non-isochronous data and means we transfer only as
much as the endpoint allows, leaving the transfer descriptor
on the list for another go next time around. This allows
usb-net to work when connected to an OHCI controller model.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ohci.c