mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCHv3] Rework of handling disk like media
@ 2011-11-24 12:43 Juergen Beisert
  2011-11-24 12:43 ` [PATCH 01/13] USB Mass Storage driver: Fix compile time warning Juergen Beisert
                   ` (12 more replies)
  0 siblings, 13 replies; 18+ messages in thread
From: Juergen Beisert @ 2011-11-24 12:43 UTC (permalink / raw)
  To: barebox

This patch stack reworks the handling of disk like media (hard disks, USB mass
storage, SD/MMC cards). It should simplify the code by using the generic
blockdevice layer.
Also partition handling is now a separate step to provide more partition types
than the D*S one in the future.
At the end of this series support for a subset of ATA devices and their
interface is added.

Update: This series contains fixed and improved versions of the patches
08/13, 09/13 and 12/13.
An additional fix in 08/13 was made, due to a broken disk size guessing for
x86.

Comments are welcome.

Juergen Beisert (13):
      USB Mass Storage driver: Fix compile time warning
      Create a unique cdev number for on demand devices
      ATA/DISK: Add generic disk support when enabling the BIOS disk driver
      ATA/DISK: Enabling write support does not belong to 'drive types'
      ATA/DISK: Reorganize file structure and names for future updates
      ATA/DISK: The BIOS based disk driver is not an interface
      ATA/DISK: Share important constants and structures
      DISK: Add common partition handling for disk like media
      Use generic block layer to access the drives and do partition parsing
      Remove 'disk_drive.c' as it is now replaced by generic partition handling
      ATA/DISK: Remove the now unused header <ata.h>
      ATA Disk Support: Add support for native ATA type drives
      Add driver for IDE like interfaces

 common/Kconfig                            |   18 +
 common/Makefile                           |    2 +
 common/partitions.c                       |  200 +++++++++
 drivers/Makefile                          |    2 +-
 drivers/ata/Kconfig                       |   41 ++-
 drivers/ata/Makefile                      |    5 +-
 drivers/ata/disk_ata_drive.c              |  697 +++++++++++++++++++++++++++++
 drivers/ata/{bios.c => disk_bios_drive.c} |  102 +++--
 drivers/ata/disk_drive.c                  |  247 ----------
 drivers/ata/intf_platform_ide.c           |  130 ++++++
 drivers/mci/Kconfig                       |    3 +-
 drivers/mci/mci-core.c                    |  135 ++++---
 drivers/usb/storage/Kconfig               |    1 +
 drivers/usb/storage/usb.c                 |  126 +++---
 drivers/usb/storage/usb.h                 |    8 +-
 fs/devfs-core.c                           |   14 +
 include/ata.h                             |   39 --
 include/ata_drive.h                       |  100 ++++
 include/disks.h                           |   41 ++
 include/driver.h                          |    1 +
 include/mci.h                             |    3 +-
 include/platform_ide.h                    |   32 ++
 22 files changed, 1484 insertions(+), 463 deletions(-)
 create mode 100644 common/partitions.c
 create mode 100644 drivers/ata/disk_ata_drive.c
 rename drivers/ata/{bios.c => disk_bios_drive.c} (79%)
 delete mode 100644 drivers/ata/disk_drive.c
 create mode 100644 drivers/ata/intf_platform_ide.c
 delete mode 100644 include/ata.h
 create mode 100644 include/ata_drive.h
 create mode 100644 include/disks.h
 create mode 100644 include/platform_ide.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [PATCHv2] Rework of handling disk like media
