From a608ce35062baa372d5e13009bcc9b8a70ae75a3 Mon Sep 17 00:00:00 2001 From: Mayank Rana Date: Thu, 15 Jun 2017 10:17:19 -0700 Subject: [PATCH] init.msm.usb.configfs.rc: fix interface order between ADB and RMNET 0x9084 PID supports - DIAG + QDSS Trace (bulk in) + QDSS Debug (bulk in/out) + ADB + RMNET USB composition. USB rules for this composition has order change between ADB and RMNET interface causing mismatch with expected interface number for these interfaces with USB host side driver. This results into loading ADB driver for RMNET interface and RMNET driver for ADB interface with USB host. Fix this issue by correcting ADB and RMNET bind order with USB rule. CRs-Fixed: 2061593 Change-Id: I882aea6d6a8a04d954c7040fba06fadcea60f728 --- rootdir/etc/init.msm.usb.configfs.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.msm.usb.configfs.rc b/rootdir/etc/init.msm.usb.configfs.rc index 22bbe89f..f7e9566b 100644 --- a/rootdir/etc/init.msm.usb.configfs.rc +++ b/rootdir/etc/init.msm.usb.configfs.rc @@ -355,8 +355,8 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,qdss,rmnet,adb & write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1 symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1 symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f2 - symlink /config/usb_gadget/g1/functions/${sys.usb.rmnet.func.name}.rmnet /config/usb_gadget/g1/configs/b.1/f3 - symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4 + symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3 + symlink /config/usb_gadget/g1/functions/${sys.usb.rmnet.func.name}.rmnet /config/usb_gadget/g1/configs/b.1/f4 write /config/usb_gadget/g1/UDC ${sys.usb.controller} setprop sys.usb.state ${sys.usb.config}