ANDROID: usb: gadget: fix MTP enumeration issue under super speed mode
authorJiebing Li <jiebing.li@intel.com>
Tue, 10 Mar 2015 03:24:00 +0000 (11:24 +0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 1 May 2017 09:49:51 +0000 (15:19 +0530)
commit09ebc323c3b203f96191a5d928dde07be3fc966a
tree55d2f0f7f9affd3bb173099e61d5a982637a34e9
parent53b4f1750fb2ab81bb2631c5f0843b44e429d752
ANDROID: usb: gadget: fix MTP enumeration issue under super speed mode

MTP function doesn't show as a drive in Windows when the device
is connected to PC's USB3 port, because device fails to respond
ACK to BULK OUT transfer request.

This patch modifies MTP OUT request length as multiple of MaxPacketSize
per databook requirement in order to fix this issue.

Patchset: mtp

Change-Id: I090d7880ff00c499dc5ba7fd644b1fe7cd87fcb5
Signed-off-by: Jiebing Li <jiebing.li@intel.com>
Signed-off-by: Wang, Yu <yu.y.wang@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
drivers/usb/gadget/function/f_mtp.c