From 2adf008a66d58ad3f08096868167cac11b133d14 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 25 Jul 2018 10:32:39 +0800 Subject: [PATCH] Fix USB adb driver --- .../linux-4.9/drivers/usb/sunxi_usb/manager/usb_manager.c | 2 +- target/allwinner/mandolin-common/base-files/etc/rc.local | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 target/allwinner/mandolin-common/base-files/etc/rc.local diff --git a/lichee/linux-4.9/drivers/usb/sunxi_usb/manager/usb_manager.c b/lichee/linux-4.9/drivers/usb/sunxi_usb/manager/usb_manager.c index a3fc35538..b7947f1ed 100644 --- a/lichee/linux-4.9/drivers/usb/sunxi_usb/manager/usb_manager.c +++ b/lichee/linux-4.9/drivers/usb/sunxi_usb/manager/usb_manager.c @@ -50,7 +50,7 @@ atomic_t thread_suspend_flag; static int usb_device_scan_thread(void *pArg) { /* delay for udc & hcd ready */ - msleep(3000); + msleep(5000); while (thread_device_run_flag) { diff --git a/target/allwinner/mandolin-common/base-files/etc/rc.local b/target/allwinner/mandolin-common/base-files/etc/rc.local deleted file mode 100644 index 6f663d877..000000000 --- a/target/allwinner/mandolin-common/base-files/etc/rc.local +++ /dev/null @@ -1,7 +0,0 @@ -# Put your custom commands here that should be executed once -# the system init finished. By default this file does nothing. - -# patch for enable usb adb -cat /sys/devices/platform/soc/usbc0/usb_device - -exit 0