ide: remove supports_dma field from ide_driver_t
PATCH 1/1 ide: remove supports_dma field from ide_driver_t
ide: remove supports_dma field from ide_driver_t
driver->supports_dma was used together with CONFIG_IDEDMA_ONLYDISK to limit DMA access to disk devices only. However Alan introduced new scheme in 2.5.63 and this field is not needed any longer because all ide drivers support DMA.
drivers/ide/ide-cd.c | 1 - drivers/ide/ide-default.c | 6 ------ drivers/ide/ide-disk.c | 1 - drivers/ide/ide-floppy.c | 1 - drivers/ide/ide-tape.c | 1 - drivers/ide/ide.c | 5 ----- drivers/scsi/ide-scsi.c | 1 - include/linux/ide.h | 1 - 8 files changed, 17 deletions(-)
drivers/ide/ide.c renamed from drivers/ide/ide.c~ide-supports-dma +0 -5
@@ -1359,8 +1359,6 @@ static int set_io_32bit(ide_drive_t *dristatic int set_using_dma (ide_drive_t *drive,int arg) { -if (!DRIVER (drive)->supports_dma) -return -EPERM ;if (!drive->id || !(drive->id->capability &1 ))return -EPERM ;if (HWIF (drive)->ide_dma_check ==NULL )
@@ -2443,9 +2441,6 @@ int ide_register_subdriver (ide_drive_tif ((drive->autotune ==IDE_TUNE_DEFAULT ) || (drive->autotune ==IDE_TUNE_AUTO )) {/* DMA timings and setup moved to ide-probe.c */ -if (!driver->supports_dma &&HWIF (drive)->ide_dma_off_quietly) -// HWIF(drive)->ide_dma_off_quietly(drive); -HWIF (drive)->ide_dma_off (drive); drive->dsc_overlap = (drive->next != drive && driver->supports_dsc_overlap); drive->nice1 =1 ; }
drivers/ide/ide-cd.c renamed from drivers/ide/ide-cd.c~ide-supports-dma +0 -1
@@ -3318,7 +3318,6 @@ static ide_driver_t ide_cdrom_driver = { .version = IDECD_VERSION, .media = ide_cdrom, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 1, .cleanup = ide_cdrom_cleanup, .do_request = ide_do_rw_cdrom,
drivers/ide/ide-default.c renamed from drivers/ide/ide-default.c~ide-supports-dma +0 -6
@@ -40,18 +40,12 @@ static int idedefault_attach(ide_drive_t/* * IDE subdriver functions, registered with ide.c -* -* idedefault *must* support DMA because it will be -* attached before the other drivers are loaded and -* we don't want to lose the DMA status at probe -* time. */ ide_driver_t idedefault_driver = { .name ="ide-default" , .version =IDEDEFAULT_VERSION , .attach = idedefault_attach, - .supports_dma =1 , .drives =LIST_HEAD_INIT (idedefault_driver.drives) };
drivers/ide/ide-disk.c renamed from drivers/ide/ide-disk.c~ide-supports-dma +0 -1
@@ -1716,7 +1716,6 @@ static ide_driver_t idedisk_driver = { .version = IDEDISK_VERSION, .media = ide_disk, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .cleanup = idedisk_cleanup, .flushcache = do_idedisk_flushcache,
drivers/ide/ide-floppy.c renamed from drivers/ide/ide-floppy.c~ide-supports-dma +0 -1
@@ -1854,7 +1854,6 @@ static ide_driver_t idefloppy_driver = { .version = IDEFLOPPY_VERSION, .media = ide_floppy, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .cleanup = idefloppy_cleanup, .do_request = idefloppy_do_request,
drivers/ide/ide-tape.c renamed from drivers/ide/ide-tape.c~ide-supports-dma +0 -1
@@ -6316,7 +6316,6 @@ static ide_driver_t idetape_driver = { .version = IDETAPE_VERSION, .media = ide_tape, .busy = 1, - .supports_dma = 1, .supports_dsc_overlap = 1, .cleanup = idetape_cleanup, .do_request = idetape_do_request,
drivers/scsi/ide-scsi.c renamed from drivers/scsi/ide-scsi.c~ide-supports-dma +0 -1
@@ -627,7 +627,6 @@ static ide_driver_t idescsi_driver = { .version = IDESCSI_VERSION, .media = ide_scsi, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .attach = idescsi_attach, .cleanup = idescsi_cleanup,
include/linux/ide.h renamed from include/linux/ide.h~ide-supports-dma +0 -1
@@ -1216,7 +1216,6 @@ typedef struct ide_driver_s {const char *version;u8 media; unsigned busy : 1; - unsigned supports_dma : 1; unsigned supports_dsc_overlap : 1;int (*cleanup)(ide_drive_t *);int (*shutdown)(ide_drive_t *);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
ide: remove supports_dma field from ide_driver_t
driver->supports_dma was used together with CONFIG_IDEDMA_ONLYDISK to limit DMA access to disk devices only. However Alan introduced new scheme in 2.5.63 and this field is not needed any longer because all ide drivers support DMA.
drivers/ide/ide-cd.c | 1 - drivers/ide/ide-default.c | 6 ------ drivers/ide/ide-disk.c | 1 - drivers/ide/ide-floppy.c | 1 - drivers/ide/ide-tape.c | 1 - drivers/ide/ide.c | 5 ----- drivers/scsi/ide-scsi.c | 1 - include/linux/ide.h | 1 - 8 files changed, 17 deletions(-)
drivers/ide/ide.c renamed from drivers/ide/ide.c~ide-supports-dma +0 -5
@@ -1359,8 +1359,6 @@ static int set_io_32bit(ide_drive_t *dristatic int set_using_dma (ide_drive_t *drive,int arg) { -if (!DRIVER (drive)->supports_dma) -return -EPERM ;if (!drive->id || !(drive->id->capability &1 ))return -EPERM ;if (HWIF (drive)->ide_dma_check ==NULL )
@@ -2443,9 +2441,6 @@ int ide_register_subdriver (ide_drive_tif ((drive->autotune ==IDE_TUNE_DEFAULT ) || (drive->autotune ==IDE_TUNE_AUTO )) {/* DMA timings and setup moved to ide-probe.c */ -if (!driver->supports_dma &&HWIF (drive)->ide_dma_off_quietly) -// HWIF(drive)->ide_dma_off_quietly(drive); -HWIF (drive)->ide_dma_off (drive); drive->dsc_overlap = (drive->next != drive && driver->supports_dsc_overlap); drive->nice1 =1 ; }
drivers/ide/ide-cd.c renamed from drivers/ide/ide-cd.c~ide-supports-dma +0 -1
@@ -3318,7 +3318,6 @@ static ide_driver_t ide_cdrom_driver = { .version = IDECD_VERSION, .media = ide_cdrom, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 1, .cleanup = ide_cdrom_cleanup, .do_request = ide_do_rw_cdrom,
drivers/ide/ide-default.c renamed from drivers/ide/ide-default.c~ide-supports-dma +0 -6
@@ -40,18 +40,12 @@ static int idedefault_attach(ide_drive_t/* * IDE subdriver functions, registered with ide.c -* -* idedefault *must* support DMA because it will be -* attached before the other drivers are loaded and -* we don't want to lose the DMA status at probe -* time. */ ide_driver_t idedefault_driver = { .name ="ide-default" , .version =IDEDEFAULT_VERSION , .attach = idedefault_attach, - .supports_dma =1 , .drives =LIST_HEAD_INIT (idedefault_driver.drives) };
drivers/ide/ide-disk.c renamed from drivers/ide/ide-disk.c~ide-supports-dma +0 -1
@@ -1716,7 +1716,6 @@ static ide_driver_t idedisk_driver = { .version = IDEDISK_VERSION, .media = ide_disk, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .cleanup = idedisk_cleanup, .flushcache = do_idedisk_flushcache,
drivers/ide/ide-floppy.c renamed from drivers/ide/ide-floppy.c~ide-supports-dma +0 -1
@@ -1854,7 +1854,6 @@ static ide_driver_t idefloppy_driver = { .version = IDEFLOPPY_VERSION, .media = ide_floppy, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .cleanup = idefloppy_cleanup, .do_request = idefloppy_do_request,
drivers/ide/ide-tape.c renamed from drivers/ide/ide-tape.c~ide-supports-dma +0 -1
@@ -6316,7 +6316,6 @@ static ide_driver_t idetape_driver = { .version = IDETAPE_VERSION, .media = ide_tape, .busy = 1, - .supports_dma = 1, .supports_dsc_overlap = 1, .cleanup = idetape_cleanup, .do_request = idetape_do_request,
drivers/scsi/ide-scsi.c renamed from drivers/scsi/ide-scsi.c~ide-supports-dma +0 -1
@@ -627,7 +627,6 @@ static ide_driver_t idescsi_driver = { .version = IDESCSI_VERSION, .media = ide_scsi, .busy = 0, - .supports_dma = 1, .supports_dsc_overlap = 0, .attach = idescsi_attach, .cleanup = idescsi_cleanup,
include/linux/ide.h renamed from include/linux/ide.h~ide-supports-dma +0 -1
@@ -1216,7 +1216,6 @@ typedef struct ide_driver_s {const char *version;u8 media; unsigned busy : 1; - unsigned supports_dma : 1; unsigned supports_dsc_overlap : 1;int (*cleanup)(ide_drive_t *);int (*shutdown)(ide_drive_t *);
_