summaryrefslogtreecommitdiff
path: root/usb
diff options
context:
space:
mode:
Diffstat (limited to 'usb')
-rw-r--r--usb/UsbGadget.cpp6
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();