]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: add argument 'slot_id' in stop_ep, set_deq and reset_ep cmd handlers
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:30:00 +0000 (13:30 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:40 +0000 (12:24 -0700)
commitaf027ccacf178ebb0b1e677bb33f6be1ecc8e190
tree2711277a8a92ff01a970ad49ad41e5d3f0fd24e2
parentdfbf4578f4dd8eec08027f5f4cac3dd6b48e7495
xhci: add argument 'slot_id' in stop_ep, set_deq and reset_ep cmd handlers

Since the Slot ID field in the command completion event matches the Slot ID
field in the associated command TRB for the Stop Endpoint, Set Dequeue Pointer
and Reset Endpoint commands, this patch adds in the handlers of their
completion events a 'slot_id' argument and removes the slot id calculation
in each of them.
Also, a WARN_ON() was added in case the slot ids reported by command TRB and
event TRB differ (although according to xhci spec rev1.0 that should not happen)

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