]> git.karo-electronics.de Git - linux-beck.git/commit
xhci: replace USB_MAXINTERFACES with config->desc.bNumInterface
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 26 Aug 2013 20:29:46 +0000 (23:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 2 Dec 2013 20:59:46 +0000 (12:59 -0800)
commit64ba419b7a5acf5fc934bfad9cc46c7f17ab8026
tree1c5e9fa457ae1f9d17f373b56717051c30560785
parent0c052aabe66c495bf1248f301a8e745da66c6633
xhci: replace USB_MAXINTERFACES with config->desc.bNumInterface

This patch replaces USB_MAXINTERFACES with config->desc.bNumInterface in
the termination condition for the loop that updates the LPM timeout of the
endpoints on the cofiguration's interfaces, in xhci_calculate_lpm_timeout(),
to avoid unnecessary loop cycles since most configurations come with 1-2
interfaces while USB_MAXINTERFACES is 32.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c