trivial: Use DEVPATH for the physical ID when using scsi devices

This commit is contained in:
Richard Hughes 2019-01-29 10:55:08 +00:00
parent f6838c738a
commit bdd17b6ffc

View File

@ -436,7 +436,8 @@ fu_udev_device_set_physical_id (FuUdevDevice *self, const gchar *subsystem, GErr
return FALSE;
}
physical_id = g_strdup_printf ("PCI_SLOT_NAME=%s", tmp);
} else if (g_strcmp0 (subsystem, "usb") == 0) {
} else if (g_strcmp0 (subsystem, "usb") == 0 ||
g_strcmp0 (subsystem, "scsi") == 0) {
tmp = g_udev_device_get_property (udev_device, "DEVPATH");
if (tmp == NULL) {
g_set_error_literal (error,