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

Commit b98f8803 authored by George Kibardin's avatar George Kibardin Committed by Bartlomiej Zolnierkiewicz
Browse files

ide: fix cable detection for SATA bridges

parent 90494893
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -612,12 +612,12 @@ u8 eighty_ninty_three (ide_drive_t *drive)
		printk(KERN_DEBUG "%s: skipping word 93 validity check\n",
		printk(KERN_DEBUG "%s: skipping word 93 validity check\n",
				  drive->name);
				  drive->name);


	if (ide_dev_is_sata(id) && !ivb)
		return 1;

	if (hwif->cbl != ATA_CBL_PATA80 && !ivb)
	if (hwif->cbl != ATA_CBL_PATA80 && !ivb)
		goto no_80w;
		goto no_80w;


	if (ide_dev_is_sata(id))
		return 1;

	/*
	/*
	 * FIXME:
	 * FIXME:
	 * - force bit13 (80c cable present) check also for !ivb devices
	 * - force bit13 (80c cable present) check also for !ivb devices