@ 2011-11-22  8:29 Juergen Beisert
  2011-11-22  8:29 ` [PATCH 07/13] ATA/DISK: Share important constants and structures Juergen Beisert
  0 siblings, 1 reply; 18+ messages in thread
From: Juergen Beisert @ 2011-11-22  8:29 UTC (permalink / raw)
  To: barebox

This patch stack reworks the handling of disk like media (hard disks, USB mass
storage, SD/MMC cards). It should simplify the code by using the generic
blockdevice layer.
Also partition handling is now a separate step to provide more partition types
than the D*S one in the future.
At the end of this series support for a subset of ATA devices and their
interface is added.

Update: This series contains a fixed and improved version of the partition
patch (PATCH 08/13).

Comments are welcome.

Juergen Beisert (13):
      USB Mass Storage driver: Fix compile time warning
      Create a unique cdev number for on demand devices
      ATA/DISK: Add generic disk support when enabling the BIOS disk driver
      ATA/DISK: Enabling write support does not belong to 'drive types'
      ATA/DISK: Reorganize file structure and names for future updates
      ATA/DISK: The BIOS based disk driver is not an interface
      ATA/DISK: Share important constants and structures
      DISK: Add common partition handling for disk like media
      Use generic block layer to access the drives and do partition parsing
      Remove 'disk_drive.c' as it is now replaced by generic partition handling
      ATA/DISK: Remove the now unused header <ata.h>
      ATA Disk Support: Add support for native ATA type drives
      Add driver for IDE like interfaces

 common/Kconfig                            |   18 +
 common/Makefile                           |    2 +
 common/partitions.c                       |  231 +++++++++++
 drivers/Makefile                          |    2 +-
 drivers/ata/Kconfig                       |   47 ++-
 drivers/ata/Makefile                      |    5 +-
 drivers/ata/disk_ata_drive.c              |  631 +++++++++++++++++++++++++++++
 drivers/ata/{bios.c => disk_bios_drive.c} |   97 +++--
 drivers/ata/disk_drive.c                  |  247 -----------
 drivers/ata/intf_platform_ide.c           |  129 ++++++
 drivers/mci/Kconfig                       |    3 +-
 drivers/mci/mci-core.c                    |  135 ++++---
 drivers/usb/storage/Kconfig               |    1 +
 drivers/usb/storage/usb.c                 |  126 ++++---
 drivers/usb/storage/usb.h                 |    8 +-
 fs/devfs-core.c                           |   14 +
 include/ata.h                             |   39 --
 include/ata_drive.h                       |  194 +++++++++
 include/disks.h                           |   41 ++
 include/driver.h                          |    1 +
 include/mci.h                             |    3 +-
 include/platform_ide.h                    |   31 ++
 22 files changed, 1544 insertions(+), 461 deletions(-)
 create mode 100644 common/partitions.c
 create mode 100644 drivers/ata/disk_ata_drive.c
 rename drivers/ata/{bios.c => disk_bios_drive.c} (79%)
 delete mode 100644 drivers/ata/disk_drive.c
 create mode 100644 drivers/ata/intf_platform_ide.c
 delete mode 100644 include/ata.h
 create mode 100644 include/ata_drive.h
 create mode 100644 include/disks.h
 create mode 100644 include/platform_ide.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Rework of handling disk like media
@ 2011-11-16  9:24 Juergen Beisert
  2011-11-16  9:24 ` [PATCH 07/13] ATA/DISK: Share important constants and structures Juergen Beisert
  0 siblings, 1 reply; 18+ messages in thread
From: Juergen Beisert @ 2011-11-16  9:24 UTC (permalink / raw)
  To: barebox

This patch stack reworks the handling of disk like media (hard disks, USB mass storage, SD/MMC cards). It should simplify the code by using the generic blockdevice layer.
Also partition handling is now a separate step to provide more partition types than the D*S one in the future.
At the end of this series support for a subset of ATA devices and their interface is added.

Comments are welcome.

The following changes since commit e3920f1c2fe0ca56dbbc659eeda43254434e0d91:

  Merge branch 'pu/mci/multiblock-write' into next (2011-11-11 16:18:34 +0100)

