diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-sff.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index b7ac80b4b1fb..fd5fe4e7e75a 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -147,7 +147,9 @@ void ata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) | |||
147 | * @tf: ATA taskfile register set for storing input | 147 | * @tf: ATA taskfile register set for storing input |
148 | * | 148 | * |
149 | * Reads ATA taskfile registers for currently-selected device | 149 | * Reads ATA taskfile registers for currently-selected device |
150 | * into @tf. | 150 | * into @tf. Assumes the device has a fully SFF compliant task file |
151 | * layout and behaviour. If you device does not (eg has a different | ||
152 | * status method) then you will need to provide a replacement tf_read | ||
151 | * | 153 | * |
152 | * LOCKING: | 154 | * LOCKING: |
153 | * Inherited from caller. | 155 | * Inherited from caller. |
@@ -156,7 +158,7 @@ void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) | |||
156 | { | 158 | { |
157 | struct ata_ioports *ioaddr = &ap->ioaddr; | 159 | struct ata_ioports *ioaddr = &ap->ioaddr; |
158 | 160 | ||
159 | tf->command = ata_chk_status(ap); | 161 | tf->command = ata_check_status(ap); |
160 | tf->feature = ioread8(ioaddr->error_addr); | 162 | tf->feature = ioread8(ioaddr->error_addr); |
161 | tf->nsect = ioread8(ioaddr->nsect_addr); | 163 | tf->nsect = ioread8(ioaddr->nsect_addr); |
162 | tf->lbal = ioread8(ioaddr->lbal_addr); | 164 | tf->lbal = ioread8(ioaddr->lbal_addr); |