system/core
Revision | 156fe804609d628371f4cd82083a560ae35eeaf7 (tree) |
---|---|
Time | 2019-03-05 14:43:31 |
Author | Roman Petrovski <roman.petrovski@gmai...> |
Commiter | Chih-Wei Huang |
init: support usbmisc devices
The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.
@@ -396,7 +396,7 @@ void DeviceHandler::HandleDeviceEvent(const Uevent& uevent) { | ||
396 | 396 | std::find(subsystems_.cbegin(), subsystems_.cend(), uevent.subsystem); |
397 | 397 | subsystem != subsystems_.cend()) { |
398 | 398 | devpath = subsystem->ParseDevPath(uevent); |
399 | - } else if (uevent.subsystem == "usb") { | |
399 | + } else if (uevent.subsystem == "usb" || uevent.subsystem == "usbmisc") { | |
400 | 400 | if (!uevent.device_name.empty()) { |
401 | 401 | devpath = "/dev/" + uevent.device_name; |
402 | 402 | } else { |