ide: add generic ATA/ATAPI disk driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | ide-disk: fix IDE_DFLAG_LBA48 handling on resumedrivers/ | +20 | 0 replies | |
| 2/18 | ide-disk: lock media before checking for media changedrivers/ | +1 | 0 replies | |
| 3/18 | ide-floppy: use alloc_disk_node()drivers/ | +1 | 0 replies | |
| 4/18 | ide-disk: use to_ide_drv() and ide_drv_g()drivers/ drivers/ drivers/ | +7 | 0 replies | |
| 5/18 | ide-disk: move IDE_DFLAG_DOORLOCKING flag handling to idedisk_set_doorlock()drivers/ | +13 | 0 replies | |
| 6/18 | ide-{disk,floppy}: set IDE_DFLAG_ATTACH in *_setup()drivers/ drivers/ | +12 | 0 replies | |
| 7/18 | ide-floppy: drop 'floppy' argument from idefloppy_setup()drivers/ | +3 | 0 replies | |
| 8/18 | ide-floppy: use drive->capacity64 for caching current capacitydrivers/ | +13 | 2 replies | |
| 9/18 | ide: IDE_AFLAG_MEDIA_CHANGED -> IDE_DFLAG_MEDIA_CHANGEDdrivers/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 10/18 | ide: IDE_AFLAG_WP -> IDE_DFLAG_WPdrivers/ include/ | +6 | 0 replies | |
| 11/18 | ide: IDE_AFLAG_FORMAT_IN_PROGRESS -> IDE_DFLAG_FORMAT_IN_PROGRESSdrivers/ drivers/ include/ | +7 | 0 replies | |
| 12/18 | ide: remove IDE_AFLAG_NO_DOORLOCKINGdrivers/ drivers/ drivers/ +4 more | +7 | 0 replies | |
| 13/18 | ide-disk: factor out generic disk handling code to ide-gd.cdrivers/ drivers/ drivers/ +2 more | +307 | 0 replies | |
| 14/18 | ide-disk: use IDE_DFLAG_MEDIA_CHANGEDdrivers/ | +6 | 0 replies | |
| 15/18 | ide-floppy: factor out generic disk handling code to ide-gd-floppy.cdrivers/ drivers/ drivers/ +1 more | +327 | 0 replies | |
| 16/18 | ide: prepare for merging ide-gd-floppy.c with ide-gd.cdrivers/ drivers/ drivers/ | +91 | 0 replies | |
| 17/18 | ide: allow device drivers to specify per-device type /proc settingsdrivers/ drivers/ drivers/ +4 more | +74 | 0 replies | |
| 18/18 | ide: add generic ATA/ATAPI disk driverdrivers/ drivers/ drivers/ +10 more | +305 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/18] ide: add generic ATA/ATAPI disk driver
[ 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(-)