Skip to content

Commit

Permalink
ide: fix cable detection for SATA bridges
Browse files Browse the repository at this point in the history
Signed-off-by: George Kibardin <george-kibardin@yandex.ru>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
George Kibardin authored and Bartlomiej Zolnierkiewicz committed Jan 10, 2008
1 parent 9049489 commit b98f880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,12 @@ u8 eighty_ninty_three (ide_drive_t *drive)
printk(KERN_DEBUG "%s: skipping word 93 validity check\n",
drive->name);

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

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

if (ide_dev_is_sata(id))
return 1;

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

0 comments on commit b98f880

Please sign in to comment.