diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:43 -0400 |
commit | 4ab3d50224e35811b3351c28e63057595e8406e6 (patch) | |
tree | ccd1a729543defa03df97f0dc0b416f53c793dcc /drivers/ide/ide-cd.c | |
parent | a36223b0dc14606b5c80aacbbe6288133693a841 (diff) |
ide: set IDE_AFLAG_DRQ_INTERRUPT in do_identify()
Set IDE_AFLAG_DRQ_INTERRUPT in do_identify() instead of ATAPI
device drivers *_setup() methods.
While at it:
- use ata_id_cdb_intr()
There should be no functional changes caused by this patch.
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 84bc2413312a..e6c2a2e66ed2 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1891,9 +1891,6 @@ static int ide_cdrom_setup(ide_drive_t *drive) | |||
1891 | drive->atapi_flags = IDE_AFLAG_MEDIA_CHANGED | IDE_AFLAG_NO_EJECT | | 1891 | drive->atapi_flags = IDE_AFLAG_MEDIA_CHANGED | IDE_AFLAG_NO_EJECT | |
1892 | ide_cd_flags(id); | 1892 | ide_cd_flags(id); |
1893 | 1893 | ||
1894 | if ((id[ATA_ID_CONFIG] & 0x0060) == 0x20) | ||
1895 | drive->atapi_flags |= IDE_AFLAG_DRQ_INTERRUPT; | ||
1896 | |||
1897 | if ((drive->atapi_flags & IDE_AFLAG_VERTOS_300_SSD) && | 1894 | if ((drive->atapi_flags & IDE_AFLAG_VERTOS_300_SSD) && |
1898 | fw_rev[4] == '1' && fw_rev[6] <= '2') | 1895 | fw_rev[4] == '1' && fw_rev[6] <= '2') |
1899 | drive->atapi_flags |= (IDE_AFLAG_TOCTRACKS_AS_BCD | | 1896 | drive->atapi_flags |= (IDE_AFLAG_TOCTRACKS_AS_BCD | |