ide: task_end_request() fix
task_end_request() modified to always call ide_end_drive_cmd() for taskfile requests. Previously, ide_end_drive_cmd() was called only when IDE_TFLAG_FLAGGED was set. Also, ide_dma_intr() is modified to use task_end_request(). Enables TASKFILE ioctls to get valid register outputs on successful completion. Bart: - ported it over recent IDE changes Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
79f21b84d9
commit
4d7a984bdc
@@ -408,16 +408,13 @@ static ide_startstop_t task_error(ide_drive_t *drive, struct request *rq,
|
||||
return ide_error(drive, s, stat);
|
||||
}
|
||||
|
||||
static void task_end_request(ide_drive_t *drive, struct request *rq, u8 stat)
|
||||
void task_end_request(ide_drive_t *drive, struct request *rq, u8 stat)
|
||||
{
|
||||
if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) {
|
||||
ide_task_t *task = rq->special;
|
||||
u8 err = drive->hwif->INB(IDE_ERROR_REG);
|
||||
|
||||
if (task->tf_flags & IDE_TFLAG_FLAGGED) {
|
||||
u8 err = drive->hwif->INB(IDE_ERROR_REG);
|
||||
ide_end_drive_cmd(drive, stat, err);
|
||||
return;
|
||||
}
|
||||
ide_end_drive_cmd(drive, stat, err);
|
||||
return;
|
||||
}
|
||||
|
||||
if (rq->rq_disk) {
|
||||
|
Reference in New Issue
Block a user