• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

system/corennnnn


Commit MetaInfo

修訂86e780c5c07343bfc57285613a9fc2d9a7353f70 (tree)
時間2016-08-26 02:38:34
作者Roman 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

差異

--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -681,7 +681,7 @@ static void handle_generic_device_event(struct uevent *uevent)
681681 return;
682682 mkdir_recursive_for_devpath(devpath);
683683 } else if (!strncmp(uevent->subsystem, "usb", 3)) {
684- if (!strcmp(uevent->subsystem, "usb")) {
684+ if (!strcmp(uevent->subsystem, "usb") || !strcmp(uevent->subsystem, "usbmisc")) {
685685 if (uevent->device_name) {
686686 if (!assemble_devpath(devpath, "/dev", uevent->device_name))
687687 return;