Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libusb/os/darwin_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,9 @@ static bool get_device_port (io_service_t service, UInt8 *port) {

kresult = IORegistryEntryGetParentEntry (service, kIOServicePlane, &parent);
if (kIOReturnSuccess == kresult) {
ret = get_ioregistry_value_data (parent, CFSTR("port"), 1, port);
/* macOS 15 and older name the port number property "port", macOS 26 names it "usb-port-number". */
ret = get_ioregistry_value_data (parent, CFSTR("port"), 1, port) ||
get_ioregistry_value_data (parent, CFSTR("usb-port-number"), 1, port);
IOObjectRelease (parent);
}

Expand Down
Loading