ide: can't use SSD/non-rotational queue flag for all CFA devices
PATCH 1/1 ide: can't use SSD/non-rotational queue flag for all CFA devices
From: Bartlomiej Zolnierkiewicz <[email protected]>
Subject: [PATCH] ide: can't use SSD/non-rotational queue flag for all CFA devices
Some rotating disks also present themselves as CFA devices.
Reported-by Alan Cox <[email protected]>
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ide/ide-disk.c +1 -1
@@ -633,7 +633,7 @@ static void ide_disk_setup(ide_drive_t *printk (KERN_INFO "%s: max request size: %dKiB\n" , drive->name, q->max_sectors /2 ); -if (ata_id_is_ssd (id) ||ata_id_is_cfa (id)) +if (ata_id_is_ssd (id))queue_flag_set_unlocked (QUEUE_FLAG_NONROT , q);/* calculate drive capacity, and select LBA if possible */