diff options
author | Ray Chi <raychi@google.com> | 2022-01-11 18:30:46 +0800 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-01-25 03:28:35 +0000 |
commit | a872edb52832203ba7ad9fcaa9fdb598dafbb430 (patch) | |
tree | 08838cf19e4dbfbd5a57bf7fb2262e1b14ae90f9 /usb | |
parent | cac15c0134bcd4f55850eb185628296fc826a918 (diff) | |
download | gs201-a872edb52832203ba7ad9fcaa9fdb598dafbb430.tar.gz |
tune usb irq (dwc3) based on usb function
This among other things greatly increases tethering performance.
Bug: 202103325
Test: tput improved
(synced from commit f9e02b98b8243d2db566df16d4e763250ac9efaf)
Change-Id: I19b22d748352eb04bc27d85c0f69fa2571b63d53
Diffstat (limited to 'usb')
-rw-r--r-- | usb/UsbGadget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usb/UsbGadget.cpp b/usb/UsbGadget.cpp index d8e1b1f..23e5659 100644 --- a/usb/UsbGadget.cpp +++ b/usb/UsbGadget.cpp @@ -390,6 +390,12 @@ Return<void> UsbGadget::setCurrentUsbFunctions(uint64_t functions, goto error; } + if (functions & GadgetFunction::NCM) { + SetProperty("vendor.usb.dwc3_irq", "big"); + } else { + SetProperty("vendor.usb.dwc3_irq", "medium"); + } + ALOGI("Usb Gadget setcurrent functions called successfully"); return Void(); |