diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2007-09-11 16:28:36 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-09-11 16:28:36 -0400 |
commit | 6c3c22f3cb2b7cd0a42a024b93db76b5c3133d37 (patch) | |
tree | 13cd84e47c9d354930443ef7db2df1985446ffc4 /drivers | |
parent | 7293136810936bbde403bcb67ac1b4dbae4dd790 (diff) |
ide: add ide_dev_is_sata() helper (take 2)
Make the SATA drive detection code from eighty_ninty_three() into inline
ide_dev_is_sata() helper fixing it along the way to be more strict while
checking word 80 for the reserved values...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-iops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index f4cd2700cae5..646a54e233d3 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -615,8 +615,7 @@ u8 eighty_ninty_three (ide_drive_t *drive) | |||
615 | if (hwif->cbl != ATA_CBL_PATA80 && !ivb) | 615 | if (hwif->cbl != ATA_CBL_PATA80 && !ivb) |
616 | goto no_80w; | 616 | goto no_80w; |
617 | 617 | ||
618 | /* Check for SATA but only if we are ATA5 or higher */ | 618 | if (ide_dev_is_sata(id)) |
619 | if (id->hw_config == 0 && (id->major_rev_num & 0x7FE0)) | ||
620 | return 1; | 619 | return 1; |
621 | 620 | ||
622 | /* | 621 | /* |