• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revision156fe804609d628371f4cd82083a560ae35eeaf7 (tree)
Time2019-03-05 14:43:31
AuthorRoman Petrovski <roman.petrovski@gmai...>
CommiterChih-Wei Huang

Log Message

init: support usbmisc devices

The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.

Change Summary

Incremental Difference

--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -396,7 +396,7 @@ void DeviceHandler::HandleDeviceEvent(const Uevent& uevent) {
396396 std::find(subsystems_.cbegin(), subsystems_.cend(), uevent.subsystem);
397397 subsystem != subsystems_.cend()) {
398398 devpath = subsystem->ParseDevPath(uevent);
399- } else if (uevent.subsystem == "usb") {
399+ } else if (uevent.subsystem == "usb" || uevent.subsystem == "usbmisc") {
400400 if (!uevent.device_name.empty()) {
401401 devpath = "/dev/" + uevent.device_name;
402402 } else {