|
@@ -1238,7 +1238,7 @@ static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors)
|
|
|
} else
|
|
|
tf.command = ATA_CMD_READ_NATIVE_MAX;
|
|
|
|
|
|
- tf.protocol |= ATA_PROT_NODATA;
|
|
|
+ tf.protocol = ATA_PROT_NODATA;
|
|
|
tf.device |= ATA_LBA;
|
|
|
|
|
|
err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
|
|
@@ -1297,7 +1297,7 @@ static int ata_set_max_sectors(struct ata_device *dev, u64 new_sectors)
|
|
|
tf.device |= (new_sectors >> 24) & 0xf;
|
|
|
}
|
|
|
|
|
|
- tf.protocol |= ATA_PROT_NODATA;
|
|
|
+ tf.protocol = ATA_PROT_NODATA;
|
|
|
tf.device |= ATA_LBA;
|
|
|
|
|
|
tf.lbal = (new_sectors >> 0) & 0xff;
|