Changes in uspace/srv/hid/input/port/chardev.c [f9b2cb4c:7aa94304] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/chardev.c
rf9b2cb4c r7aa94304 59 59 /** List of devices to try connecting to. */ 60 60 static const char *in_devs[] = { 61 "char/s3c24xx_uart" 61 /** S3C24xx UART - Openmoko debug console */ 62 "char/s3c24xx_uart", 63 /** Ski console, MSIM console, Sun4v console */ 64 "devices/\\hw\\console\\a" 62 65 }; 63 66 … … 72 75 73 76 kbd_dev = kdev; 74 77 again: 75 78 for (i = 0; i < num_devs; i++) { 76 79 rc = loc_service_get_id(in_devs[i], &service_id, 0); … … 80 83 81 84 if (i >= num_devs) { 82 printf("%s: Could not find any suitable input device\n", NAME); 83 return -1; 85 /* XXX This is just a hack. */ 86 printf("%s: No input device found, sleep for retry.\n", NAME); 87 async_usleep(1000 * 1000); 88 goto again; 84 89 } 85 90 … … 110 115 } 111 116 117 printf("%s: Found input device '%s'\n", NAME, in_devs[i]); 112 118 return 0; 113 119 }
Note:
See TracChangeset
for help on using the changeset viewer.