ide: add IDE_HFLAG_NO_LBA48 and IDE_HFLAG_NO_LBA48_DMA host flags
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(). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -951,7 +951,8 @@ static int ide_init_queue(ide_drive_t *drive)
|
||||
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))
|
||||
hwif->rqsize = 256;
|
||||
else
|
||||
hwif->rqsize = 65536;
|
||||
|
Reference in New Issue
Block a user