aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r--drivers/ide/ide-lib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c
index 217b7fdf2b17..c9ef77c5d62e 100644
--- a/drivers/ide/ide-lib.c
+++ b/drivers/ide/ide-lib.c
@@ -71,11 +71,12 @@ static void ide_dump_sector(ide_drive_t *drive)
71 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); 71 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48);
72 72
73 memset(&cmd, 0, sizeof(cmd)); 73 memset(&cmd, 0, sizeof(cmd));
74 if (lba48) 74 if (lba48) {
75 cmd.tf_flags = IDE_TFLAG_IN_LBA | IDE_TFLAG_IN_HOB_LBA | 75 cmd.valid.in.tf = IDE_VALID_LBA;
76 IDE_TFLAG_LBA48; 76 cmd.valid.in.hob = IDE_VALID_LBA;
77 else 77 cmd.tf_flags = IDE_TFLAG_LBA48;
78 cmd.tf_flags = IDE_TFLAG_IN_LBA | IDE_TFLAG_IN_DEVICE; 78 } else
79 cmd.valid.in.tf = IDE_VALID_LBA | IDE_VALID_DEVICE;
79 80
80 drive->hwif->tp_ops->tf_read(drive, &cmd); 81 drive->hwif->tp_ops->tf_read(drive, &cmd);
81 82