hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/ata/libata-transport.c
....@@ -266,6 +266,10 @@
266266 put_device(dev);
267267 }
268268
269
+static const struct device_type ata_port_sas_type = {
270
+ .name = ATA_PORT_TYPE_NAME,
271
+};
272
+
269273 /** ata_tport_add - initialize a transport ATA port structure
270274 *
271275 * @parent: parent device
....@@ -283,7 +287,10 @@
283287 struct device *dev = &ap->tdev;
284288
285289 device_initialize(dev);
286
- dev->type = &ata_port_type;
290
+ if (ap->flags & ATA_FLAG_SAS_HOST)
291
+ dev->type = &ata_port_sas_type;
292
+ else
293
+ dev->type = &ata_port_type;
287294
288295 dev->parent = parent;
289296 ata_host_get(ap->host);