Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 655772cc authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: can't use SSD/non-rotational queue flag for all CFA devices



Some rotating disks also present themselves as CFA devices.

Reported-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 4a246269
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -633,7 +633,7 @@ static void ide_disk_setup(ide_drive_t *drive)
	printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name,
	printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name,
		q->max_sectors / 2);
		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);
		queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);


	/* calculate drive capacity, and select LBA if possible */
	/* calculate drive capacity, and select LBA if possible */