162306a36Sopenharmony_ci.. SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci====================================================== 462306a36Sopenharmony_cicdc_mbim - Driver for CDC MBIM Mobile Broadband modems 562306a36Sopenharmony_ci====================================================== 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciThe cdc_mbim driver supports USB devices conforming to the "Universal 862306a36Sopenharmony_ciSerial Bus Communications Class Subclass Specification for Mobile 962306a36Sopenharmony_ciBroadband Interface Model" [1], which is a further development of 1062306a36Sopenharmony_ci"Universal Serial Bus Communications Class Subclass Specifications for 1162306a36Sopenharmony_ciNetwork Control Model Devices" [2] optimized for Mobile Broadband 1262306a36Sopenharmony_cidevices, aka "3G/LTE modems". 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciCommand Line Parameters 1662306a36Sopenharmony_ci======================= 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciThe cdc_mbim driver has no parameters of its own. But the probing 1962306a36Sopenharmony_cibehaviour for NCM 1.0 backwards compatible MBIM functions (an 2062306a36Sopenharmony_ci"NCM/MBIM function" as defined in section 3.2 of [1]) is affected 2162306a36Sopenharmony_ciby a cdc_ncm driver parameter: 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciprefer_mbim 2462306a36Sopenharmony_ci----------- 2562306a36Sopenharmony_ci:Type: Boolean 2662306a36Sopenharmony_ci:Valid Range: N/Y (0-1) 2762306a36Sopenharmony_ci:Default Value: Y (MBIM is preferred) 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciThis parameter sets the system policy for NCM/MBIM functions. Such 3062306a36Sopenharmony_cifunctions will be handled by either the cdc_ncm driver or the cdc_mbim 3162306a36Sopenharmony_cidriver depending on the prefer_mbim setting. Setting prefer_mbim=N 3262306a36Sopenharmony_cimakes the cdc_mbim driver ignore these functions and lets the cdc_ncm 3362306a36Sopenharmony_cidriver handle them instead. 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ciThe parameter is writable, and can be changed at any time. A manual 3662306a36Sopenharmony_ciunbind/bind is required to make the change effective for NCM/MBIM 3762306a36Sopenharmony_cifunctions bound to the "wrong" driver 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ciBasic usage 4162306a36Sopenharmony_ci=========== 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ciMBIM functions are inactive when unmanaged. The cdc_mbim driver only 4462306a36Sopenharmony_ciprovides a userspace interface to the MBIM control channel, and will 4562306a36Sopenharmony_cinot participate in the management of the function. This implies that a 4662306a36Sopenharmony_ciuserspace MBIM management application always is required to enable a 4762306a36Sopenharmony_ciMBIM function. 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ciSuch userspace applications includes, but are not limited to: 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci - mbimcli (included with the libmbim [3] library), and 5262306a36Sopenharmony_ci - ModemManager [4] 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ciEstablishing a MBIM IP session reequires at least these actions by the 5562306a36Sopenharmony_cimanagement application: 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci - open the control channel 5862306a36Sopenharmony_ci - configure network connection settings 5962306a36Sopenharmony_ci - connect to network 6062306a36Sopenharmony_ci - configure IP interface 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ciManagement application development 6362306a36Sopenharmony_ci---------------------------------- 6462306a36Sopenharmony_ciThe driver <-> userspace interfaces are described below. The MBIM 6562306a36Sopenharmony_cicontrol channel protocol is described in [1]. 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ciMBIM control channel userspace ABI 6962306a36Sopenharmony_ci================================== 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci/dev/cdc-wdmX character device 7262306a36Sopenharmony_ci------------------------------ 7362306a36Sopenharmony_ciThe driver creates a two-way pipe to the MBIM function control channel 7462306a36Sopenharmony_ciusing the cdc-wdm driver as a subdriver. The userspace end of the 7562306a36Sopenharmony_cicontrol channel pipe is a /dev/cdc-wdmX character device. 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ciThe cdc_mbim driver does not process or police messages on the control 7862306a36Sopenharmony_cichannel. The channel is fully delegated to the userspace management 7962306a36Sopenharmony_ciapplication. It is therefore up to this application to ensure that it 8062306a36Sopenharmony_cicomplies with all the control channel requirements in [1]. 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ciThe cdc-wdmX device is created as a child of the MBIM control 8362306a36Sopenharmony_ciinterface USB device. The character device associated with a specific 8462306a36Sopenharmony_ciMBIM function can be looked up using sysfs. For example:: 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci bjorn@nemi:~$ ls /sys/bus/usb/drivers/cdc_mbim/2-4:2.12/usbmisc 8762306a36Sopenharmony_ci cdc-wdm0 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ci bjorn@nemi:~$ grep . /sys/bus/usb/drivers/cdc_mbim/2-4:2.12/usbmisc/cdc-wdm0/dev 9062306a36Sopenharmony_ci 180:0 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci 9362306a36Sopenharmony_ciUSB configuration descriptors 9462306a36Sopenharmony_ci----------------------------- 9562306a36Sopenharmony_ciThe wMaxControlMessage field of the CDC MBIM functional descriptor 9662306a36Sopenharmony_cilimits the maximum control message size. The management application is 9762306a36Sopenharmony_ciresponsible for negotiating a control message size complying with the 9862306a36Sopenharmony_cirequirements in section 9.3.1 of [1], taking this descriptor field 9962306a36Sopenharmony_ciinto consideration. 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ciThe userspace application can access the CDC MBIM functional 10262306a36Sopenharmony_cidescriptor of a MBIM function using either of the two USB 10362306a36Sopenharmony_ciconfiguration descriptor kernel interfaces described in [6] or [7]. 10462306a36Sopenharmony_ci 10562306a36Sopenharmony_ciSee also the ioctl documentation below. 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ciFragmentation 10962306a36Sopenharmony_ci------------- 11062306a36Sopenharmony_ciThe userspace application is responsible for all control message 11162306a36Sopenharmony_cifragmentation and defragmentaion, as described in section 9.5 of [1]. 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci/dev/cdc-wdmX write() 11562306a36Sopenharmony_ci--------------------- 11662306a36Sopenharmony_ciThe MBIM control messages from the management application *must not* 11762306a36Sopenharmony_ciexceed the negotiated control message size. 11862306a36Sopenharmony_ci 11962306a36Sopenharmony_ci 12062306a36Sopenharmony_ci/dev/cdc-wdmX read() 12162306a36Sopenharmony_ci-------------------- 12262306a36Sopenharmony_ciThe management application *must* accept control messages of up the 12362306a36Sopenharmony_cinegotiated control message size. 12462306a36Sopenharmony_ci 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ci/dev/cdc-wdmX ioctl() 12762306a36Sopenharmony_ci--------------------- 12862306a36Sopenharmony_ciIOCTL_WDM_MAX_COMMAND: Get Maximum Command Size 12962306a36Sopenharmony_ciThis ioctl returns the wMaxControlMessage field of the CDC MBIM 13062306a36Sopenharmony_cifunctional descriptor for MBIM devices. This is intended as a 13162306a36Sopenharmony_ciconvenience, eliminating the need to parse the USB descriptors from 13262306a36Sopenharmony_ciuserspace. 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci:: 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_ci #include <stdio.h> 13762306a36Sopenharmony_ci #include <fcntl.h> 13862306a36Sopenharmony_ci #include <sys/ioctl.h> 13962306a36Sopenharmony_ci #include <linux/types.h> 14062306a36Sopenharmony_ci #include <linux/usb/cdc-wdm.h> 14162306a36Sopenharmony_ci int main() 14262306a36Sopenharmony_ci { 14362306a36Sopenharmony_ci __u16 max; 14462306a36Sopenharmony_ci int fd = open("/dev/cdc-wdm0", O_RDWR); 14562306a36Sopenharmony_ci if (!ioctl(fd, IOCTL_WDM_MAX_COMMAND, &max)) 14662306a36Sopenharmony_ci printf("wMaxControlMessage is %d\n", max); 14762306a36Sopenharmony_ci } 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ci 15062306a36Sopenharmony_ciCustom device services 15162306a36Sopenharmony_ci---------------------- 15262306a36Sopenharmony_ciThe MBIM specification allows vendors to freely define additional 15362306a36Sopenharmony_ciservices. This is fully supported by the cdc_mbim driver. 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ciSupport for new MBIM services, including vendor specified services, is 15662306a36Sopenharmony_ciimplemented entirely in userspace, like the rest of the MBIM control 15762306a36Sopenharmony_ciprotocol 15862306a36Sopenharmony_ci 15962306a36Sopenharmony_ciNew services should be registered in the MBIM Registry [5]. 16062306a36Sopenharmony_ci 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ciMBIM data channel userspace ABI 16462306a36Sopenharmony_ci=============================== 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ciwwanY network device 16762306a36Sopenharmony_ci-------------------- 16862306a36Sopenharmony_ciThe cdc_mbim driver represents the MBIM data channel as a single 16962306a36Sopenharmony_cinetwork device of the "wwan" type. This network device is initially 17062306a36Sopenharmony_cimapped to MBIM IP session 0. 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_ciMultiplexed IP sessions (IPS) 17462306a36Sopenharmony_ci----------------------------- 17562306a36Sopenharmony_ciMBIM allows multiplexing up to 256 IP sessions over a single USB data 17662306a36Sopenharmony_cichannel. The cdc_mbim driver models such IP sessions as 802.1q VLAN 17762306a36Sopenharmony_cisubdevices of the master wwanY device, mapping MBIM IP session Z to 17862306a36Sopenharmony_ciVLAN ID Z for all values of Z greater than 0. 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ciThe device maximum Z is given in the MBIM_DEVICE_CAPS_INFO structure 18162306a36Sopenharmony_cidescribed in section 10.5.1 of [1]. 18262306a36Sopenharmony_ci 18362306a36Sopenharmony_ciThe userspace management application is responsible for adding new 18462306a36Sopenharmony_ciVLAN links prior to establishing MBIM IP sessions where the SessionId 18562306a36Sopenharmony_ciis greater than 0. These links can be added by using the normal VLAN 18662306a36Sopenharmony_cikernel interfaces, either ioctl or netlink. 18762306a36Sopenharmony_ci 18862306a36Sopenharmony_ciFor example, adding a link for a MBIM IP session with SessionId 3:: 18962306a36Sopenharmony_ci 19062306a36Sopenharmony_ci ip link add link wwan0 name wwan0.3 type vlan id 3 19162306a36Sopenharmony_ci 19262306a36Sopenharmony_ciThe driver will automatically map the "wwan0.3" network device to MBIM 19362306a36Sopenharmony_ciIP session 3. 19462306a36Sopenharmony_ci 19562306a36Sopenharmony_ci 19662306a36Sopenharmony_ciDevice Service Streams (DSS) 19762306a36Sopenharmony_ci---------------------------- 19862306a36Sopenharmony_ciMBIM also allows up to 256 non-IP data streams to be multiplexed over 19962306a36Sopenharmony_cithe same shared USB data channel. The cdc_mbim driver models these 20062306a36Sopenharmony_cisessions as another set of 802.1q VLAN subdevices of the master wwanY 20162306a36Sopenharmony_cidevice, mapping MBIM DSS session A to VLAN ID (256 + A) for all values 20262306a36Sopenharmony_ciof A. 20362306a36Sopenharmony_ci 20462306a36Sopenharmony_ciThe device maximum A is given in the MBIM_DEVICE_SERVICES_INFO 20562306a36Sopenharmony_cistructure described in section 10.5.29 of [1]. 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_ciThe DSS VLAN subdevices are used as a practical interface between the 20862306a36Sopenharmony_cishared MBIM data channel and a MBIM DSS aware userspace application. 20962306a36Sopenharmony_ciIt is not intended to be presented as-is to an end user. The 21062306a36Sopenharmony_ciassumption is that a userspace application initiating a DSS session 21162306a36Sopenharmony_cialso takes care of the necessary framing of the DSS data, presenting 21262306a36Sopenharmony_cithe stream to the end user in an appropriate way for the stream type. 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ciThe network device ABI requires a dummy ethernet header for every DSS 21562306a36Sopenharmony_cidata frame being transported. The contents of this header is 21662306a36Sopenharmony_ciarbitrary, with the following exceptions: 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci - TX frames using an IP protocol (0x0800 or 0x86dd) will be dropped 21962306a36Sopenharmony_ci - RX frames will have the protocol field set to ETH_P_802_3 (but will 22062306a36Sopenharmony_ci not be properly formatted 802.3 frames) 22162306a36Sopenharmony_ci - RX frames will have the destination address set to the hardware 22262306a36Sopenharmony_ci address of the master device 22362306a36Sopenharmony_ci 22462306a36Sopenharmony_ciThe DSS supporting userspace management application is responsible for 22562306a36Sopenharmony_ciadding the dummy ethernet header on TX and stripping it on RX. 22662306a36Sopenharmony_ci 22762306a36Sopenharmony_ciThis is a simple example using tools commonly available, exporting 22862306a36Sopenharmony_ciDssSessionId 5 as a pty character device pointed to by a /dev/nmea 22962306a36Sopenharmony_cisymlink:: 23062306a36Sopenharmony_ci 23162306a36Sopenharmony_ci ip link add link wwan0 name wwan0.dss5 type vlan id 261 23262306a36Sopenharmony_ci ip link set dev wwan0.dss5 up 23362306a36Sopenharmony_ci socat INTERFACE:wwan0.dss5,type=2 PTY:,echo=0,link=/dev/nmea 23462306a36Sopenharmony_ci 23562306a36Sopenharmony_ciThis is only an example, most suitable for testing out a DSS 23662306a36Sopenharmony_ciservice. Userspace applications supporting specific MBIM DSS services 23762306a36Sopenharmony_ciare expected to use the tools and programming interfaces required by 23862306a36Sopenharmony_cithat service. 23962306a36Sopenharmony_ci 24062306a36Sopenharmony_ciNote that adding VLAN links for DSS sessions is entirely optional. A 24162306a36Sopenharmony_cimanagement application may instead choose to bind a packet socket 24262306a36Sopenharmony_cidirectly to the master network device, using the received VLAN tags to 24362306a36Sopenharmony_cimap frames to the correct DSS session and adding 18 byte VLAN ethernet 24462306a36Sopenharmony_ciheaders with the appropriate tag on TX. In this case using a socket 24562306a36Sopenharmony_cifilter is recommended, matching only the DSS VLAN subset. This avoid 24662306a36Sopenharmony_ciunnecessary copying of unrelated IP session data to userspace. For 24762306a36Sopenharmony_ciexample:: 24862306a36Sopenharmony_ci 24962306a36Sopenharmony_ci static struct sock_filter dssfilter[] = { 25062306a36Sopenharmony_ci /* use special negative offsets to get VLAN tag */ 25162306a36Sopenharmony_ci BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG_PRESENT), 25262306a36Sopenharmony_ci BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 1, 0, 6), /* true */ 25362306a36Sopenharmony_ci 25462306a36Sopenharmony_ci /* verify DSS VLAN range */ 25562306a36Sopenharmony_ci BPF_STMT(BPF_LD|BPF_H|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG), 25662306a36Sopenharmony_ci BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 0, 4), /* 256 is first DSS VLAN */ 25762306a36Sopenharmony_ci BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 512, 3, 0), /* 511 is last DSS VLAN */ 25862306a36Sopenharmony_ci 25962306a36Sopenharmony_ci /* verify ethertype */ 26062306a36Sopenharmony_ci BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 2 * ETH_ALEN), 26162306a36Sopenharmony_ci BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, ETH_P_802_3, 0, 1), 26262306a36Sopenharmony_ci 26362306a36Sopenharmony_ci BPF_STMT(BPF_RET|BPF_K, (u_int)-1), /* accept */ 26462306a36Sopenharmony_ci BPF_STMT(BPF_RET|BPF_K, 0), /* ignore */ 26562306a36Sopenharmony_ci }; 26662306a36Sopenharmony_ci 26762306a36Sopenharmony_ci 26862306a36Sopenharmony_ci 26962306a36Sopenharmony_ciTagged IP session 0 VLAN 27062306a36Sopenharmony_ci------------------------ 27162306a36Sopenharmony_ciAs described above, MBIM IP session 0 is treated as special by the 27262306a36Sopenharmony_cidriver. It is initially mapped to untagged frames on the wwanY 27362306a36Sopenharmony_cinetwork device. 27462306a36Sopenharmony_ci 27562306a36Sopenharmony_ciThis mapping implies a few restrictions on multiplexed IPS and DSS 27662306a36Sopenharmony_cisessions, which may not always be practical: 27762306a36Sopenharmony_ci 27862306a36Sopenharmony_ci - no IPS or DSS session can use a frame size greater than the MTU on 27962306a36Sopenharmony_ci IP session 0 28062306a36Sopenharmony_ci - no IPS or DSS session can be in the up state unless the network 28162306a36Sopenharmony_ci device representing IP session 0 also is up 28262306a36Sopenharmony_ci 28362306a36Sopenharmony_ciThese problems can be avoided by optionally making the driver map IP 28462306a36Sopenharmony_cisession 0 to a VLAN subdevice, similar to all other IP sessions. This 28562306a36Sopenharmony_cibehaviour is triggered by adding a VLAN link for the magic VLAN ID 28662306a36Sopenharmony_ci4094. The driver will then immediately start mapping MBIM IP session 28762306a36Sopenharmony_ci0 to this VLAN, and will drop untagged frames on the master wwanY 28862306a36Sopenharmony_cidevice. 28962306a36Sopenharmony_ci 29062306a36Sopenharmony_ciTip: It might be less confusing to the end user to name this VLAN 29162306a36Sopenharmony_cisubdevice after the MBIM SessionID instead of the VLAN ID. For 29262306a36Sopenharmony_ciexample:: 29362306a36Sopenharmony_ci 29462306a36Sopenharmony_ci ip link add link wwan0 name wwan0.0 type vlan id 4094 29562306a36Sopenharmony_ci 29662306a36Sopenharmony_ci 29762306a36Sopenharmony_ciVLAN mapping 29862306a36Sopenharmony_ci------------ 29962306a36Sopenharmony_ci 30062306a36Sopenharmony_ciSummarizing the cdc_mbim driver mapping described above, we have this 30162306a36Sopenharmony_cirelationship between VLAN tags on the wwanY network device and MBIM 30262306a36Sopenharmony_cisessions on the shared USB data channel:: 30362306a36Sopenharmony_ci 30462306a36Sopenharmony_ci VLAN ID MBIM type MBIM SessionID Notes 30562306a36Sopenharmony_ci --------------------------------------------------------- 30662306a36Sopenharmony_ci untagged IPS 0 a) 30762306a36Sopenharmony_ci 1 - 255 IPS 1 - 255 <VLANID> 30862306a36Sopenharmony_ci 256 - 511 DSS 0 - 255 <VLANID - 256> 30962306a36Sopenharmony_ci 512 - 4093 b) 31062306a36Sopenharmony_ci 4094 IPS 0 c) 31162306a36Sopenharmony_ci 31262306a36Sopenharmony_ci a) if no VLAN ID 4094 link exists, else dropped 31362306a36Sopenharmony_ci b) unsupported VLAN range, unconditionally dropped 31462306a36Sopenharmony_ci c) if a VLAN ID 4094 link exists, else dropped 31562306a36Sopenharmony_ci 31662306a36Sopenharmony_ci 31762306a36Sopenharmony_ci 31862306a36Sopenharmony_ci 31962306a36Sopenharmony_ciReferences 32062306a36Sopenharmony_ci========== 32162306a36Sopenharmony_ci 32262306a36Sopenharmony_ci 1) USB Implementers Forum, Inc. - "Universal Serial Bus 32362306a36Sopenharmony_ci Communications Class Subclass Specification for Mobile Broadband 32462306a36Sopenharmony_ci Interface Model", Revision 1.0 (Errata 1), May 1, 2013 32562306a36Sopenharmony_ci 32662306a36Sopenharmony_ci - http://www.usb.org/developers/docs/devclass_docs/ 32762306a36Sopenharmony_ci 32862306a36Sopenharmony_ci 2) USB Implementers Forum, Inc. - "Universal Serial Bus 32962306a36Sopenharmony_ci Communications Class Subclass Specifications for Network Control 33062306a36Sopenharmony_ci Model Devices", Revision 1.0 (Errata 1), November 24, 2010 33162306a36Sopenharmony_ci 33262306a36Sopenharmony_ci - http://www.usb.org/developers/docs/devclass_docs/ 33362306a36Sopenharmony_ci 33462306a36Sopenharmony_ci 3) libmbim - "a glib-based library for talking to WWAN modems and 33562306a36Sopenharmony_ci devices which speak the Mobile Interface Broadband Model (MBIM) 33662306a36Sopenharmony_ci protocol" 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ci - http://www.freedesktop.org/wiki/Software/libmbim/ 33962306a36Sopenharmony_ci 34062306a36Sopenharmony_ci 4) ModemManager - "a DBus-activated daemon which controls mobile 34162306a36Sopenharmony_ci broadband (2G/3G/4G) devices and connections" 34262306a36Sopenharmony_ci 34362306a36Sopenharmony_ci - http://www.freedesktop.org/wiki/Software/ModemManager/ 34462306a36Sopenharmony_ci 34562306a36Sopenharmony_ci 5) "MBIM (Mobile Broadband Interface Model) Registry" 34662306a36Sopenharmony_ci 34762306a36Sopenharmony_ci - http://compliance.usb.org/mbim/ 34862306a36Sopenharmony_ci 34962306a36Sopenharmony_ci 6) "/sys/kernel/debug/usb/devices output format" 35062306a36Sopenharmony_ci 35162306a36Sopenharmony_ci - Documentation/driver-api/usb/usb.rst 35262306a36Sopenharmony_ci 35362306a36Sopenharmony_ci 7) "/sys/bus/usb/devices/.../descriptors" 35462306a36Sopenharmony_ci 35562306a36Sopenharmony_ci - Documentation/ABI/stable/sysfs-bus-usb 356