diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-07-23 13:56:01 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:56:01 -0400 |
commit | ea68d270ff55bcdfa5d07697eb68103b5b02c7bb (patch) | |
tree | 68bcb3f721b95cca5b1fb0891e7490af19de55e5 /drivers/ide/ide-atapi.c | |
parent | 3b8ac5398ca8137b41aa5da4d9fad89153450aaa (diff) |
ide-floppy: convert to using the new atapi_flags (take 2)
while at it, remove PC_FLAG_ZIP_DRIVE from the packed command flags altogether
and query the drive type through drive->atapi_flags.
v2:
ide-floppy fix.
There should be no functionality change resulting from this patch.
[bart: IDE_FLAG_* -> IDE_AFLAG_*, dev_flags -> atapi_flags]
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index f848010c15a5..711a5f6d35e4 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -257,7 +257,7 @@ ide_startstop_t ide_transfer_pc(ide_drive_t *drive, struct ide_atapi_pc *pc, | |||
257 | } | 257 | } |
258 | 258 | ||
259 | /* Send the actual packet */ | 259 | /* Send the actual packet */ |
260 | if ((pc->flags & PC_FLAG_ZIP_DRIVE) == 0) | 260 | if ((drive->atapi_flags & IDE_AFLAG_ZIP_DRIVE) == 0) |
261 | hwif->tp_ops->output_data(drive, NULL, rq->cmd, 12); | 261 | hwif->tp_ops->output_data(drive, NULL, rq->cmd, 12); |
262 | 262 | ||
263 | return ide_started; | 263 | return ide_started; |
@@ -302,7 +302,8 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, struct ide_atapi_pc *pc, | |||
302 | bcount, dma); | 302 | bcount, dma); |
303 | 303 | ||
304 | /* Issue the packet command */ | 304 | /* Issue the packet command */ |
305 | if (pc->flags & PC_FLAG_DRQ_INTERRUPT) { | 305 | if ((pc->flags & PC_FLAG_DRQ_INTERRUPT) || |
306 | (drive->atapi_flags & IDE_AFLAG_DRQ_INTERRUPT)) { | ||
306 | ide_execute_command(drive, WIN_PACKETCMD, handler, | 307 | ide_execute_command(drive, WIN_PACKETCMD, handler, |
307 | timeout, NULL); | 308 | timeout, NULL); |
308 | return ide_started; | 309 | return ide_started; |