tmp#

含有多个配置的描述符

https://github.com/linuxhw/LsUSB/blob/master/Notebook/Hewlett-Packard/Laptop/Laptop%2015s-fq0xxx/4BB07732F905/ROSA-12.2/5.10.74-GENERIC-2ROSA2021.1-X86_64/X86_64/5C45B0B08A

/sys/kernel/debug/usb/devices

https://programmerall.com/article/42562063276/

就是usb 的vcp 模式和msd 挂载 我先加入笔记里,到时看看是否实用、实用的话再讲

韦老师,USB里面休眠唤醒suspend/resueme/autosuspend/remote-wakeup这些也挺常用的,希望老师后面也可以讲一下

L:\kernel_projects\Linux-4.9.88\drivers\usb\core\message.c
	usb_set_configuration
		nintf = cp->desc.bNumInterfaces;
		new_interfaces = kmalloc(nintf * sizeof(*new_interfaces),
				GFP_NOIO);

		intf->dev.bus = &usb_bus_type;
		intf->dev.type = &usb_if_device_type;
		intf->dev.groups = usb_interface_groups;

		ret = device_add(&intf->dev);