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)
commit124c39371114f43df34882685db3682a91dea10c
tree66aa8b888c4177fa1b46064c3ad3bbd7266635b6
parent5a83f04a7961bbbbae9f9ff389aef0e2c1b0d843
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