libata updates for 3.4
Subsystems (3)
PATCH 1/1 libata updates for 3.4
This is my first attempt using signed tags. Any pull req format critique welcome.
The summary of this pull request is included in the signed tag message, but not duplicated into the email.
Jeff
Please pull b8cec3c253a2a001e463c43260fb75fb3223a04d fromgit://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git for-linus
to receive the following updates:
drivers/ata/ahci.c | 10 ++- drivers/ata/ahci.h | 6 ++ drivers/ata/ahci_platform.c | 11 +++ drivers/ata/ata_piix.c | 8 ++ drivers/ata/libahci.c | 5 ++ drivers/ata/pata_arasan_cf.c | 12 +-- drivers/ata/pata_cmd64x.c | 147 +++++++++++++++++++++++++++++++++--------- drivers/ata/pata_legacy.c | 3 +- drivers/ata/pata_mpc52xx.c | 44 ++++-------- drivers/ata/sata_fsl.c | 111 ++++++++++++++++++++++++++++++- 10 files changed, 281 insertions(+), 76 deletions(-)
Brian Norris (3):
ahci: add AHCI_HFLAG_DELAY_ENGINE host flag
ahci: move AHCI_HFLAGS() macro to ahci.h
ahci_platform: add STRICT_AHCI platform type
Julia Lawall (1):
drivers/ata/pata_mpc52xx.c: clean up error handling code
Qiang Liu (1):
sata_fsl: add support for interrupt coalsecing feature
Sergei Shtylyov (5):
pata_legacy: correctly mask recovery field for HT6560B
pata_cmd64x: turn string of *if* statements into *switch*
pata_cmd64x: use interrupt status from MRDMODE register
pata_cmd64x: implement sff_irq_clear() method
pata_cmd64x: implement sff_irq_check() method
Seth Heasley (2):
ahci: AHCI-mode SATA patch for Intel Lynx Point DeviceIDs
ata_piix: IDE-mode SATA patch for Intel Lynx Point DeviceIDs
Viresh Kumar (1):
ata/pata_arasan_cf: Add Hibernation support
drivers/ata/ahci.c +8 -2
@@ -103,8 +103,6 @@ static struct ata_port_operations ahci_p5wdh_ops = { .hardreset = ahci_p5wdh_hardreset, }; -#define AHCI_HFLAGS (flags) .private_data = (void *)(flags) -static const struct ata_port_info ahci_port_info[] = {/* by features */ [board_ahci] =
@@ -261,6 +259,14 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x1e06), board_ahci }, /* Panther Point RAID */ { PCI_VDEVICE(INTEL, 0x1e07), board_ahci }, /* Panther Point RAID */ { PCI_VDEVICE(INTEL, 0x1e0e), board_ahci }, /* Panther Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c02), board_ahci }, /* Lynx Point AHCI */ + { PCI_VDEVICE(INTEL, 0x8c03), board_ahci }, /* Lynx Point AHCI */ + { PCI_VDEVICE(INTEL, 0x8c04), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c05), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c06), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c07), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c0e), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c0f), board_ahci }, /* Lynx Point RAID *//* JMicron 360/1/3/5/6, match class to avoid IDE function */ { PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
drivers/ata/ahci.h +6 -0
@@ -195,6 +195,9 @@ enum {PORT_FBS_EN = (1 <<0 ),/* Enable FBS */ /* hpriv->flags bits */ + +#define AHCI_HFLAGS(flags) .private_data = (void *)(flags) +AHCI_HFLAG_NO_NCQ = (1 <<0 ),AHCI_HFLAG_IGN_IRQ_IF_ERR = (1 <<1 ),/* ignore IRQ_IF_ERR */ AHCI_HFLAG_IGN_SERR_INTERNAL = (1 << 2), /* ignore SERR_INTERNAL */
@@ -210,6 +213,9 @@ enum {AHCI_HFLAG_NO_SNTF = (1 <<12 ),/* no sntf */ AHCI_HFLAG_NO_FPDMA_AA = (1 <<13 ),/* no FPDMA AA */ AHCI_HFLAG_YES_FBS = (1 <<14 ),/* force FBS cap on */ +AHCI_HFLAG_DELAY_ENGINE = (1 <<15 ),/* do not start engine on +port start (wait until +error-handling stage) */ /* ap->flags bits */
drivers/ata/ahci_platform.c +11 -0
@@ -26,6 +26,7 @@enum ahci_type {AHCI ,/* standard platform ahci */ IMX53_AHCI ,/* ahci on i.mx53 */ +STRICT_AHCI ,/* delayed DMA engine start */ };static struct platform_device_id ahci_devtype[] = {
@@ -36,6 +37,9 @@ static struct platform_device_id ahci_devtype[] = { .name = "imx53-ahci", .driver_data = IMX53_AHCI, }, { + .name = "strict-ahci", + .driver_data = STRICT_AHCI, + }, {/* sentinel */ } };
@@ -56,6 +60,13 @@ static const struct ata_port_info ahci_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &ahci_pmp_retry_srst_ops, }, + [STRICT_AHCI] = { + AHCI_HFLAGS (AHCI_HFLAG_DELAY_ENGINE), + .flags = AHCI_FLAG_COMMON, + .pio_mask = ATA_PIO4, + .udma_mask = ATA_UDMA6, + .port_ops = &ahci_ops, + }, }; static struct scsi_host_template ahci_platform_sht = {
drivers/ata/ata_piix.c +8 -0
@@ -321,6 +321,14 @@ static const struct pci_device_id piix_pci_tbl[] = { { 0x8086, 0x1e08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata },/* SATA Controller IDE (Panther Point) */ { 0x8086, 0x1e09, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, +/* SATA Controller IDE (Lynx Point) */ + { 0x8086, 0x8c00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb }, +/* SATA Controller IDE (Lynx Point) */ + { 0x8086, 0x8c01, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb }, +/* SATA Controller IDE (Lynx Point) */ + { 0x8086, 0x8c08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, +/* SATA Controller IDE (Lynx Point) */ + { 0x8086, 0x8c09, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, { } /* terminate list */ };
drivers/ata/libahci.c +5 -0
@@ -737,6 +737,7 @@ static void ahci_power_down(struct ata_port *ap)static void ahci_start_port (struct ata_port *ap) { +struct ahci_host_priv *hpriv = ap->host->private_data;struct ahci_port_priv *pp = ap->private_data;struct ata_link *link;struct ahci_em_priv *emp;
@@ -746,6 +747,10 @@ static void ahci_start_port(struct ata_port *ap)/* enable FIS reception */ ahci_start_fis_rx (ap); +/* enable DMA */ +if (!(hpriv->flags &AHCI_HFLAG_DELAY_ENGINE )) +ahci_start_engine (ap); +/* turn on LEDs */ if (ap->flags &ATA_FLAG_EM ) {ata_for_each_link (link, ap,EDGE ) {
drivers/ata/pata_arasan_cf.c +4 -8
@@ -925,11 +925,10 @@ static int arasan_cf_suspend(struct device *dev)struct ata_host *host =dev_get_drvdata (dev);struct arasan_cf_dev *acdev = host->ports[0 ]->private_data; -if (acdev->dma_chan) { +if (acdev->dma_chan) acdev->dma_chan->device->device_control (acdev->dma_chan,DMA_TERMINATE_ALL ,0 ); -dma_release_channel (acdev->dma_chan); - } +cf_exit (acdev);return ata_host_suspend (host,PMSG_SUSPEND ); }
@@ -945,10 +944,7 @@ static int arasan_cf_resume(struct device *dev)return 0 ; } -static const struct dev_pm_ops arasan_cf_pm_ops = { - .suspend = arasan_cf_suspend, - .resume = arasan_cf_resume, -}; +static SIMPLE_DEV_PM_OPS(arasan_cf_pm_ops, arasan_cf_suspend, arasan_cf_resume);#endif static struct platform_driver arasan_cf_driver = {
@@ -958,7 +954,7 @@ static struct platform_driver arasan_cf_driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, #ifdef CONFIG_PM - .pm = &arasan_cf_pm_ops, + .pm = &arasan_cf_pm_ops,#endif }, };
drivers/ata/pata_cmd64x.c +116 -31
223 lines not on this page · raw message
drivers/ata/pata_legacy.c +1 -2
@@ -401,8 +401,7 @@ static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev)ata_timing_compute (adev, adev->pio_mode, &t,20000 ,1000 ); active =clamp_val (t.active,2 ,15 ); - recover =clamp_val (t.recover,2 ,16 ); - recover &=0x15 ; + recover =clamp_val (t.recover,2 ,16 ) &0x0F ;inb (0x3E6 );inb (0x3E6 );
drivers/ata/pata_mpc52xx.c +15 -29
98 lines not on this page · raw message
drivers/ata/sata_fsl.c +107 -4
179 lines not on this page · raw message