USB: android: Handle control request in PTP mode.
Some hosts may send MTP_REQ_CANCEL followed by
MTP_REQ_GET_DEVICE_STATUS and device returns ENOSUPP
from composite setup. This happens when previous
control request is canceled, host send this command
and this command is expected to be handled from control
request function. Earlier this was tried once by older
hosts but in latest hosts this is tried uptill three
times. Host delays the packet transfers and may keep
trying this repeatedly. An overall impact on throughput
may be seen if trying to read large files in PTP mode.
Add contol request handler to handle the requests in
PTP mode.
CRs-Fixed: 740778
Change-Id: Ifc22b526793b4f345d30641802f4a8f620d14cd5
Signed-off-by:
Sujeet Kumar <ksujeet@codeaurora.org>
Loading
Please register or sign in to comment