VirtualBox

Changeset 102640 in vbox


Ignore:
Timestamp:
Dec 19, 2023 10:36:16 AM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160801
Message:

Main: Darwin Host USB: Fix asssertion on USB device attach to the host.

Asssertion was observed on macOS Sonoma 14.1.2 when Samsung T5 external SSD
was attached to the host. This SSD will report its speed as "Limited
to 5 Gb/s" with enum value 4. Treat it the same as USBDEVICESPEED_SUPER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r100108 r102640  
    11561156                uint8_t bSpeed;
    11571157                AssertBreak(darwinDictGetU8(PropsRef, CFSTR(kUSBDevicePropertySpeed), &bSpeed));
    1158                 Assert(bSpeed <= 3);
    1159                 pCur->enmSpeed = bSpeed == 3 ? USBDEVICESPEED_SUPER
     1158                Assert(bSpeed <= 4);
     1159                pCur->enmSpeed = bSpeed == 4 ? USBDEVICESPEED_SUPER
     1160                               : bSpeed == 3 ? USBDEVICESPEED_SUPER
    11601161                               : bSpeed == 2 ? USBDEVICESPEED_HIGH
    11611162                               : bSpeed == 1 ? USBDEVICESPEED_FULL
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette