Changeset f9d0a86 in mainline for uspace/srv/hid/input/port/chardev.c


Ignore:
Timestamp:
2017-11-14T12:24:42Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6cad776
Parents:
887c9de (diff), d2d142a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
git-committer:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
Message:

Merge tag '0.7.1'

The merge wasn't clean, because of changes in build system. The most
significant change was partial revert of usbhc callback refactoring,
which now does not take usb transfer batch, but few named fields again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/chardev.c

    r887c9de rf9d0a86  
    5959/** List of devices to try connecting to. */
    6060static 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"
    6265};
    6366
     
    7275       
    7376        kbd_dev = kdev;
    74        
     77again:
    7578        for (i = 0; i < num_devs; i++) {
    7679                rc = loc_service_get_id(in_devs[i], &service_id, 0);
     
    8083       
    8184        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;
    8489        }
    8590       
     
    110115        }
    111116       
     117        printf("%s: Found input device '%s'\n", NAME, in_devs[i]);
    112118        return 0;
    113119}
Note: See TracChangeset for help on using the changeset viewer.