Revision f264cfbf

b/usb-linux.c
1378 1378
            if (get_tag_value(buf, sizeof(buf), line, "Spd=", " ") < 0) {
1379 1379
                goto fail;
1380 1380
            }
1381
            if (!strcmp(buf, "480")) {
1381
            if (!strcmp(buf, "5000")) {
1382
                speed = USB_SPEED_SUPER;
1383
            } else if (!strcmp(buf, "480")) {
1382 1384
                speed = USB_SPEED_HIGH;
1383 1385
            } else if (!strcmp(buf, "1.5")) {
1384 1386
                speed = USB_SPEED_LOW;
......
1522 1524
            if (!usb_host_read_file(line, sizeof(line), "speed", de->d_name)) {
1523 1525
                goto the_end;
1524 1526
            }
1525
            if (!strcmp(line, "480\n")) {
1527
            if (!strcmp(line, "5000\n")) {
1528
                speed = USB_SPEED_SUPER;
1529
            } else if (!strcmp(line, "480\n")) {
1526 1530
                speed = USB_SPEED_HIGH;
1527 1531
            } else if (!strcmp(line, "1.5\n")) {
1528 1532
                speed = USB_SPEED_LOW;
......
1799 1803
    case USB_SPEED_HIGH:
1800 1804
        speed_str = "480";
1801 1805
        break;
1806
    case USB_SPEED_SUPER:
1807
        speed_str = "5000";
1808
        break;
1802 1809
    default:
1803 1810
        speed_str = "?";
1804 1811
        break;

Also available in: Unified diff