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
This commit is contained in:
parent
cac15c0134
commit
a872edb528
4 changed files with 29 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue