This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 61165588424a6a0112bba7fa49fbf699b12ae6fe
Author: dongjiuzhu1 <dongjiuz...@xiaomi.com>
AuthorDate: Tue Dec 5 21:02:16 2023 +0800

    system/adb: using inotify to check usb hotplug event
    
    Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
---
 system/adb/Kconfig | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/system/adb/Kconfig b/system/adb/Kconfig
index 3d4c8cf98..0451e4b0e 100644
--- a/system/adb/Kconfig
+++ b/system/adb/Kconfig
@@ -113,13 +113,25 @@ config ADBD_USB_SERVER
        ---help---
                Run adb daemon on USB bus
 
+choice
+       prompt "Check usb hotplug"
+       default ADBD_USB_HOTPLUG_BYTIMER
+
 config ADBD_USB_HOTPLUG_BYTIMER
        bool "Using 1s timer to check usb hotplug"
        depends on ADBD_USB_SERVER
-       default n
        ---help---
                Using 1s timer to check usb hotplug
 
+config ADBD_USB_HOTPLUG_BYNOTIFY
+       bool "Using fs notify to check usb hotplug"
+       depends on ADBD_USB_SERVER
+       depends on FS_NOTIFY
+       ---help---
+               Using fs notify to monitor usb hotplug
+
+endchoice # Check usb hotplug
+
 config ADBD_LOGCAT_SERVICE
        bool "ADB logcat support"
        select LIBC_PRINT_EXTENSION

Reply via email to