]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: use completion event's slot id rather than dig it out of command
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:29:50 +0000 (13:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:28 +0000 (12:24 -0700)
commit6426ebe6305e6b46c56bc5127c831327bac09436
tree7bb80a06ac376a11a86afff87db4cf4e1bb00262
parent759933a2e6429d6941e605ff35f29ef7c4d371f2
xhci: use completion event's slot id rather than dig it out of command

Since the slot id retrieved from the Reset Device TRB matches the slot id in
the command completion event, which is available, there is no need to determine
it again.
This patch removes the uneccessary reassignment to slot id and adds a WARN_ON
in case the two Slot ID fields differ (although according xhci spec rev1.0
they should not differ).

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c