tune usb irq (dwc3) based on usb function
This among other things greatly increases tethering performance. Bug: 185092876 Test: TreeHugger, built and booted on an oriole, enabled tethering Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic9f0b4bef05250bb38c91dc1e046366098d98dc0
This commit is contained in:
parent
ed651c86bf
commit
a24469c9d0
4 changed files with 29 additions and 0 deletions
|
@ -367,6 +367,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