]> 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)
commit40d87b65abed1382740625de59fc8582d3d0b428
tree2711277a8a92ff01a970ad49ad41e5d3f0fd24e2
parente861ce8f2ca45ec2d6683477f6cb948cdacbde40
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