From 6dba679fe2fdcb3a7e137ed01681b6d37ab8627b Mon Sep 17 00:00:00 2001 From: Pratham Pratap Date: Mon, 27 Sep 2021 14:59:33 +0530 Subject: [PATCH] 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 --- vendor.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor.prop b/vendor.prop index c100371..57f537b 100644 --- a/vendor.prop +++ b/vendor.prop @@ -161,6 +161,7 @@ persist.vendor.sensors.enable.bypass_worker=true persist.vendor.sensors.sync_request=true # USB +sys.usb.mtp.batchcancel=1 vendor.usb.diag.func.name=ffs vendor.usb.use_ffs_mtp=1