OSDN Git Service

xhci: Init a transfers xhci, slotid and epid member on epctx alloc
authorHans de Goede <hdegoede@redhat.com>
Tue, 17 Sep 2013 19:44:49 +0000 (21:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Sep 2013 09:28:40 +0000 (11:28 +0200)
commit4c5d82ecf1e8fd0720137f7d09fc77d65b51b4d0
treeb152a9493f7e9102b077a88997956b2e3f6c2ec0
parentd063c3112c4cd23a479ee18720c2bd119da2d315
xhci: Init a transfers xhci, slotid and epid member on epctx alloc

Transfers are part of an epctx, which is part of a slot, which is part of
a xhci. Transfers cannot dynamically be moved from one epctx to another,
so once created their xhci, slotid and epid are constant, so lets set these
up at creation time, rather then re-initializing them with the same
value each time a transfer gets submitted.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c