]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: use boolean to indicate last trb in td remainder calculation
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 21 Jun 2016 07:57:59 +0000 (10:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jun 2016 18:43:39 +0000 (11:43 -0700)
commitdfc553829816f83a44eb17ba9cbe69691b9ec306
tree66aa8b888c4177fa1b46064c3ad3bbd7266635b6
parentd40b1c8e5b5673044e43b7d58bc65f957d348575
xhci: use boolean to indicate last trb in td remainder calculation

We only need to know if we are queuing the last trb for a TD when
calculating the td remainder field.
The total number of trbs left is not used.

We won't be able to trust the pre-calculated number of trbs used if we
need to align trb data by splitting or merging trbs in order to satisfy
comply with data alignment requirements in xhci specs section 4.11.7.1.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c