From: Mian Yousaf Kaukab Date: Fri, 9 Jan 2015 12:39:04 +0000 (+0100) Subject: usb: dwc2: gadget: pick smallest acceptable fifo X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4c55ad89edb54b1eb04fe2d4c6915c9f8d69b9;p=pandora-kernel.git usb: dwc2: gadget: pick smallest acceptable fifo Current algorithm picks the first fifo which is equal to or greater than the required size. This can result in bigger fifos assigned to endpoints with smaller maxps. Change the algorithm to pick the smallest fifo which is greater than or equal to the required size. Moreover, only use signed variables when required. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed