dre: Set sys.usb.mtp.batchcancel for MTP over FFS

* Currently, cancelEvents in MTP will cancel the requests one by
   one, and it will check each response to confirm success or
   failure. However, if kernel usb controller driver got the
   cancel request, the driver will handle all requests in the same
   endpoint so that the second io_cancel in cancelEvents will be
   useless causing the cancelEvents to return error and fail the
   transfer.

 * Fix this by setting sys.usb.mtp.batchcancel for the targets
   using MTP over FFS.

Change-Id: Icea9a2815c79ff710ee887d02e4c99dfe5ad6361
This commit is contained in:
Pratham Pratap 2021-09-27 14:59:33 +05:30 committed by Albert Tang
parent e34cc81234
commit 6dba679fe2

View file

@ -161,6 +161,7 @@ persist.vendor.sensors.enable.bypass_worker=true
persist.vendor.sensors.sync_request=true persist.vendor.sensors.sync_request=true
# USB # USB
sys.usb.mtp.batchcancel=1
vendor.usb.diag.func.name=ffs vendor.usb.diag.func.name=ffs
vendor.usb.use_ffs_mtp=1 vendor.usb.use_ffs_mtp=1