libata updates
PATCH 1/1 libata updates
Please pull from 'upstream' branch of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
to obtain the fixes, and new driver, described below:
drivers/scsi/Kconfig | 9 drivers/scsi/Makefile | 1 drivers/scsi/ahci.c | 2 drivers/scsi/sata_mv.c | 843 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/scsi/sata_uli.c | 4 5 files changed, 856 insertions(+), 3 deletions(-)
commit ca20aa6954bcb4537064a1bf5e8f74af57da2a03
Author: Jeff Garzik <[email protected]> Date: Wed Sep 7 02:05:59 2005 -0400
[libata sata_mv] fix build
This function will go away when pci_intx() finally makes it into the core PCI layer.
commit 20f733e7d75a16bffc34842b7682c9247dd5f954
Author: Brett Russ <[email protected]> Date: Thu Sep 1 18:26:17 2005 -0400
[PATCH] libata: Marvell SATA support (PIO mode)
This is my libata compatible low level driver for the Marvell SATA family. Currently it successfully runs in PIO mode on a 6081 chip. EDMA support is in the works and should be done shortly. Review, testing (especially on other flavors of Marvell), comments welcome.
commit 7da79312830e6d9b3f6ee06b86c3a35caba2f6e7
Author: Brett Russ <[email protected]> Date: Thu Sep 1 21:53:34 2005 -0400
[PATCH] libata: fix pio_mask values (take 2)
ata_get_mode_mask() uses bits 3 and 4 in the pio_mask to represent PIO modes 3 and 4. The value read from the drive, which reports support for PIO3 and PIO4 in bits 0 and 1, is shifted left by 3 bits and OR'd with 0x7 (which then corresponds to PIO 2-0 in libata). Thus, the drivers below need adjustments to comply with the way pio_mask is used. I changed the masks from the commented values to all support PIO4-0, since the spec mandates that PIO0-2 are supported and there's no reason not to support PIO3 IMO.
drivers/scsi/Kconfig +9 -0
@@ -459,6 +459,15 @@ config SCSI_ATA_PIIX If unsure, say N. +config SCSI_SATA_MV + tristate "Marvell SATA support" + depends on SCSI_SATA && PCI && EXPERIMENTAL + help + This option enables support for the Marvell Serial ATA family. + Currently supports 88SX[56]0[48][01] chips. + + If unsure, say N. + config SCSI_SATA_NV tristate "NVIDIA SATA support" depends on SCSI_SATA && PCI && EXPERIMENTAL
drivers/scsi/Makefile +1 -0
@@ -132,6 +132,7 @@ obj-$(CONFIG_SCSI_SATA_SIS) += libata.o obj-$(CONFIG_SCSI_SATA_SX4) += libata.o sata_sx4.o obj-$(CONFIG_SCSI_SATA_NV) += libata.o sata_nv.o obj-$(CONFIG_SCSI_SATA_ULI) += libata.o sata_uli.o +obj-$(CONFIG_SCSI_SATA_MV) += libata.o sata_mv.o obj-$(CONFIG_ARM) += arm/
drivers/scsi/ahci.c +1 -1
@@ -250,7 +250,7 @@ static struct ata_port_info ahci_port_in .host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |ATA_FLAG_SATA_RESET |ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA, - .pio_mask = 0x03, /* pio3-4 */ + .pio_mask = 0x1f, /* pio0-4 */ .udma_mask = 0x7f, /* udma0-6 ; FIXME */ .port_ops = &ahci_ops, },
drivers/scsi/sata_mv.c new file +843 -0
843 lines not on this page · raw message
drivers/scsi/sata_uli.c +2 -2
@@ -125,8 +125,8 @@ static struct ata_port_info uli_port_inf .sht = &uli_sht, .host_flags = ATA_FLAG_SATA | ATA_FLAG_SATA_RESET | ATA_FLAG_NO_LEGACY, - .pio_mask = 0x03, //support pio mode 4 (FIXME) - .udma_mask = 0x7f, //support udma mode 6 + .pio_mask = 0x1f, /* pio0-4 */ + .udma_mask = 0x7f, /* udma0-6 */ .port_ops = &uli_ops, };