[PATCH 00/18] ide: add generic ATA/ATAPI disk driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bartlomiej Zolnierkiewicz
Date: Sunday, September 7, 2008 - 3:14 pm

[ Borislav, this is the 'futuristic' stuff that we were talking about. :) ]

Hi,

This patch series adds a generic ATA/ATAPI disk driver (ide-gd) replacing
ide-disk and ide-floppy drivers.  It is achieved by moving the common code
to ide-gd.c, adding struct ide_disk_ops (which is used to abstract protocol
specific details) and updating ide-{disk,floppy}.c accordingly.

The main goal is to make the code more maintainable / easier to extend later.
As an immediate result we get driver specific debugging support for ATA disks
and ability for driver specific Power Management for ATAPI devices.  Otherwise
it is really an initial merge (which means that in the future the code can be
further unified, struct ide_disk_ops can be made more fine-grained etc.).

patches:
 #01-02 drive-by bugfixes
 #03-04 small improvements (good on their own)
 #05-12 small cleanups (good on their own)
 #13-17 preparatory patches (just to make the review easier)
 #18    the main patch

diffstat:
 drivers/ide/Kconfig            |   64 +--
 drivers/ide/Makefile           |   23 -
 drivers/ide/ide-atapi.c        |    2 
 drivers/ide/ide-cd.c           |   22 -
 drivers/ide/ide-cd_ioctl.c     |    8 
 drivers/ide/ide-disk.c         |  434 ++++------------------
 drivers/ide/ide-disk.h         |   35 -
 drivers/ide/ide-disk_ioctl.c   |    6 
 drivers/ide/ide-disk_proc.c    |    2 
 drivers/ide/ide-floppy.c       |  419 +++------------------
 drivers/ide/ide-floppy.h       |   79 +---
 drivers/ide/ide-floppy_ioctl.c |   15 
 drivers/ide/ide-floppy_proc.c  |    2 
 drivers/ide/ide-gd-floppy.c    |  802 ++++++++++++++++++++---------------------
 drivers/ide/ide-gd.c           |  437 +++++++++++++++++++++-
 drivers/ide/ide-gd.h           |   44 ++
 drivers/ide/ide-probe.c        |    1 
 drivers/ide/ide-proc.c         |    6 
 drivers/ide/ide-tape.c         |   16 
 drivers/leds/Kconfig           |    2 
 drivers/scsi/ide-scsi.c        |   26 -
 include/linux/ide.h            |   34 +
 22 files changed, 1209 insertions(+), 1270 deletions(-)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/18] ide: add generic ATA/ATAPI disk driver, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 01/18] ide-disk: fix IDE_DFLAG_LBA48 handling on resume, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 02/18] ide-disk: lock media before checking for med ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 03/18] ide-floppy: use alloc_disk_node(), Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 04/18] ide-disk: use to_ide_drv() and ide_drv_g(), Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 05/18] ide-disk: move IDE_DFLAG_DOORLOCKING flag ha ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:14 pm)
[PATCH 06/18] ide-{disk,floppy}: set IDE_DFLAG_ATTACH in * ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 07/18] ide-floppy: drop 'floppy' argument from idef ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 08/18] ide-floppy: use drive->capacity64 for cachin ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 09/18] ide: IDE_AFLAG_MEDIA_CHANGED -> IDE_DFLAG_ME ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 10/18] ide: IDE_AFLAG_WP -> IDE_DFLAG_WP, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 11/18] ide: IDE_AFLAG_FORMAT_IN_PROGRESS -> IDE_DFL ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 12/18] ide: remove IDE_AFLAG_NO_DOORLOCKING, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 13/18] ide-disk: factor out generic disk handling c ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:15 pm)
[PATCH 14/18] ide-disk: use IDE_DFLAG_MEDIA_CHANGED, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:16 pm)
[PATCH 15/18] ide-floppy: factor out generic disk handling ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:16 pm)
[PATCH 16/18] ide: prepare for merging ide-gd-floppy.c wit ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:16 pm)
[PATCH 17/18] ide: allow device drivers to specify per-dev ..., Bartlomiej Zolnierki ..., (Sun Sep 7, 3:16 pm)
[PATCH 18/18] ide: add generic ATA/ATAPI disk driver, Bartlomiej Zolnierki ..., (Sun Sep 7, 3:16 pm)
Re: [PATCH 00/18] ide: add generic ATA/ATAPI disk driver, Borislav Petkov, (Wed Sep 10, 4:20 am)
Re: [PATCH 08/18] ide-floppy: use drive->capacity64 for ca ..., Bartlomiej Zolnierki ..., (Sat Sep 27, 8:34 am)