usb: xhci: Fix TRB transfer length macro used for Event TRB.
commitd949314ab053a02d11bb7e5bcfc005ad1fc90175
authorVivek Gautam <gautam.vivek@samsung.com>
Thu, 21 Mar 2013 06:36:48 +0000 (21 12:06 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:02 +0000 (10 03:20 +0100)
treed3ba32aff7709de53af798c0b39aa41ba9d58142
parent4e58995c3f1bedc7acfe5e2d2a9f7deebcbdb82f
usb: xhci: Fix TRB transfer length macro used for Event TRB.

commit 1c11a172cb30492f5f6a82c6e118fdcd9946c34f upstream.

Use proper macro while extracting TRB transfer length from
Transfer event TRBs. Adding a macro EVENT_TRB_LEN (bits 0:23)
for the same, and use it instead of TRB_LEN (bits 0:16) in
case of event TRBs.

This patch should be backported to kernels as old as 2.6.31, that
contain the commit b10de142119a676552df3f0d2e3a9d647036c26a "USB: xhci:
Bulk transfer support".  This patch will have issues applying to older
kernels.

Signed-off-by: Vivek gautam <gautam.vivek@samsung.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h