mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
ide: fix cable detection for SATA bridges
Signed-off-by: George Kibardin <george-kibardin@yandex.ru> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
90494893b5
commit
b98f8803cc
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue