Skip to contentSkip to conversation

ide: add IDE_HFLAG_NO_LBA48 and IDE_HFLAG_NO_LBA48_DMA host flags

PATCH Sergei Shtylyov 1 participant 1 message Oct 4, 2007 1 message not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Sergei Shtylyov

author Acked-by
#1 lore raw

Hello.

Quoted 5 lines · Bartlomiej Zolnierkiewicz

Add IDE_HFLAG_NO_LBA48[_DMA] host flags, use it instead of hwif->no_lba48[_dma] and then remove no longer needed hwif->no_lba48[_dma]. As a side-effect this change fixes hwif->no_lba48_dma not being restored by ide_hwif_restore().

drivers/ide/ide-probe.c static int ide_init_queue(ide_drive_t *d · line 955

Quoted 11 lines

Index: b/drivers/ide/ide-probe.c
===================================================================

drivers/ide/ide-probe.c +2 -1
@@ -951,7 +951,8 @@ static int ide_init_queue(ide_drive_t *d
 	blk_queue_segment_boundary(q, 0xffff);
 
 	if (!hwif->rqsize) {
-		if (hwif->no_lba48 || hwif->no_lba48_dma)
+		if ((hwif->host_flags & IDE_HFLAG_NO_LBA48) ||
+		    (hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA))

Could have been:

		if (hwif->host_flags &
		   (IDE_HFLAG_NO_LBA48_DMA | IDE_HFLAG_NO_LBA48_DMA))

MBR, Sergei