Juergen Beisert (13):
      USB Mass Storage driver: Fix compile time warning
      Create a unique cdev number for on demand devices
      ATA/DISK: Add generic disk support when enabling the BIOS disk driver
      ATA/DISK: Enabling write support does not belong to 'drive types'
      ATA/DISK: Reorganize file structure and names for future updates
      ATA/DISK: The BIOS based disk driver is not an interface
      ATA/DISK: Share important constants and structures
      DISK: Add common partition handling for disk like media
      Use generic block layer to access the drives and do partition parsing
      Remove 'disk_drive.c' as it is now replaced by generic partition handling
      ATA/DISK: Remove the now unused header <ata.h>
      ATA Disk Support: Add support for native ATA type drives
      Add driver for IDE like interfaces

 common/Kconfig                            |   18 +
 common/Makefile                           |    2 +
 common/partitions.c                       |  229 +++++++++++
 drivers/Makefile                          |    2 +-
 drivers/ata/Kconfig                       |   47 ++-
 drivers/ata/Makefile                      |    5 +-
 drivers/ata/disk_ata_drive.c              |  631 +++++++++++++++++++++++++++++
 drivers/ata/{bios.c => disk_bios_drive.c} |   97 +++--
 drivers/ata/disk_drive.c                  |  247 -----------
 drivers/ata/intf_platform_ide.c           |  129 ++++++
 drivers/mci/Kconfig                       |    3 +-
 drivers/mci/mci-core.c                    |  135 ++++---
 drivers/usb/storage/Kconfig               |    1 +
 drivers/usb/storage/usb.c                 |  126 ++++---
 drivers/usb/storage/usb.h                 |    8 +-
 fs/devfs-core.c                           |   14 +
 include/ata.h                             |   39 --
 include/ata_drive.h                       |  194 +++++++++
 include/disks.h                           |   41 ++
 include/driver.h                          |    1 +
 include/mci.h                             |    3 +-
 include/platform_ide.h                    |   31 ++
 22 files changed, 1542 insertions(+), 461 deletions(-)
 create mode 100644 common/partitions.c
 create mode 100644 drivers/ata/disk_ata_drive.c
 rename drivers/ata/{bios.c => disk_bios_drive.c} (79%)
 delete mode 100644 drivers/ata/disk_drive.c
 create mode 100644 drivers/ata/intf_platform_ide.c
 delete mode 100644 include/ata.h
 create mode 100644 include/ata_drive.h
 create mode 100644 include/disks.h
 create mode 100644 include/platform_ide.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-11-25 14:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 12:43 [PATCHv3] Rework of handling disk like media Juergen Beisert
2011-11-24 12:43 ` [PATCH 01/13] USB Mass Storage driver: Fix compile time warning Juergen Beisert
2011-11-24 12:43 ` [PATCH 02/13] Create a unique cdev number for on demand devices Juergen Beisert
2011-11-24 12:43 ` [PATCH 03/13] ATA/DISK: Add generic disk support when enabling the BIOS disk driver Juergen Beisert
2011-11-24 12:43 ` [PATCH 04/13] ATA/DISK: Enabling write support does not belong to 'drive types' Juergen Beisert
2011-11-24 12:43 ` [PATCH 05/13] ATA/DISK: Reorganize file structure and names for future updates Juergen Beisert
2011-11-24 12:43 ` [PATCH 06/13] ATA/DISK: The BIOS based disk driver is not an interface Juergen Beisert
2011-11-24 12:43 ` [PATCH 07/13] ATA/DISK: Share important constants and structures Juergen Beisert
2011-11-24 12:43 ` [PATCH 08/13] DISK: Add common partition handling for disk like media Juergen Beisert
2011-11-24 12:48   ` Erwin Rol
2011-11-24 12:43 ` [PATCH 09/13] Use generic block layer to access the drives and do partition parsing Juergen Beisert
2011-11-24 12:43 ` [PATCH 10/13] Remove 'disk_drive.c' as it is now replaced by generic partition handling Juergen Beisert
2011-11-24 12:43 ` [PATCH 11/13] ATA/DISK: Remove the now unused header <ata.h> Juergen Beisert
2011-11-24 12:43 ` [PATCH 12/13] ATA Disk Support: Add support for native ATA type drives Juergen Beisert
2011-11-25 14:36   ` Juergen Beisert
2011-11-24 12:43 ` [PATCH 13/13] Add driver for IDE like interfaces Juergen Beisert
  -- strict thread matches above, loose matches on Subject: below --
2011-11-22  8:29 [PATCHv2] Rework of handling disk like media Juergen Beisert
2011-11-22  8:29 ` [PATCH 07/13] ATA/DISK: Share important constants and structures Juergen Beisert
2011-11-16  9:24 Rework of handling disk like media Juergen Beisert
2011-11-16  9:24 ` [PATCH 07/13] ATA/DISK: Share important constants and structures Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox