From: Vivek Gautam Date: Thu, 21 Mar 2013 06:36:48 +0000 (+0530) Subject: usb: xhci: Fix TRB transfer length macro used for Event TRB. X-Git-Tag: v3.2.43~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d949314ab053a02d11bb7e5bcfc005ad1fc90175;p=pandora-kernel.git 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 Signed-off-by: Sarah Sharp Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed