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)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 20 Apr 2017 19:43:54 +0000 (12:43 -0700)
commit6b4bbab071da8df7a78be4514230bf1369d2b537
tree810a35d64ae1fcc2d8763aad3ee12d245feb9b05
parent9560fe633ff2c042d1e7c61df8f94c38e0d21061
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