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>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
7293136810
commit
6c3c22f3cb
@@ -615,8 +615,7 @@ u8 eighty_ninty_three (ide_drive_t *drive)
|
||||
if (hwif->cbl != ATA_CBL_PATA80 && !ivb)
|
||||
goto no_80w;
|
||||
|
||||
/* Check for SATA but only if we are ATA5 or higher */
|
||||
if (id->hw_config == 0 && (id->major_rev_num & 0x7FE0))
|
||||
if (ide_dev_is_sata(id))
|
||||
return 1;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user